Makefile.am 1.4 KB
Newer Older
Yann Diorcet's avatar
Yann Diorcet committed
1 2 3 4 5 6 7 8 9 10
## Process this file with automake to produce Makefile.in

AM_CPPFLAGS=\
	-I$(top_srcdir) \
	-I$(top_srcdir)/coreapi \
	-I$(top_srcdir)/exosip

COMMON_CFLAGS=\
	-DIN_LINPHONE \
	$(ORTP_CFLAGS) \
11
	$(MEDIASTREAMER_CFLAGS) \
12 13
	$(STRICT_OPTIONS) \
	$(LIBXML2_CFLAGS) 
Yann Diorcet's avatar
Yann Diorcet committed
14

Simon Morlat's avatar
Simon Morlat committed
15 16
#-fpermissive to workaround a g++ bug on macos 32bit SDK.
AM_CXXFLAGS=$(LIBXML2_CFLAGS) $(STRICT_OPTIONS) -fpermissive
17

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

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

22
lib_LTLIBRARIES=libxml2lpc.la liblpc2xml.la
Yann Diorcet's avatar
Yann Diorcet committed
23

Yann Diorcet's avatar
Yann Diorcet committed
24 25 26 27
libxml2lpc_la_SOURCES=\
	xml2lpc.c \
	xml2lpc.h

28 29 30 31
liblpc2xml_la_SOURCES=\
	lpc2xml.c \
	lpc2xml.h

Yann Diorcet's avatar
Yann Diorcet committed
32 33
libxml2lpc_la_CFLAGS=$(COMMON_CFLAGS)
libxml2lpc_la_LIBADD=\
34 35
	$(top_builddir)/coreapi/liblinphone.la \
	$(LIBXML2_LIBS) 
Yann Diorcet's avatar
Yann Diorcet committed
36

37 38 39 40 41
liblpc2xml_la_CFLAGS=$(COMMON_CFLAGS)
liblpc2xml_la_LIBADD=\
	$(top_builddir)/coreapi/liblinphone.la \
	$(LIBXML2_LIBS) 

Yann Diorcet's avatar
Yann Diorcet committed
42
libxml2lpc_la_LDFLAGS=-no-undefined
43
liblpc2xml_la_LDFLAGS=-no-undefined
Yann Diorcet's avatar
Yann Diorcet committed
44

45
bin_PROGRAMS=xml2lpc_test lpc2xml_test lp-gen-wrappers
Yann Diorcet's avatar
Yann Diorcet committed
46

Yann Diorcet's avatar
Yann Diorcet committed
47 48 49
xml2lpc_test_SOURCES=\
	xml2lpc_test.c

50 51 52
lpc2xml_test_SOURCES=\
	lpc2xml_test.c

Yann Diorcet's avatar
Yann Diorcet committed
53
xml2lpc_test_CFLAGS=$(COMMON_CFLAGS)
Yann Diorcet's avatar
Yann Diorcet committed
54
xml2lpc_test_LDADD=\
55 56
	$(top_builddir)/coreapi/liblinphone.la \
	libxml2lpc.la 
Yann Diorcet's avatar
Yann Diorcet committed
57

58 59 60
lpc2xml_test_CFLAGS=$(COMMON_CFLAGS)
lpc2xml_test_LDADD=\
	$(top_builddir)/coreapi/liblinphone.la \
61 62
	liblpc2xml.la

63 64 65
lp_gen_wrappers_SOURCES=genwrappers.cc \
			software-desc.cc software-desc.hh \
			generator.cc generator.hh
66 67 68 69

lp_gen_wrappers_LDADD= \
		$(LIBXML2_LIBS)

Yann Diorcet's avatar
Yann Diorcet committed
70 71 72
endif