Makefile.am 2.03 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 68
	test-fullmode \
	test-restart
69

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

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

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

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

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

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

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

88
test_stun_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
89

90 91
test_priority_LDADD = $(COMMON_LDADD)

92 93
test_poll_LDADD = $(COMMON_LDADD)

94 95
test_mainloop_LDADD = $(COMMON_LDADD)

96 97
test_fullmode_LDADD = $(COMMON_LDADD)

98 99
test_restart_LDADD = $(COMMON_LDADD)

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