Makefile.am 1.32 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

Dafydd Harries's avatar
Dafydd Harries committed
11 12
lib_LTLIBRARIES = libnice.la

13
libnice_la_SOURCES =
14
libnice_la_DEPENDENCIES = \
15
	$(top_builddir)/agent/libagent.la \
16
	libnice.sym
Dafydd Harries's avatar
Dafydd Harries committed
17 18

libnice_la_LIBADD = \
19
	$(GLIB_LIBS) \
20
	$(GUPNP_LIBS) \
21
	$(top_builddir)/agent/libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
22

23 24
libnice_la_LDFLAGS = \
	-export-symbols $(srcdir)/libnice.sym \
25
	$(LIBNICE_LT_LDFLAGS)
26

Dafydd Harries's avatar
Dafydd Harries committed
27

28
AM_CFLAGS = \
29
	$(LIBNICE_CFLAGS) \
30
	$(GLIB_CFLAGS) \
Dafydd Harries's avatar
Dafydd Harries committed
31
	-I $(top_srcdir) \
Dafydd Harries's avatar
Dafydd Harries committed
32
	-I $(top_srcdir)/agent \
33
	-I $(top_srcdir)/random \
34
	-I $(top_srcdir)/socket \
35
	-I $(top_srcdir)/stun
Dafydd Harries's avatar
Dafydd Harries committed
36

37 38 39
test-symbols.sh::
	chmod +x $(srcdir)/$@

40
libnice-symbols-test.c: libnice.sym
41
	rm -f $@
42
	while read s; do echo "void $$s(void) { }" ; done < $? > $@
43

44
libnice-symbols-test.o: libnice-symbols-test.c
45
	$(CC) $(CFLAGS) -c -o $@ $?
46

47
libnice.symbols: libnice-symbols-test.o
48
	rm -f $@
49
	$(top_srcdir)/scripts/make-symbol-list.sh $? > $@
50 51

CLEANFILES += libnice.symbols libnice-symbols-test.c libnice-symbols-test.o
52

53
check_SCRIPTS = test-symbols.sh
54
check_DATA = libnice.symbols
55

Youness Alaoui's avatar
Youness Alaoui committed
56
TESTS = $(check_SCRIPTS)
57

58
EXTRA_DIST = $(check_SCRIPTS) libnice.sym libnice.ver
Dafydd Harries's avatar
Dafydd Harries committed
59

Dafydd Harries's avatar
Dafydd Harries committed
60 61
pkginclude_HEADERS = nice.h

Dafydd Harries's avatar
Dafydd Harries committed
62
pkgconfigdir = $(libdir)/pkgconfig
63
pkgconfig_DATA = nice.pc
Dafydd Harries's avatar
Dafydd Harries committed
64