Makefile.am 1.97 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
	$(top_builddir)/address/libaddress.la \
57
	$(top_builddir)/random/librandom.la \
Dafydd Harries's avatar
Dafydd Harries committed
58 59
	$(top_builddir)/udp/libudp.la \
	$(top_builddir)/stun/libstun.la
60

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

72
dist_check_SCRIPTS = \
73 74
	check-test-fullmode-with-stun.sh

75
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
76

77
test_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
78

Dafydd Harries's avatar
Dafydd Harries committed
79
test_add_remove_stream_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
80

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

83 84
test_priority_LDADD = $(COMMON_LDADD)

85 86
test_poll_LDADD = $(COMMON_LDADD)

87 88
test_mainloop_LDADD = $(COMMON_LDADD)

89 90
test_fullmode_LDADD = $(COMMON_LDADD)

91 92
test_restart_LDADD = $(COMMON_LDADD)

93 94
test_fallback_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
95
pkginclude_HEADERS = agent.h candidate.h
96