[libbdplus-devel] Merge makefiles

anonymous git at videolan.org
Wed Jan 21 13:52:30 CET 2015


libbdplus | branch: master | anonymous <anonymous at anonymous.org> | Wed Jan 21 12:12:24 2015 +0200| [60937695d2bd20d6d0c4176b7893818d05a1a2de] | committer: anonymous

Merge makefiles

> http://git.videolan.org/gitweb.cgi/libbdplus.git/?a=commit;h=60937695d2bd20d6d0c4176b7893818d05a1a2de
---

 Makefile.am             |   89 +++++++++++++++++++++++++++++++++++++++++++++--
 configure.ac            |    2 +-
 src/Makefile.am         |   86 ---------------------------------------------
 src/file/configfile.h   |    2 +-
 src/file/file_default.h |    2 +-
 5 files changed, 90 insertions(+), 91 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cfc9166..58b658e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,90 @@
-SUBDIRS=src
-
 ACLOCAL_AMFLAGS=-I m4
 
 EXTRA_DIST=bootstrap COPYING README.txt
+
+SET_FEATURES = @SET_FEATURES@
+SET_INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src/libbdplus
+
+AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
+
+lib_LTLIBRARIES = libbdplus.la
+libbdplus_la_SOURCES=\
+	src/libbdplus/bdplus.h \
+	src/libbdplus/internal.c \
+	src/libbdplus/bdplus.c \
+	src/libbdplus/bdplus_data.h \
+	src/libbdplus/internal.h \
+	src/libbdplus/bdplus_config.c \
+	src/libbdplus/bdplus_config.h \
+	src/libbdplus/bdsvm/diff.h \
+	src/libbdplus/bdsvm/event.c \
+	src/libbdplus/bdsvm/event.h \
+	src/libbdplus/bdsvm/loader.c \
+	src/libbdplus/bdsvm/loader.h \
+	src/libbdplus/bdsvm/segment.c \
+	src/libbdplus/bdsvm/trap_helper.c \
+	src/libbdplus/bdsvm/trap.c \
+	src/libbdplus/bdsvm/slot.h \
+	src/libbdplus/bdsvm/slot_data.h \
+	src/libbdplus/bdsvm/segment.h \
+	src/libbdplus/bdsvm/interface.h \
+	src/libbdplus/bdsvm/dlx.c \
+	src/libbdplus/bdsvm/interface.c \
+	src/libbdplus/bdsvm/dlx.h \
+	src/libbdplus/bdsvm/dlx_internal.h \
+	src/libbdplus/bdsvm/diff.c \
+	src/libbdplus/bdsvm/slot.c \
+	src/libbdplus/bdsvm/trap.h \
+	src/libbdplus/bdsvm/trap_helper.h \
+	src/libbdplus/bdsvm/sha1.h \
+	src/libbdplus/bdsvm/sha1.c \
+	src/file/dirs.h \
+	src/file/file.h \
+	src/file/file_default.c \
+	src/file/file_default.h \
+	src/file/configfile.c \
+	src/file/configfile.h \
+	src/util/attributes.h \
+	src/util/macro.h \
+	src/util/mutex.h \
+	src/util/mutex.c \
+	src/util/strutl.c \
+	src/util/strutl.h \
+	src/util/logging.c \
+	src/util/logging.h
+
+if HAVE_DARWIN
+libbdplus_la_SOURCES+= \
+	src/file/dirs_darwin.c
+else
+if HAVE_WIN32
+libbdplus_la_SOURCES+= \
+	src/file/dirs_win32.c
+else
+libbdplus_la_SOURCES+= \
+	src/file/dirs_xdg.c
+endif
+endif
+
+pkginclude_HEADERS = \
+	src/libbdplus/bdplus.h \
+	src/libbdplus/bdplus-version.h
+
+libbdplus_la_LDFLAGS= -no-undefined -version-info $(LT_VERSION_INFO)
+libbdplus_la_LIBADD = $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = src/libbdplus.pc
+
+
+#
+# examples
+#
+
+noinst_PROGRAMS = bdplus_test convtab_dump
+
+bdplus_test_SOURCES = src/examples/bdplus_test.c
+bdplus_test_CFLAGS  = $(AM_CFLAGS) $(LIBAACS_CFLAGS)
+bdplus_test_LDADD   = libbdplus.la
+bdplus_test_LDADD  += $(LIBAACS_LIBS)
+
+convtab_dump_SOURCES = src/examples/convtab_dump.c
diff --git a/configure.ac b/configure.ac
index fd0f9aa..b732dfd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -200,5 +200,5 @@ AC_SUBST(LT_VERSION_INFO)
 
 dnl generate output files
 AC_SUBST(SET_FEATURES)
