Add support for windows's compilation through MinGW
[sipe-libnice.git] / agent / Makefile.am
blob6ba95e56fa6b2a62a32aae853141beb6b62ce713
2 # Makefile.am for the Nice Glib ICE library
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
9 include $(top_srcdir)/common.mk
11 AM_CFLAGS = \
12         -DG_LOG_DOMAIN=\"libnice\" \
13         $(ERROR_CFLAGS) \
14         $(GLIB_CFLAGS) \
15         $(GUPNP_CFLAGS) \
16         -I $(top_srcdir) \
17         -I $(top_srcdir)/random \
18         -I $(top_srcdir)/socket \
19         -I $(top_srcdir)/stun
21 if WINDOWS
22   AM_CFLAGS += -DWINVER=0x0501 # _WIN32_WINNT_WINXP
23 endif
25 dist_noinst_DATA = agent-signals-marshal.list
26 noinst_LTLIBRARIES = libagent.la
28 agent-signals-marshal.h: agent-signals-marshal.list
29         glib-genmarshal --header --prefix=agent_marshal $? > $@
31 agent-signals-marshal.c: agent-signals-marshal.list
32         echo '#include "agent-signals-marshal.h"' > $@
33         glib-genmarshal --body --prefix=agent_marshal $? | \
34         sed -e 's/^}$$/(void)return_value;(void)invocation_hint;}/' >> $@
36 BUILT_SOURCES = \
37         agent-signals-marshal.h \
38         agent-signals-marshal.c
40 CLEANFILES += $(BUILT_SOURCES)
42 libagent_la_SOURCES = \
43         address.h \
44         address.c \
45         debug.h \
46         debug.c \
47         candidate.h \
48         candidate.c \
49         component.h \
50         component.c \
51         agent.h \
52         agent-priv.h \
53         agent.c \
54         stream.h \
55         stream.c \
56         conncheck.c \
57         conncheck.h \
58         discovery.c \
59         discovery.h \
60         interfaces.c \
61         interfaces.h \
62         pseudotcp.h \
63         pseudotcp.c \
64         $(BUILT_SOURCES)
66 libagent_la_LIBADD = \
67         $(top_builddir)/random/libnice-random.la \
68         $(top_builddir)/socket/libsocket.la \
69         $(top_builddir)/stun/libstun.la
70 libagent_la_DEPENDENCIES = \
71         $(top_builddir)/random/libnice-random.la \
72         $(top_builddir)/socket/libsocket.la \
73         $(top_builddir)/stun/libstun.la
75 pkginclude_HEADERS = agent.h candidate.h debug.h address.h interfaces.h pseudotcp.h
77 if WINDOWS
78   libagent_la_LIBADD += -lws2_32
79 endif