summaryrefslogtreecommitdiff
path: root/e2fsprogs/Makefile.in
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-02-21 19:11:35 +0000
committerRob Landley <rob@landley.net>2006-02-21 19:11:35 +0000
commitd6e14d8beebb5c9571bded30df6568570f0c2a54 (patch)
tree69cc156c0b3d3a8972e03dfd73108c159bf0be11 /e2fsprogs/Makefile.in
parent6f2a0b22754f1ad85204018491b8ad356a546f0e (diff)
downloadbusybox-d6e14d8beebb5c9571bded30df6568570f0c2a54.tar.gz
Don't build directory libraries unless we're building an applet that needs it.
Cherry-picked from Devin Bayer's big MacOS X patch.
Diffstat (limited to 'e2fsprogs/Makefile.in')
-rw-r--r--e2fsprogs/Makefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsprogs/Makefile.in b/e2fsprogs/Makefile.in
index 28e0e4dee..e4cfdf545 100644
--- a/e2fsprogs/Makefile.in
+++ b/e2fsprogs/Makefile.in
@@ -64,7 +64,10 @@ E2FSPROGS-$(CONFIG_TUNE2FS) += tune2fs.o util.o $(E2P_OBJS) $(BLKID_OBJS) $(E
E2FSPROGS-y:=$(sort $(E2FSPROGS-y))
+ifneq ($(strip $(E2FSPROGS-y)),)
libraries-y+=$(E2FSPROGS_DIR)/$(E2FSPROGS_AR)
+endif
+
E2FSPROGS_SRC-y:=$(patsubst %.o,$(E2FSPROGS_SRC)/%.c,$(E2FSPROGS-y))
E2FSPROGS_SRC-a:=$(wildcard $(E2FSPROGS_SRC)/*.c) $(patsubst %,$(E2FSPROGS_SRC)/%,$(BLKID_SRCS) $(E2P_SRCS) $(EXT2FS_SRCS) $(UUID_SRCS))
APPLET_SRC-y+=$(E2FSPROGS_CFLAGS) $(E2FSPROGS_SRC-y)