Makefile.am 1.31 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)/coreapi 
Yann Diorcet's avatar
Yann Diorcet committed
6 7 8 9

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

14
AM_CXXFLAGS=$(LIBXML2_CFLAGS) $(STRICT_OPTIONS)
15

Yann Diorcet's avatar
Yann Diorcet committed
16 17
EXTRA_DIST=xml2lpc_jni.cc lpc2xml_jni.cc

Yann Diorcet's avatar
Yann Diorcet committed
18 19
if BUILD_TOOLS

20
lib_LTLIBRARIES=libxml2lpc.la liblpc2xml.la
Yann Diorcet's avatar
Yann Diorcet committed
21

Yann Diorcet's avatar
Yann Diorcet committed
22 23 24 25
libxml2lpc_la_SOURCES=\
	xml2lpc.c \
	xml2lpc.h

26 27 28 29
liblpc2xml_la_SOURCES=\
	lpc2xml.c \
	lpc2xml.h

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

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

Yann Diorcet's avatar
Yann Diorcet committed
40
libxml2lpc_la_LDFLAGS=-no-undefined
41
liblpc2xml_la_LDFLAGS=-no-undefined
Yann Diorcet's avatar
Yann Diorcet committed
42

43
bin_PROGRAMS=xml2lpc_test lpc2xml_test lp-gen-wrappers
Yann Diorcet's avatar
Yann Diorcet committed
44

Yann Diorcet's avatar
Yann Diorcet committed
45 46 47
xml2lpc_test_SOURCES=\
	xml2lpc_test.c

48 49 50
lpc2xml_test_SOURCES=\
	lpc2xml_test.c

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

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

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

lp_gen_wrappers_LDADD= \
		$(LIBXML2_LIBS)

Yann Diorcet's avatar
Yann Diorcet committed
68 69 70
endif