Makefile.am 1.44 KB
Newer Older
Dafydd Harries's avatar
Dafydd Harries committed
1

2 3
include $(top_srcdir)/common.mk

4 5 6
AM_CFLAGS = \
	$(ERROR_CFLAGS) \
	$(GLIB_CFLAGS) \
7
	-I $(top_srcdir) \
8
	-I $(top_srcdir)/address \
9
	-I $(top_srcdir)/random \
10
	-I $(top_srcdir)/udp \
11
	-I $(top_srcdir)/stun
Dafydd Harries's avatar
Dafydd Harries committed
12

13 14
COMMON_LDADD = libagent.la $(GLIB_LIBS)

15
noinst_LTLIBRARIES = libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
16

17 18 19 20 21 22 23 24 25 26 27 28 29
%-signals-marshal.h: %-signals-marshal.list
	glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h

%-signals-marshal.c: %-signals-marshal.list
	glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
	sed -i "1i#include \"$*-signals-marshal.h\"" $*-signals-marshal.c

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

CLEANFILES += $(BUILT_SOURCES)

30
libagent_la_SOURCES = \
Dafydd Harries's avatar
Dafydd Harries committed
31 32
	candidate.h \
	candidate.c \
33
	agent.h \
34 35
	agent.c \
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
36

Dafydd Harries's avatar
Dafydd Harries committed
37
libagent_la_LIBADD = \
38
	$(top_builddir)/address/libaddress.la \
39
	$(top_builddir)/random/librandom.la \
Dafydd Harries's avatar
Dafydd Harries committed
40 41
	$(top_builddir)/udp/libudp.la \
	$(top_builddir)/stun/libstun.la
42

43 44
check_PROGRAMS = \
	test \
Dafydd Harries's avatar
Dafydd Harries committed
45
	test-add-remove-stream \
46
	test-recv \
Dafydd Harries's avatar
Dafydd Harries committed
47
	test-send \
48
	test-stun \
49
	test-priority \
50 51
	test-poll \
	test-mainloop
Dafydd Harries's avatar
Dafydd Harries committed
52

53 54
TESTS = $(check_PROGRAMS)

55
test_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
56

Dafydd Harries's avatar
Dafydd Harries committed
57
test_add_remove_stream_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
58

59
test_recv_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
60

Dafydd Harries's avatar
Dafydd Harries committed
61 62
test_send_LDADD = $(COMMON_LDADD)

63
test_stun_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
64

65 66
test_priority_LDADD = $(COMMON_LDADD)

67 68
test_poll_LDADD = $(COMMON_LDADD)

69 70
test_mainloop_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
71
pkginclude_HEADERS = agent.h candidate.h
72