]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Teach makefiles to build all static programs using the target all-static
authorTheodore Ts'o <tytso@mit.edu>
Sat, 28 Mar 2020 21:56:56 +0000 (17:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2020 04:10:53 +0000 (00:10 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
MCONFIG.in
Makefile.in
e2fsck/Makefile.in
misc/Makefile.in
po/Makefile.in.in
resize/Makefile.in

index 6151825accd960dbb59e8c9422486600af17dc78..0598f21b790cd0acabd8c1cf56329636dc8116e9 100644 (file)
@@ -2,6 +2,8 @@
 
 all::
 
+all-static::
+
 check::
 
 fullcheck::
index b951c0174cc3d3f15c3d7803cba8a0fc5a80ebd2..bf8081e3cf7f1eed3f5a93f6bedadcd868ac80a4 100644 (file)
@@ -36,6 +36,10 @@ all:: subs
 @ALL_CMT@      $(MAKE) progs
 @ALL_CMT@      $(MAKE) docs
 
+all-static::
+       $(MAKE) libs
+@ALL_CMT@      $(MAKE) static-progs
+
 subs: $(DEP_SUBSTITUTE)
        @for i in $(SUBS) ; do if test -d `dirname $$i` ; \
                then $(MAKE) $$i || exit $$? ; fi ; done
@@ -44,6 +48,7 @@ subs: $(DEP_SUBSTITUTE)
        @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
 
 progs: all-progs-recursive
+static-progs: all-static-progs-recursive
 libs: all-libs-recursive
 all-progs-recursive all-libs-recursive:: subs
 
@@ -97,8 +102,9 @@ all-progs-recursive install-progs-recursive install-strip-progs-recursive \
   uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
 
 
-@ALL_CMT@all-progs-recursive install-progs-recursive install-strip-progs-recursive \
-@ALL_CMT@  uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
+@ALL_CMT@all-progs-recursive all-static-progs-recursive install-progs-recursive \
+@ALL_CMT@  install-strip-progs-recursive uninstall-progs-recursive \
+@ALL_CMT@  coverage.txt-progs-recursive:: all-libs-recursive
 @ALL_CMT@      @for subdir in $(PROG_SUBDIRS); do \
 @ALL_CMT@        if test -d $$subdir ; then \
 @ALL_CMT@          target=`echo $@|$(SED) 's/-progs-recursive//'`; \
index 7ca20c86d326e4f148ac4166585aacc98965869d..6e25d27d8328c4bbb49b0bcdc82d7076a6bb23e2 100644 (file)
@@ -111,6 +111,8 @@ all:: profiled $(PROGS) e2fsck $(MANPAGES) $(FMANPAGES)
 
 @PROFILE_CMT@all:: e2fsck.profiled
 
+all-static:: e2fsck.static
+
 e2fsck: $(OBJS)  $(DEPLIBS)
        $(E) "  LD $@"
        $(Q) $(LD) $(ALL_LDFLAGS) $(RDYNAMIC) -o e2fsck $(OBJS) $(LIBS) 
index 9f2a8939db75d2829bca907b5b7f87f8b0bcbba9..fde01775c9dbf2a317ab6554139575e98f8189cc 100644 (file)
@@ -18,13 +18,16 @@ INSTALL = @INSTALL@
 @LINUX_CMT@E4CRYPT_MAN= e4crypt.8
 
 @IMAGER_CMT@E2IMAGE_PROG= e2image
+@IMAGER_CMT@E2IMAGE_STATIC= e2image.static
 @IMAGER_CMT@E2IMAGE_MAN= e2image.8
 
 @UUIDD_CMT@UUIDD_PROG= uuidd
+@UUIDD_CMT@UUIDD_STATIC= uuidd.static
 @UUIDD_CMT@UUIDD_MAN= uuidd.8
 @UUIDD_CMT@UUIDD_PROFILED= uuidd.profiled
 
 @BLKID_CMT@BLKID_PROG= blkid
+@BLKID_CMT@BLKID_STATIC= blkid.static
 @BLKID_CMT@BLKID_MAN= blkid.8
 
 @BLKID_CMT@FINDFS_LINK= findfs
@@ -135,6 +138,9 @@ DEPEND_CFLAGS = -I$(top_srcdir)/e2fsck
 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
        $(FMANPAGES) $(LPROGS) $(E4DEFRAG_PROG) $(E4CRYPT_PROGS) e2fuzz
 
+all-static:: $(E2IMAGE_STATIC) $(UUIDD_STATIC) $(BLKID_STATIC) \
+       dumpe2fs.static mke2fs.static tune2fs.static
+
 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
        e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
        logsave.profiled filefrag.profiled uuidgen.profiled $(UUIDD_PROFILED) \
index 67e1f2f453b54dfa4739f18c20c38112e14b1542..7ca6b7436c6ac277853ea841065bbf986d1ac2a7 100644 (file)
@@ -78,6 +78,8 @@ all: all-@USE_NLS@
 
 all-yes: @MAINTAINER_CMT@stamp-po
 all-no:
+all-static:
+depend:
 
 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
 # been loosely updated. Its purpose is that when a developer or translator
index f7f836a20e043b2eb7260825ed99c25dbe10e9a7..546dff144980ddc68f3a95768a54b3c4080499ac 100644 (file)
@@ -42,6 +42,8 @@ DEPSTATIC_LIBS= $(STATIC_LIBE2P) $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
 
 all:: $(PROGS) $(TEST_PROGS) $(MANPAGES) 
 
+all:: resize2fs.static
+
 resize2fs: $(RESIZE_OBJS) $(DEPLIBS)
        $(E) "  LD $@"
        $(Q) $(CC) $(ALL_LDFLAGS) -o resize2fs $(RESIZE_OBJS) $(LIBS)