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
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 = \
Dafydd Harries's avatar
Dafydd Harries committed
40 41
	candidate.h \
	candidate.c \
42 43
	component.h \
	component.c \
44
	agent.h \
45
	agent-priv.h \
46
	agent.c \
47 48
	stream.h \
	stream.c \
49 50 51 52
	conncheck.c \
	conncheck.h \
	discovery.c \
	discovery.h \
53
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
54

Dafydd Harries's avatar
Dafydd Harries committed
55
libagent_la_LIBADD = \
56 57 58 59 60 61 62 63 64
	../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
65

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

77
dist_check_SCRIPTS = \
78 79
	check-test-fullmode-with-stun.sh

80
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
81

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

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

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

88 89
test_priority_LDADD = $(COMMON_LDADD)

90 91
test_poll_LDADD = $(COMMON_LDADD)

92 93
test_mainloop_LDADD = $(COMMON_LDADD)

94 95
test_fullmode_LDADD = $(COMMON_LDADD)

96 97
test_restart_LDADD = $(COMMON_LDADD)

98 99
test_fallback_LDADD = $(COMMON_LDADD)

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