Makefile.am 2.04 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
noinst_LTLIBRARIES = libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
23

24
%-signals-marshal.h: %-signals-marshal.list
25
	glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $@
26

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

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

CLEANFILES += $(BUILT_SOURCES)

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

Dafydd Harries's avatar
Dafydd Harries committed
54
libagent_la_LIBADD = \
55
	$(top_builddir)/address/libaddress.la \
56
	$(top_builddir)/random/librandom.la \
Dafydd Harries's avatar
Dafydd Harries committed
57 58
	$(top_builddir)/udp/libudp.la \
	$(top_builddir)/stun/libstun.la
59

60 61
check_PROGRAMS = \
	test \
Dafydd Harries's avatar
Dafydd Harries committed
62
	test-add-remove-stream \
63
	test-recv \
64
	test-priority \
65
	test-poll \
66
	test-mainloop \
67
	test-fullmode \
68 69
	test-restart \
	test-fallback
70

71 72 73
check_SCRIPTS = \
	check-test-fullmode-with-stun.sh

74
# disabled test programs (using the old STUN API):
75
EXTRA_PROGRAMS = \
76 77
	test-stun \
	test-send
Dafydd Harries's avatar
Dafydd Harries committed
78

79
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
80

81
test_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
82

Dafydd Harries's avatar
Dafydd Harries committed
83
test_add_remove_stream_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
84

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

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

89
test_stun_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)

Dafydd Harries's avatar
Dafydd Harries committed
101
pkginclude_HEADERS = agent.h candidate.h
102