Makefile.am 1.59 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
AM_CFLAGS = \
12
	-DG_LOG_DOMAIN=\"libnice\" \
13 14
	$(ERROR_CFLAGS) \
	$(GLIB_CFLAGS) \
15
	-I $(top_srcdir) \
16
	-I $(top_srcdir)/random \
17
	-I $(top_srcdir)/socket \
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 = \
40 41
	address.h \
	address.c \
42 43
	debug.h \
	debug.c \
Dafydd Harries's avatar
Dafydd Harries committed
44 45
	candidate.h \
	candidate.c \
46 47
	component.h \
	component.c \
48
	agent.h \
49
	agent-priv.h \
50
	agent.c \
51 52
	stream.h \
	stream.c \
53 54 55 56
	conncheck.c \
	conncheck.h \
	discovery.c \
	discovery.h \
Youness Alaoui's avatar
Youness Alaoui committed
57 58
	interfaces.c \
	interfaces.h \
59
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
60

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

70
pkginclude_HEADERS = agent.h candidate.h debug.h address.h interfaces.h