Don't build directory libraries unless we're building an applet that needs it.

Cherry-picked from Devin Bayer's big MacOS X patch.
This commit is contained in:
Rob Landley
2006-02-21 19:11:35 +00:00
parent 6f2a0b2275
commit d6e14d8bee
17 changed files with 37 additions and 1 deletions

View File

@@ -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)