Makefile.am 1.38 KB
Newer Older
Dafydd Harries's avatar
Dafydd Harries committed
1

2
3
include $(top_srcdir)/common.mk

Dafydd Harries's avatar
Dafydd Harries committed
4
5
lib_LTLIBRARIES = libnice.la

6
libnice_la_SOURCES = libnice.ver
Dafydd Harries's avatar
Dafydd Harries committed
7
8

libnice_la_LIBADD = \
9
10
	$(top_builddir)/local/liblocal.la \
	$(top_builddir)/agent/libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
11

12
libnice_la_LDFLAGS = -Wl,--version-script,$(srcdir)/libnice.ver
Dafydd Harries's avatar
Dafydd Harries committed
13

Dafydd Harries's avatar
Dafydd Harries committed
14
AM_CFLAGS = -Wall -Werror \
Dafydd Harries's avatar
Dafydd Harries committed
15
	-I $(top_srcdir) \
16
	-I $(top_srcdir)/address \
Dafydd Harries's avatar
Dafydd Harries committed
17
	-I $(top_srcdir)/agent \
Dafydd Harries's avatar
Dafydd Harries committed
18
	-I $(top_srcdir)/random \
Dafydd Harries's avatar
Dafydd Harries committed
19
20
21
22
	-I $(top_srcdir)/udp \
	-I $(top_srcdir)/stun \
	$(GLIB_CFLAGS)

Dafydd Harries's avatar
Dafydd Harries committed
23
24
25
26
27
noinst_PROGRAMS = \
	ice-test-client \
	ice-test-server \
	jingle-test-server

28
COMMON_LDADD = libnice.la $(GLIB_LIBS)
29

Dafydd Harries's avatar
Dafydd Harries committed
30
31
32
33
34
35
36
ice_test_client_SOURCES = \
	ice-test-client.c \
	readline.h \
	readline.c \
	util.h \
	util.c

37
ice_test_client_LDADD = $(top_builddir)/stun/libstun.la $(COMMON_LDADD)
Dafydd Harries's avatar
Dafydd Harries committed
38

39
40
41
42
43
44
45
46
47
ice_test_server_SOURCES = \
	ice-test-server.c \
	readline.h \
	readline.c \
	util.h \
	util.c

ice_test_server_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
48
49
jingle_test_server_LDADD = $(COMMON_LDADD)

50
51
52
53
54
55
56
57
58
59
60
61
check_PROGRAMS = \
	test-readline \
	test-util

test_readline_SOURCES = test-readline.c readline.h readline.c

test_readline_LDADD = $(COMMON_LDADD)

test_util_SOURCES = test-util.c util.h util.c

test_util_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
62
63
64
65
66
67
68
69
test-symbols.sh::
	chmod +x $(srcdir)/$@

check_SCRIPTS = test-symbols.sh

TESTS = $(check_PROGRAMS) $(check_SCRIPTS)

EXTRA_DIST = $(check_SCRIPTS) libnice.symbols
Dafydd Harries's avatar
Dafydd Harries committed
70

Dafydd Harries's avatar
Dafydd Harries committed
71
72
pkginclude_HEADERS = nice.h

Dafydd Harries's avatar
Dafydd Harries committed
73
74
75
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnice.pc