Makefile.am 1.68 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 25 26 27 28 29 30 31 32 33 34 35 36
%-signals-marshal.h: %-signals-marshal.list
	glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h

%-signals-marshal.c: %-signals-marshal.list
	glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
	sed -i "1i#include \"$*-signals-marshal.h\"" $*-signals-marshal.c

BUILT_SOURCES = \
	agent-signals-marshal.h \
	agent-signals-marshal.c

CLEANFILES += $(BUILT_SOURCES)

37
libagent_la_SOURCES = \
Dafydd Harries's avatar
Dafydd Harries committed
38 39
	candidate.h \
	candidate.c \
40 41
	component.h \
	component.c \
42
	agent.h \
43
	agent.c \
44 45
	stream.h \
	stream.c \
46
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
47

Dafydd Harries's avatar
Dafydd Harries committed
48
libagent_la_LIBADD = \
49
	$(top_builddir)/address/libaddress.la \
50
	$(top_builddir)/random/librandom.la \
Dafydd Harries's avatar
Dafydd Harries committed
51 52
	$(top_builddir)/udp/libudp.la \
	$(top_builddir)/stun/libstun.la
53

54 55
check_PROGRAMS = \
	test \
Dafydd Harries's avatar
Dafydd Harries committed
56
	test-add-remove-stream \
57
	test-recv \
Dafydd Harries's avatar
Dafydd Harries committed
58
	test-send \
59
	test-stun \
60
	test-priority \
61 62
	test-poll \
	test-mainloop
Dafydd Harries's avatar
Dafydd Harries committed
63

64 65
TESTS = $(check_PROGRAMS)

66
test_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
67

Dafydd Harries's avatar
Dafydd Harries committed
68
test_add_remove_stream_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
69

70
test_recv_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
71

Dafydd Harries's avatar
Dafydd Harries committed
72 73
test_send_LDADD = $(COMMON_LDADD)

74
test_stun_LDADD = $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
75

76 77
test_priority_LDADD = $(COMMON_LDADD)

78 79
test_poll_LDADD = $(COMMON_LDADD)

80 81
test_mainloop_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
82
pkginclude_HEADERS = agent.h candidate.h
83