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 --- jffsX-utils/Makemodule.am | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 jffsX-utils/Makemodule.am (limited to 'jffsX-utils') diff --git a/jffsX-utils/Makemodule.am b/jffsX-utils/Makemodule.am new file mode 100644 index 0000000..fb181de --- /dev/null +++ b/jffsX-utils/Makemodule.am @@ -0,0 +1,37 @@ +mkfs_jffs2_SOURCES = \ + jffsX-utils/mkfs.jffs2.c \ + jffsX-utils/rbtree.h \ + jffsX-utils/compr_zlib.c \ + jffsX-utils/compr.h \ + jffsX-utils/rbtree.c \ + jffsX-utils/compr_lzo.c \ + jffsX-utils/compr.c \ + jffsX-utils/compr_rtime.c +mkfs_jffs2_LDADD = libmtd.a $(ZLIB_LIBS) $(LZO_LIBS) +mkfs_jffs2_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS) $(LZO_CFLAGS) + +jffs2reader_SOURCES = jffsX-utils/jffs2reader.c +jffs2reader_LDADD = libmtd.a $(ZLIB_LIBS) $(LZO_LIBS) + +jffs2dump_SOURCES = jffsX-utils/jffs2dump.c +jffs2dump_LDADD = libmtd.a $(ZLIB_LIBS) $(LZO_LIBS) + +sumtool_SOURCES = jffsX-utils/sumtool.c +sumtool_LDADD = libmtd.a + +JFFSX_BINS = \ + mkfs.jffs2 jffs2dump jffs2reader sumtool + +JFFSX_MAN = \ + jffsX-utils/mkfs.jffs2.1 + +JFFSX_EXTRA = \ + jffsX-utils/device_table.txt jffsX-utils/mkfs.jffs2.1 + +JFFSX_HEADER = \ + jffsX-utils/compr.h jffsX-utils/rbtree.h jffsX-utils/summary.h + +EXTRA_DIST += $(JFFSX_HEADER) $(JFFSX_EXTRA) + +dist_man1_MANS += $(JFFSX_MAN) +sbin_PROGRAMS += $(JFFSX_BINS) -- cgit v1.2.3