diff options
author | Richard Weinberger <richard@nod.at> | 2016-04-26 22:09:08 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2016-11-17 11:36:55 +0100 |
commit | d39ea7019cb204420c53a203ff9ccbb4cab0d4b3 (patch) | |
tree | 313257adc2b8242c298d060ea29a256fa7394011 /ubi-utils/Makemodule.am | |
parent | f600c700fcc7e703698c1a1164f14ad8d42479b1 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'ubi-utils/Makemodule.am')
-rw-r--r-- | ubi-utils/Makemodule.am | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/ubi-utils/Makemodule.am b/ubi-utils/Makemodule.am new file mode 100644 index 0000000..ea18235 --- /dev/null +++ b/ubi-utils/Makemodule.am @@ -0,0 +1,73 @@ +libubi_a_SOURCES = ubi-utils/libubi.c ubi-utils/ubiutils-common.c ubi-utils/libubi_int.h +libubi_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +libubigen_a_SOURCES = ubi-utils/libubigen.c +libubigen_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubiupdatevol_SOURCES = ubi-utils/ubiupdatevol.c +ubiupdatevol_LDADD = libmtd.a libubi.a +ubiupdatevol_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubimkvol_SOURCES = ubi-utils/ubimkvol.c +ubimkvol_LDADD = libmtd.a libubi.a +ubimkvol_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubirmvol_SOURCES = ubi-utils/ubirmvol.c +ubirmvol_LDADD = libmtd.a libubi.a +ubirmvol_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubicrc32_SOURCES = ubi-utils/ubicrc32.c +ubicrc32_LDADD = libmtd.a libubi.a +ubicrc32_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubinfo_SOURCES = ubi-utils/ubinfo.c +ubinfo_LDADD = libmtd.a libubi.a +ubinfo_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubiattach_SOURCES = ubi-utils/ubiattach.c +ubiattach_LDADD = libmtd.a libubi.a +ubiattach_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubidetach_SOURCES = ubi-utils/ubidetach.c +ubidetach_LDADD = libmtd.a libubi.a +ubidetach_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubinize_SOURCES = ubi-utils/ubinize.c ubi-utils/libiniparser.c ubi-utils/dictionary.c +ubinize_LDADD = libubi.a libubigen.a libmtd.a +ubinize_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubiformat_SOURCES = ubi-utils/ubiformat.c ubi-utils/libscan.c +ubiformat_LDADD = libubi.a libubigen.a libmtd.a +ubiformat_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubirename_SOURCES = ubi-utils/ubirename.c +ubirename_LDADD = libmtd.a libubi.a +ubirename_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +mtdinfo_SOURCES = ubi-utils/mtdinfo.c +mtdinfo_LDADD = libubi.a libubigen.a libmtd.a +mtdinfo_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubirsvol_SOURCES = ubi-utils/ubirsvol.c +ubirsvol_LDADD = libmtd.a libubi.a +ubirsvol_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +ubiblock_SOURCES = ubi-utils/ubiblock.c +ubiblock_LDADD = libmtd.a libubi.a +ubiblock_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include + +UBI_BINS = \ + ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \ + ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol ubiblock + +UBI_EXTRA = \ + ubi-utils/LICENSE.libiniparser + +UBI_HEADER = \ + ubi-utils/include ubi-utils/libubi_int.h + +EXTRA_DIST += $(UBI_HEADER) $(UBI_EXTRA) + +sbin_PROGRAMS += $(UBI_BINS) + +noinst_LIBRARIES += libubi.a libubigen.a |