Makefile.am 2.14 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 \
Youness Alaoui's avatar
Youness Alaoui committed
56 57
	interfaces.c \
	interfaces.h \
58
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
59

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

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

80
dist_check_SCRIPTS = \
81 82
	check-test-fullmode-with-stun.sh

83
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
84

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

87 88
test_address_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
89
test_add_remove_stream_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
90

91 92
test_priority_LDADD = $(COMMON_LDADD)

93 94
test_mainloop_LDADD = $(COMMON_LDADD)

95 96
test_fullmode_LDADD = $(COMMON_LDADD)

97 98
test_restart_LDADD = $(COMMON_LDADD)

99 100
test_fallback_LDADD = $(COMMON_LDADD)

Olivier Crête's avatar
Olivier Crête committed
101 102
test_thread_LDADD = $(COMMON_LDADD)

103
pkginclude_HEADERS = agent.h candidate.h debug.h address.h
104

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