3fcc58f89392962e3233f4475e224d31d44bf641
[platform/upstream/libnice.git] / stun / Makefile.am
1 #
2 # Makefile.am for the Nice Glib ICE library
3 #
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
6 #
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
8
9 SUBDIRS = . tools tests
10
11 include $(top_srcdir)/common.mk
12
13 AM_CFLAGS = \
14         -std=gnu99 \
15         -DG_LOG_DOMAIN=\"libnice-stun\" \
16         $(LIBNICE_CFLAGS) \
17         $(GNUTLS_CFLAGS) \
18         $(OPENSSL_INCLUDES) \
19         $(NULL)
20 AM_CPPFLAGS = -I$(top_srcdir)
21
22 if WINDOWS
23   AM_CFLAGS += -DWINVER=0x0501 # _WIN32_WINNT_WINXP
24 endif
25
26 noinst_LTLIBRARIES = libstun.la
27
28 libstun_la_SOURCES = constants.h \
29         stunagent.c stunagent.h \
30         stunmessage.c stunmessage.h \
31         stun5389.c stun5389.h \
32         stuncrc32.c stuncrc32.h \
33         rand.c rand.h \
34         stunhmac.c stunhmac.h \
35         utils.c  utils.h \
36         debug.c  debug.h \
37         usages/ice.c usages/ice.h \
38         usages/bind.c usages/bind.h \
39         usages/turn.c usages/turn.h \
40         usages/timer.c usages/timer.h
41
42 libstun_la_LIBADD = $(LIBRT) $(GNUTLS_LIBS) $(OPENSSL_LIBS) $(OPENSSL_LDFLAGS)
43
44 EXTRA_DIST = win32_common.h meson.build
45
46 libstun_la_includedir=$(includedir)/stun
47 libstun_la_include_HEADERS = stunagent.h stunmessage.h win32_common.h debug.h constants.h
48
49 libstun_usage_includedir=$(includedir)/stun/usages
50 libstun_usage_include_HEADERS = usages/bind.h usages/ice.h usages/turn.h usages/timer.h