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 --- Makefile.am | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile.am (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..27b43da --- /dev/null +++ b/Makefile.am @@ -0,0 +1,35 @@ +AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_srcdir)/include + +if WITHOUT_XATTR +AM_CPPFLAGS += -DWITHOUT_XATTR +endif + +if WITHOUT_LZO +AM_CPPFLAGS += -DWITHOUT_LZO +endif + +sbin_PROGRAMS = +sbin_SCRIPTS = +noinst_LIBRARIES = +noinst_PROGRAMS = +dist_man1_MANS = + +EXTRA_DIST = + +GLOBAL_HEADER = \ + include + +GLOBAL_EXTRA = \ + COPYING + +EXTRA_DIST += $(GLOBAL_HEADER) $(GLOBAL_EXTRA) + +include lib/Makemodule.am +include ubi-utils/Makemodule.am +include ubifs-utils/Makemodule.am +include misc-utils/Makemodule.am +include nand-utils/Makemodule.am +include nor-utils/Makemodule.am +include jffsX-utils/Makemodule.am + +SUBDIRS = tests/ubi-tests -- cgit v1.2.3