From d39ea7019cb204420c53a203ff9ccbb4cab0d4b3 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Tue, 26 Apr 2016 22:09:08 +0200 Subject: Change build system to autotools This patch is largely based on Richards original RFC. The major differences to the RFC patch are: - Add missing sumtools & mtdpart targets - Fix name of mkfs.jffs2 target - Add missing subdir-objects option for non-recursive make - Move all automake options to configure.ac - Add manpages to install target - Make XATTR & LZO support configurable - Install binaries to sbin directory like in the old build system - Install flash_erase wrapper script - Add files missing from distribution target Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- ubifs-utils/Makemodule.am | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ubifs-utils/Makemodule.am (limited to 'ubifs-utils') diff --git a/ubifs-utils/Makemodule.am b/ubifs-utils/Makemodule.am new file mode 100644 index 0000000..5862afb --- /dev/null +++ b/ubifs-utils/Makemodule.am @@ -0,0 +1,40 @@ +mkfs_ubifs_SOURCES = \ + ubifs-utils/mkfs.ubifs/mkfs.ubifs.c \ + ubifs-utils/mkfs.ubifs/defs.h \ + ubifs-utils/mkfs.ubifs/lpt.h \ + ubifs-utils/mkfs.ubifs/mkfs.ubifs.h \ + ubifs-utils/mkfs.ubifs/crc16.h \ + ubifs-utils/mkfs.ubifs/key.h \ + ubifs-utils/mkfs.ubifs/compr.h \ + ubifs-utils/mkfs.ubifs/ubifs.h \ + ubifs-utils/mkfs.ubifs/crc16.c \ + ubifs-utils/mkfs.ubifs/lpt.c \ + ubifs-utils/mkfs.ubifs/compr.c \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable.h \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable_itr.h \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable_private.h \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable.c \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable_itr.c \ + ubifs-utils/mkfs.ubifs/devtable.c +mkfs_ubifs_LDADD = libmtd.a libubi.a $(ZLIB_LIBS) $(LZO_LIBS) $(UUID_LIBS) -lm +mkfs_ubifs_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS) $(LZO_CFLAGS) $(UUID_CFLAGS) \ + -I$(top_srcdir)/ubi-utils/include -I$(top_srcdir)/ubifs-utils/mkfs.ubifs/ + +UBIFS_BINS = \ + mkfs.ubifs + +UBIFS_HEADER = \ + ubifs-utils/mkfs.ubifs/compr.h ubifs-utils/mkfs.ubifs/crc16.h \ + ubifs-utils/mkfs.ubifs/defs.h ubifs-utils/mkfs.ubifs/key.h \ + ubifs-utils/mkfs.ubifs/lpt.h ubifs-utils/mkfs.ubifs/mkfs.ubifs.h \ + ubifs-utils/mkfs.ubifs/ubifs.h \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable.h \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable_itr.h \ + ubifs-utils/mkfs.ubifs/hashtable/hashtable_private.h + +UBIFS_EXTRA = \ + ubifs-utils/mkfs.ubifs/README + +EXTRA_DIST += $(UBIFS_HEADER) $(UBIFS_EXTRA) + +sbin_PROGRAMS += $(UBIFS_BINS) -- cgit v1.2.3