Makefile.am 2.11 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)/random \
16
	-I $(top_srcdir)/socket \
17
	-I $(top_srcdir)/stun
Dafydd Harries's avatar
Dafydd Harries committed
18

19 20
COMMON_LDADD = libagent.la $(GLIB_LIBS)

21
dist_noinst_DATA = agent-signals-marshal.list
22
noinst_LTLIBRARIES = libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
23

24 25
agent-signals-marshal.h: agent-signals-marshal.list
	glib-genmarshal --header --prefix=agent_marshal $< > $@
26

27 28 29
agent-signals-marshal.c: agent-signals-marshal.list Makefile.am
	glib-genmarshal --body --prefix=agent_marshal $< > $@
	sed -i "1i#include \"agent-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 = \
39 40
	address.h \
	address.c \
41 42
	debug.h \
	debug.c \
Dafydd Harries's avatar
Dafydd Harries committed
43 44
	candidate.h \
	candidate.c \
45 46
	component.h \
	component.c \
47
	agent.h \
48
	agent-priv.h \
49
	agent.c \
50 51
	stream.h \
	stream.c \
52 53 54 55
	conncheck.c \
	conncheck.h \
	discovery.c \
	discovery.h \
56
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
57

Dafydd Harries's avatar
Dafydd Harries committed
58
libagent_la_LIBADD = \
59
	../random/librandom.la \
60
	../socket/libsocket.la \
61 62 63
	../stun/libstun.la
libagent_la_DEPENDENCIES = \
	../random/librandom.la \
64
	../socket/libsocket.la \
65
	../stun/libstun.la
66

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

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

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

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

85 86
test_address_LDADD = $(COMMON_LDADD)

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

89 90
test_priority_LDADD = $(COMMON_LDADD)

91 92
test_mainloop_LDADD = $(COMMON_LDADD)

93 94
test_fullmode_LDADD = $(COMMON_LDADD)

95 96
test_restart_LDADD = $(COMMON_LDADD)

97 98
test_fallback_LDADD = $(COMMON_LDADD)

Olivier Crête's avatar
Olivier Crête committed
99 100
test_thread_LDADD = $(COMMON_LDADD)

101
pkginclude_HEADERS = agent.h candidate.h debug.h address.h
102

103 104
all-local:
	chmod a+x $(srcdir)/check-test-fullmode-with-stun.sh