From a798afc8b5b00a43f4b121168e0419df2d398338 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 13 Dec 2013 00:44:17 +0100 Subject: change build system to autotools --- src/Makefile.am | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/Makefile.am (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..16cf655 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,47 @@ +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir) -I$(top_srcdir)/libcnary/include + +AM_CFLAGS = $(GLOBAL_CFLAGS) $(libxml2_CFLAGS) +AM_LDFLAGS = $(libxml2_LIBS) + +lib_LTLIBRARIES = libplist.la libplist++.la +libplist_la_LIBADD = $(top_srcdir)/libcnary/libcnary.la +libplist_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined +libplist_la_SOURCES = base64.c base64.h \ + bytearray.c bytearray.h \ + hashtable.c hashtable.h \ + ptrarray.c ptrarray.h \ + xplist.c xplist.h \ + bplist.c bplist.h \ + plist.c plist.h \ + common.h + +libplist___la_LIBADD = libplist.la +libplist___la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined +libplist___la_SOURCES = Node.cpp \ + Structure.cpp \ + Array.cpp \ + Boolean.cpp \ + Data.cpp \ + Date.cpp \ + Dictionary.cpp \ + Integer.cpp \ + Key.cpp \ + Real.cpp \ + String.cpp \ + Uid.cpp \ + $(top_srcdir)/include/plist/Node.h \ + $(top_srcdir)/include/plist/Structure.h \ + $(top_srcdir)/include/plist/Array.h \ + $(top_srcdir)/include/plist/Boolean.h \ + $(top_srcdir)/include/plist/Data.h \ + $(top_srcdir)/include/plist/Date.h \ + $(top_srcdir)/include/plist/Dictionary.h \ + $(top_srcdir)/include/plist/Integer.h \ + $(top_srcdir)/include/plist/Key.h \ + $(top_srcdir)/include/plist/Real.h \ + $(top_srcdir)/include/plist/String.h \ + $(top_srcdir)/include/plist/Uid.h + +if WIN32 +libplist_la_LDFLAGS += -avoid-version +endif -- cgit v1.1-32-gdbae