Makefile.am 1.55 KB
Newer Older
Yann Diorcet's avatar
Yann Diorcet committed
1 2 3 4
## Process this file with automake to produce Makefile.in

AM_CPPFLAGS=\
	-I$(top_srcdir) \
5
	-I$(top_srcdir)/include \
6
	-I$(top_srcdir)/coreapi
Yann Diorcet's avatar
Yann Diorcet committed
7 8 9

COMMON_CFLAGS=\
	$(ORTP_CFLAGS) \
10
	$(MEDIASTREAMER_CFLAGS) \
11
	$(STRICT_OPTIONS) \
12
	$(STRICT_OPTIONS_CC) \
13 14
	$(MEDIASTREAMER_CFLAGS) \
	$(BCTOOLBOX_CFLAGS)
Yann Diorcet's avatar
Yann Diorcet committed
15

16
#-fpermissive to workaround a g++ bug on macos 32bit SDK.
17
AM_CXXFLAGS=$(LIBXML2_CFLAGS) -fpermissive $(STRICT_OPTIONS) $(STRICT_OPTIONS_CXX)
18

Yann Diorcet's avatar
Yann Diorcet committed
19 20
EXTRA_DIST=xml2lpc_jni.cc lpc2xml_jni.cc

Yann Diorcet's avatar
Yann Diorcet committed
21 22
if BUILD_TOOLS

23
bin_PROGRAMS=xml2lpc_test lpc2xml_test lp-autoanswer lp-test-ecc lp-sendmsg
Yann Diorcet's avatar
Yann Diorcet committed
24

Yann Diorcet's avatar
Yann Diorcet committed
25 26 27
xml2lpc_test_SOURCES=\
	xml2lpc_test.c

28 29 30
lpc2xml_test_SOURCES=\
	lpc2xml_test.c

Yann Diorcet's avatar
Yann Diorcet committed
31
xml2lpc_test_CFLAGS=$(COMMON_CFLAGS)
Yann Diorcet's avatar
Yann Diorcet committed
32
xml2lpc_test_LDADD=\
33
	$(top_builddir)/coreapi/liblinphone.la
Yann Diorcet's avatar
Yann Diorcet committed
34

35 36
lpc2xml_test_CFLAGS=$(COMMON_CFLAGS)
lpc2xml_test_LDADD=\
37
	$(top_builddir)/coreapi/liblinphone.la
38

39 40 41
lp_autoanswer_SOURCES=auto_answer.c
lp_autoanswer_CFLAGS=$(COMMON_CFLAGS)
lp_autoanswer_LDADD=\
Simon Morlat's avatar
Simon Morlat committed
42 43
	$(top_builddir)/coreapi/liblinphone.la \
	$(MEDIASTREAMER_LIBS)
44

45 46 47 48
lp_test_ecc_SOURCES=test_ecc.c
lp_test_ecc_CFLAGS=$(COMMON_CFLAGS)
lp_test_ecc_LDADD=$(top_builddir)/coreapi/liblinphone.la

49 50 51 52
lp_sendmsg_SOURCES=lpsendmsg.c
lp_sendmsg_CFLAGS=$(COMMON_CFLAGS)
lp_sendmsg_LDADD=$(top_builddir)/coreapi/liblinphone.la

Yann Diorcet's avatar
Yann Diorcet committed
53 54
endif

55 56


57
if ENABLE_TESTS
Yann Diorcet's avatar
Yann Diorcet committed
58

59
noinst_PROGRAMS=test_lsd  test_numbers
60 61 62 63 64

test_lsd_SOURCES=test_lsd.c
test_lsd_CFLAGS=$(COMMON_CFLAGS)
test_lsd_LDADD=$(top_builddir)/coreapi/liblinphone.la

65

66 67 68 69 70 71

test_numbers_SOURCES=test_numbers.c
test_numbers_CFLAGS=$(COMMON_CFLAGS)
test_numbers_LDADD=$(top_builddir)/coreapi/liblinphone.la

endif