Makefile.am 2.19 KB
Newer Older
1 2 3 4 5 6 7
#
# Makefile.am for the Nice Glib ICE library
#
# (C) 2006, 2007 Collabora Ltd.
# (C) 2006, 2007 Nokia Corporation. All rights reserved.
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
Dafydd Harries's avatar
Dafydd Harries committed
8

9 10
include $(top_srcdir)/common.mk

11 12 13
AM_CFLAGS = \
	$(ERROR_CFLAGS) \
	$(GLIB_CFLAGS) \
14
	-I $(top_srcdir) \
15
	-I $(top_srcdir)/address \
16
	-I $(top_srcdir)/random \
17
	-I $(top_srcdir)/udp \
18
	-I $(top_srcdir)/stun
Dafydd Harries's avatar
Dafydd Harries committed
19

20 21
COMMON_LDADD = libagent.la $(GLIB_LIBS)

22
dist_noinst_DATA = agent-signals-marshal.list
23
noinst_LTLIBRARIES = libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
24

25 26
agent-signals-marshal.h: agent-signals-marshal.list
	glib-genmarshal --header --prefix=agent_marshal $< > $@
27

28 29 30
agent-signals-marshal.c: agent-signals-marshal.list Makefile.am
	glib-genmarshal --body --prefix=agent_marshal $< > $@
	sed -i "1i#include \"agent-signals-marshal.h\"" $@
31
	sed -i -e 's/^}$$/(void)return_value;(void)invocation_hint;}/' $@
32 33 34 35 36 37 38

BUILT_SOURCES = \
	agent-signals-marshal.h \
	agent-signals-marshal.c

CLEANFILES += $(BUILT_SOURCES)

39
libagent_la_SOURCES = \
40 41
	debug.h \
	debug.c \
Dafydd Harries's avatar
Dafydd Harries committed
42 43
	candidate.h \
	candidate.c \
44 45
	component.h \
	component.c \
46
	agent.h \
47
	agent-priv.h \
48
	agent.c \
49 50
	stream.h \
	stream.c \
51 52 53 54
	conncheck.c \
	conncheck.h \
	discovery.c \
	discovery.h \
55
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
56

Dafydd Harries's avatar
Dafydd Harries committed
57
libagent_la_LIBADD = \
58 59 60 61 62 63 64 65 66
	../address/libaddress.la \
	../random/librandom.la \
	../udp/libudp.la \
	../stun/libstun.la
libagent_la_DEPENDENCIES = \
	../address/libaddress.la \
	../random/librandom.la \
	../udp/libudp.la \
	../stun/libstun.la
67

68 69
check_PROGRAMS = \
	test \
Dafydd Harries's avatar
Dafydd Harries committed
70
	test-add-remove-stream \
71
	test-recv \
72
	test-priority \
73
	test-poll \
74
	test-mainloop \
75
	test-fullmode \
76
	test-restart \
77 78
	test-fallback \
	test-thread
79

80
dist_check_SCRIPTS = \
81 82
	check-test-fullmode-with-stun.sh

83
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
84

85
test_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
86

Dafydd Harries's avatar
Dafydd Harries committed
87
test_add_remove_stream_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
88

89
test_recv_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
90

91 92
test_priority_LDADD = $(COMMON_LDADD)

93 94
test_poll_LDADD = $(COMMON_LDADD)

95 96
test_mainloop_LDADD = $(COMMON_LDADD)

97 98
test_fullmode_LDADD = $(COMMON_LDADD)

99 100
test_restart_LDADD = $(COMMON_LDADD)

101 102
test_fallback_LDADD = $(COMMON_LDADD)

Olivier Crête's avatar
Olivier Crête committed
103 104
test_thread_LDADD = $(COMMON_LDADD)

105
pkginclude_HEADERS = agent.h candidate.h debug.h
106

107 108
all-local:
	chmod a+x $(srcdir)/check-test-fullmode-with-stun.sh