-AC_CONFIG_FILES([Makefile src/Makefile src/libbdplus.pc src/libbdplus/bdplus-version.h])
+AC_CONFIG_FILES([Makefile src/libbdplus.pc src/libbdplus/bdplus-version.h])
 AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index 6989d00..0000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,86 +0,0 @@
-SET_FEATURES = @SET_FEATURES@
-SET_INCLUDES = -I$(top_srcdir) -Ilibbdplus
-
-AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
-
-lib_LTLIBRARIES = libbdplus.la
-libbdplus_la_SOURCES=\
-	libbdplus/bdplus.h \
-	libbdplus/internal.c \
-	libbdplus/bdplus.c \
-	libbdplus/bdplus_data.h \
-	libbdplus/internal.h \
-	libbdplus/bdplus_config.c \
-	libbdplus/bdplus_config.h \
-	libbdplus/bdsvm/diff.h \
-	libbdplus/bdsvm/event.c \
-	libbdplus/bdsvm/event.h \
-	libbdplus/bdsvm/loader.c \
-	libbdplus/bdsvm/loader.h \
-	libbdplus/bdsvm/segment.c \
-	libbdplus/bdsvm/trap_helper.c \
-	libbdplus/bdsvm/trap.c \
-	libbdplus/bdsvm/slot.h \
-	libbdplus/bdsvm/slot_data.h \
-	libbdplus/bdsvm/segment.h \
-	libbdplus/bdsvm/interface.h \
-	libbdplus/bdsvm/dlx.c \
-	libbdplus/bdsvm/interface.c \
-	libbdplus/bdsvm/dlx.h \
-	libbdplus/bdsvm/dlx_internal.h \
-	libbdplus/bdsvm/diff.c \
-	libbdplus/bdsvm/slot.c \
-	libbdplus/bdsvm/trap.h \
-	libbdplus/bdsvm/trap_helper.h \
-	libbdplus/bdsvm/sha1.h \
-	libbdplus/bdsvm/sha1.c \
-	file/dirs.h \
-	file/file.h \
-	file/file_default.c \
-	file/file_default.h \
-	file/configfile.c \
-	file/configfile.h \
-	util/attributes.h \
-	util/macro.h \
-	util/mutex.h \
-	util/mutex.c \
-	util/strutl.c \
-	util/strutl.h \
-	util/logging.c \
-	util/logging.h
-
-if HAVE_DARWIN
-libbdplus_la_SOURCES+= \
-	file/dirs_darwin.c
-else
-if HAVE_WIN32
-libbdplus_la_SOURCES+= \
-	file/dirs_win32.c
-else
-libbdplus_la_SOURCES+= \
-	file/dirs_xdg.c
-endif
-endif
-
-pkginclude_HEADERS = \
-	libbdplus/bdplus.h \
-	libbdplus/bdplus-version.h
-
-libbdplus_la_LDFLAGS= -no-undefined -version-info $(LT_VERSION_INFO)
-libbdplus_la_LIBADD = $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libbdplus.pc
-
-
-#
-# examples
-#
-
-noinst_PROGRAMS = bdplus_test convtab_dump
-
-bdplus_test_SOURCES = examples/bdplus_test.c
-bdplus_test_CFLAGS  = $(AM_CFLAGS) $(LIBAACS_CFLAGS)
-bdplus_test_LDADD   = libbdplus.la
-bdplus_test_LDADD  += $(LIBAACS_LIBS)
-
-convtab_dump_SOURCES = examples/convtab_dump.c
diff --git a/src/file/configfile.h b/src/file/configfile.h
index c90218f..df4a3c3 100644
--- a/src/file/configfile.h
+++ b/src/file/configfile.h
@@ -20,7 +20,7 @@
 #ifndef BDPLUS_CONFIGFILE_H
 #define BDPLUS_CONFIGFILE_H
 
-#include <util/attributes.h>
+#include "util/attributes.h"
 
 #include <stdint.h>
 #include <stdio.h>
diff --git a/src/file/file_default.h b/src/file/file_default.h
index 1cc4878..9dd53b1 100644
--- a/src/file/file_default.h
+++ b/src/file/file_default.h
@@ -22,7 +22,7 @@
 
 #include "filesystem.h"
 
-#include <util/attributes.h>
+#include "util/attributes.h"
 
 BD_PRIVATE BDPLUS_FILE_H *file_open_default(void *root_path, const char *file_name);
 



More information about the libbdplus-devel mailing list