Makefile.am 1.5 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 34
	component.h \
	component.c \
35
	agent.h \
36
	agent.c \
37 38
	stream.h \
	stream.c \
39
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
40

Dafydd Harries's avatar
Dafydd Harries committed
41
libagent_la_LIBADD = \
42
	$(top_builddir)/address/libaddress.la \
43
	$(top_builddir)/random/librandom.la \
Dafydd Harries's avatar
Dafydd Harries committed
44 45
	$(top_builddir)/udp/libudp.la \
	$(top_builddir)/stun/libstun.la
46

47 48
check_PROGRAMS = \
	test \
Dafydd Harries's avatar
Dafydd Harries committed
49
	test-add-remove-stream \
50
	test-recv \
Dafydd Harries's avatar
Dafydd Harries committed
51
	test-send \
52
	test-stun \
53
	test-priority \
54 55
	test-poll \
	test-mainloop
Dafydd Harries's avatar
Dafydd Harries committed
56

57 58
TESTS = $(check_PROGRAMS)

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

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

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

Dafydd Harries's avatar
Dafydd Harries committed
65 66
test_send_LDADD = $(COMMON_LDADD)

67
test_stun_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
68

69 70
test_priority_LDADD = $(COMMON_LDADD)

71 72
test_poll_LDADD = $(COMMON_LDADD)

73 74
test_mainloop_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
75
pkginclude_HEADERS = agent.h candidate.h
76