Makefile.am 1.73 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) \
Youness Alaoui's avatar
Youness Alaoui committed
15
	$(GUPNP_CFLAGS) \
16
	-I $(top_srcdir) \
17
	-I $(top_srcdir)/random \
18
	-I $(top_srcdir)/socket \
19
	-I $(top_srcdir)/stun
Dafydd Harries's avatar
Dafydd Harries committed
20

21 22 23
if WINDOWS
  AM_CFLAGS += -DWINVER=0x0501 # _WIN32_WINNT_WINXP
endif
24

25
dist_noinst_DATA = agent-signals-marshal.list
26
noinst_LTLIBRARIES = libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
27

28
agent-signals-marshal.h: agent-signals-marshal.list
29
	glib-genmarshal --header --prefix=agent_marshal $? > $@
30

31 32 33 34
agent-signals-marshal.c: agent-signals-marshal.list
	echo '#include "agent-signals-marshal.h"' > $@
	glib-genmarshal --body --prefix=agent_marshal $? | \
	sed -e 's/^}$$/(void)return_value;(void)invocation_hint;}/' >> $@
35 36 37 38 39 40 41

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

CLEANFILES += $(BUILT_SOURCES)

42
libagent_la_SOURCES = \
43 44
	address.h \
	address.c \
45 46
	debug.h \
	debug.c \
Dafydd Harries's avatar
Dafydd Harries committed
47 48
	candidate.h \
	candidate.c \
49 50
	component.h \
	component.c \
51
	agent.h \
52
	agent-priv.h \
53
	agent.c \
54 55
	stream.h \
	stream.c \
56 57 58 59
	conncheck.c \
	conncheck.h \
	discovery.c \
	discovery.h \
Youness Alaoui's avatar
Youness Alaoui committed
60 61
	interfaces.c \
	interfaces.h \
62 63
	pseudotcp.h \
	pseudotcp.c \
64
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
65

Dafydd Harries's avatar
Dafydd Harries committed
66
libagent_la_LIBADD = \
67
	$(top_builddir)/random/libnice-random.la \
68 69
	$(top_builddir)/socket/libsocket.la \
	$(top_builddir)/stun/libstun.la
70
libagent_la_DEPENDENCIES = \
71
	$(top_builddir)/random/libnice-random.la \
72 73
	$(top_builddir)/socket/libsocket.la \
	$(top_builddir)/stun/libstun.la
74

75
pkginclude_HEADERS = agent.h candidate.h debug.h address.h interfaces.h pseudotcp.h
76 77

if WINDOWS
78
  libagent_la_LIBADD += -liphlpapi -lws2_32
79
endif