COMMON_CFLAGS=\
-DIN_LINPHONE \
- $(LIBXML2_CFLAGS) \
$(ORTP_CFLAGS) \
- $(STRICT_OPTIONS)
+ $(STRICT_OPTIONS) \
+ $(LIBXML2_CFLAGS)
+
+EXTRA_DIST=xml2lpc_jni.cc lpc2xml_jni.cc
if BUILD_TOOLS
-lib_LTLIBRARIES=libxml2lpc.la
+lib_LTLIBRARIES=libxml2lpc.la liblpc2xml.la
+
+libxml2lpc_la_SOURCES=\
+ xml2lpc.c \
+ xml2lpc.h
+
+liblpc2xml_la_SOURCES=\
+ lpc2xml.c \
+ lpc2xml.h
-libxml2lpc_la_SOURCES=xml2lpc.c xml2lpc.h
libxml2lpc_la_CFLAGS=$(COMMON_CFLAGS)
libxml2lpc_la_LIBADD=\
- $(LIBXML2_LIBS)
+ $(top_builddir)/coreapi/liblinphone.la \
+ $(LIBXML2_LIBS)
-bin_PROGRAMS=xml2lpc_test
+liblpc2xml_la_CFLAGS=$(COMMON_CFLAGS)
+liblpc2xml_la_LIBADD=\
+ $(top_builddir)/coreapi/liblinphone.la \
+ $(LIBXML2_LIBS)
-xml2lpc_test_SOURCES=xml2lpc_test.c
-xml2lpc_test_CFLAGS=$(COMMON_CFLAGS)
-xml2lpc_test_LDADD=$(top_builddir)/coreapi/liblinphone.la libxml2lpc.la
+libxml2lpc_la_LDFLAGS=-no-undefined
+liblpc2xml_la_LDFLAGS=-no-undefined
+bin_PROGRAMS=xml2lpc_test lpc2xml_test
+
+xml2lpc_test_SOURCES=\
+ xml2lpc_test.c
+
+lpc2xml_test_SOURCES=\
+ lpc2xml_test.c
+
+xml2lpc_test_CFLAGS=$(COMMON_CFLAGS)
+xml2lpc_test_LDADD=\
+ $(top_builddir)/coreapi/liblinphone.la \
+ libxml2lpc.la
+
+lpc2xml_test_CFLAGS=$(COMMON_CFLAGS)
+lpc2xml_test_LDADD=\
+ $(top_builddir)/coreapi/liblinphone.la \
+ liblpc2xml.la
endif