aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-13 19:04:00 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-13 19:04:00 +0000
commit30d77f4b561efa82d87b1767281a687c72f78dc4 (patch)
tree49493696039b285aa751a5bc884fc70c9c85e878 /e2fsprogs
parent12f32660d14e442e42ed667c106fec3a9db79856 (diff)
downloadbusybox-w32-30d77f4b561efa82d87b1767281a687c72f78dc4.tar.gz
busybox-w32-30d77f4b561efa82d87b1767281a687c72f78dc4.tar.bz2
busybox-w32-30d77f4b561efa82d87b1767281a687c72f78dc4.zip
- revert back to r14406
git-svn-id: svn://busybox.net/trunk/busybox@14531 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/Makefile.in94
1 files changed, 28 insertions, 66 deletions
diff --git a/e2fsprogs/Makefile.in b/e2fsprogs/Makefile.in
index 0ca1c976d..e4cfdf545 100644
--- a/e2fsprogs/Makefile.in
+++ b/e2fsprogs/Makefile.in
@@ -4,8 +4,12 @@
4# 4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball. 5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6 6
7srcdir:=$(top_srcdir)/e2fsprogs 7E2FSPROGS_AR:=e2fsprogs.a
8objdir:=$(top_builddir)/e2fsprogs 8
9E2FSPROGS_DIR:=$(top_builddir)/e2fsprogs
10E2FSPROGS_SRC:=$(top_srcdir)/e2fsprogs
11
12E2FSPROGS_CFLAGS := -include $(E2FSPROGS_SRC)/e2fsbb.h
9 13
10BLKID_SRC := cache.c dev.c devname.c devno.c blkid_getsize.c \ 14BLKID_SRC := cache.c dev.c devname.c devno.c blkid_getsize.c \
11 probe.c read.c resolve.c save.c tag.c 15 probe.c read.c resolve.c save.c tag.c
@@ -35,58 +39,22 @@ UUID_SRC := compare.c gen_uuid.c pack.c parse.c unpack.c unparse.c \
35UUID_SRCS := $(patsubst %,uuid/%, $(UUID_SRC)) 39UUID_SRCS := $(patsubst %,uuid/%, $(UUID_SRC))
36UUID_OBJS := $(patsubst %.c,%.o, $(UUID_SRCS)) 40UUID_OBJS := $(patsubst %.c,%.o, $(UUID_SRCS))
37 41
38
39# for building out-of-tree we need to make sure that the directories to hold 42# for building out-of-tree we need to make sure that the directories to hold
40# the object tree are created 43# the object tree are created
41$(patsubst %,$(objdir)/%, blkid e2fsck e2p ext2fs uuid): 44$(patsubst %,$(E2FSPROGS_DIR)/%, blkid e2fsck e2p ext2fs uuid):
42 @mkdir -p "$@" 45 @mkdir -p "$@"
43 46
44# make sure that the directories are order-only prerequisites. Otherwise we 47# make sure that the directories are order-only prerequisites. Otherwise we
45# may have object files created after the timestamp of the directory was 48# may have object files created after the timestamp of the directory was
46# updated which would lead to spurious rebuilds (as some of the dentries 49# updated which would lead to spurious rebuilds (as some of the dentries
47# may be older than the dir itself). 50# may be older than the dir itself).
48ifeq ($(MAKE_VERSION),3.81beta4) 51$(patsubst %,$(E2FSPROGS_DIR)/%, $(BLKID_OBJS)):|$(E2FSPROGS_DIR)/blkid
49# alleged bug in 3.81beta4. Stripping dir from dir/files.c 52$(patsubst %,$(E2FSPROGS_DIR)/%, $(E2FSCK_OBJS)):|$(E2FSPROGS_DIR)/e2fsck
50# /top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/file.c 53$(patsubst %,$(E2FSPROGS_DIR)/%, $(E2P_OBJS)):|$(E2FSPROGS_DIR)/e2p
51$(patsubst %,$(objdir)/%,$(BLKID_OBJS)): $(objdir)/blkid/%.o: $(srcdir)/%.c |$(objdir)/blkid 54$(patsubst %,$(E2FSPROGS_DIR)/%, $(EXT2FS_OBJS)):|$(E2FSPROGS_DIR)/ext2fs
52$(patsubst %,$(objdir)/%,$(E2FSCK_OBJS)):$(objdir)/e2fsck/%.o:$(srcdir)/%.c|$(objdir)/e2fsck 55$(patsubst %,$(E2FSPROGS_DIR)/%, $(UUID_OBJS)):|$(E2FSPROGS_DIR)/uuid
53$(patsubst %,$(objdir)/%,$(E2P_OBJS)): $(objdir)/e2p/%.o: $(srcdir)/%.c |$(objdir)/e2p
54$(patsubst %,$(objdir)/%,$(EXT2FS_OBJS)):$(objdir)/ext2fs/%.o:$(srcdir)/%.c|$(objdir)/ext2fs
55$(patsubst %,$(objdir)/%,$(UUID_OBJS)): $(objdir)/uuid/%.o: $(srcdir)/%.c |$(objdir)/uuid
56
57e2fsprogs-rules-seen:=1
58endif
59
60ifeq ($(MAKE_VERSION),3.79.1)
61# no order-only prerequesites
62$(patsubst %,$(objdir)/%,$(BLKID_OBJS)): $(objdir)/blkid/%.o: $(srcdir)/blkid/%.c #|$(objdir)/blkid
63$(patsubst %,$(objdir)/%,$(E2FSCK_OBJS)):$(objdir)/e2fsck/%.o:$(srcdir)/e2fsck/%.c#|$(objdir)/e2fsck
64$(patsubst %,$(objdir)/%,$(E2P_OBJS)): $(objdir)/e2p/%.o: $(srcdir)/e2p/%.c #|$(objdir)/e2p
65$(patsubst %,$(objdir)/%,$(EXT2FS_OBJS)):$(objdir)/ext2fs/%.o:$(srcdir)/ext2fs/%.c#|$(objdir)/ext2fs
66$(patsubst %,$(objdir)/%,$(UUID_OBJS)): $(objdir)/uuid/%.o: $(srcdir)/uuid/%.c #|$(objdir)/uuid
67$(patsubst %,$(objdir)/%,$(BLKID_OBJS)): $(objdir)/blkid
68$(patsubst %,$(objdir)/%,$(E2FSCK_OBJS)):$(objdir)/e2fsck
69$(patsubst %,$(objdir)/%,$(E2P_OBJS)): $(objdir)/e2p
70$(patsubst %,$(objdir)/%,$(EXT2FS_OBJS)):$(objdir)/ext2fs
71$(patsubst %,$(objdir)/%,$(UUID_OBJS)): $(objdir)/uuid
72$(patsubst %,$(objdir)/%,$(BLKID_OBJS)): $(objdir)/blkid
73$(patsubst %,$(objdir)/%,$(E2FSCK_OBJS)):$(objdir)/e2fsck
74$(patsubst %,$(objdir)/%,$(E2P_OBJS)): $(objdir)/e2p
75$(patsubst %,$(objdir)/%,$(EXT2FS_OBJS)):$(objdir)/ext2fs
76$(patsubst %,$(objdir)/%,$(UUID_OBJS)): $(objdir)/uuid
77
78e2fsprogs-rules-seen:=1
79endif
80
81ifndef e2fsprogs-rules-seen
82$(patsubst %,$(objdir)/%,$(BLKID_OBJS)): $(objdir)/blkid/%.o: $(srcdir)/blkid/%.c |$(objdir)/blkid
83$(patsubst %,$(objdir)/%,$(E2FSCK_OBJS)):$(objdir)/e2fsck/%.o:$(srcdir)/e2fsck/%.c|$(objdir)/e2fsck
84$(patsubst %,$(objdir)/%,$(E2P_OBJS)): $(objdir)/e2p/%.o: $(srcdir)/e2p/%.c |$(objdir)/e2p
85$(patsubst %,$(objdir)/%,$(EXT2FS_OBJS)):$(objdir)/ext2fs/%.o:$(srcdir)/ext2fs/%.c|$(objdir)/ext2fs
86$(patsubst %,$(objdir)/%,$(UUID_OBJS)): $(objdir)/uuid/%.o: $(srcdir)/uuid/%.c |$(objdir)/uuid
87endif
88
89 56
57E2FSPROGS-y:=
90E2FSPROGS-$(CONFIG_CHATTR) += chattr.o $(E2P_OBJS) 58E2FSPROGS-$(CONFIG_CHATTR) += chattr.o $(E2P_OBJS)
91E2FSPROGS-$(CONFIG_E2FSCK) += e2fsck.o util.o $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS) 59E2FSPROGS-$(CONFIG_E2FSCK) += e2fsck.o util.o $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS)
92E2FSPROGS-$(CONFIG_FSCK) += fsck.o util.o $(BLKID_OBJS) $(UUID_OBJS) 60E2FSPROGS-$(CONFIG_FSCK) += fsck.o util.o $(BLKID_OBJS) $(UUID_OBJS)
@@ -95,30 +63,24 @@ E2FSPROGS-$(CONFIG_MKE2FS) += mke2fs.o util.o $(E2P_OBJS) $(BLKID_OBJS) $(EX
95E2FSPROGS-$(CONFIG_TUNE2FS) += tune2fs.o util.o $(E2P_OBJS) $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS) 63E2FSPROGS-$(CONFIG_TUNE2FS) += tune2fs.o util.o $(E2P_OBJS) $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS)
96 64
97E2FSPROGS-y:=$(sort $(E2FSPROGS-y)) 65E2FSPROGS-y:=$(sort $(E2FSPROGS-y))
98ifneq ($(E2FSPROGS-y),)
99CFLAGS-e2fsprogs := -include $(srcdir)/e2fsbb.h
100endif
101
102E2FSPROGS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(E2FSPROGS-y))
103E2FSPROGS_SRC-a:=$(wildcard $(srcdir)/*.c) $(patsubst %,$(srcdir)/%,$(BLKID_SRCS) $(E2P_SRCS) $(EXT2FS_SRCS) $(UUID_SRCS))
104APPLET_SRC-y+=$(E2FSPROGS_SRC-y)
105APPLET_SRC-a+=$(E2FSPROGS_SRC-a)
106 66
107$(warning FIXME: change .c to include their stuff relative to $(srcdir)) 67ifneq ($(strip $(E2FSPROGS-y)),)
108E2FSPROGS_TMP_KLUDGE:=$(patsubst %,-I$(srcdir)/%,blkid e2fsck e2p ext2fs uuid) 68libraries-y+=$(E2FSPROGS_DIR)/$(E2FSPROGS_AR)
109CFLAGS-blkid=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs) 69endif
110CFLAGS-e2fsck=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs)
111CFLAGS-e2p=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs)
112CFLAGS-ext2fs=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs)
113CFLAGS-uuid=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs)
114 70
71E2FSPROGS_SRC-y:=$(patsubst %.o,$(E2FSPROGS_SRC)/%.c,$(E2FSPROGS-y))
72E2FSPROGS_SRC-a:=$(wildcard $(E2FSPROGS_SRC)/*.c) $(patsubst %,$(E2FSPROGS_SRC)/%,$(BLKID_SRCS) $(E2P_SRCS) $(EXT2FS_SRCS) $(UUID_SRCS))
73APPLET_SRC-y+=$(E2FSPROGS_CFLAGS) $(E2FSPROGS_SRC-y)
74APPLET_SRC-a+=$(E2FSPROGS_CFLAGS) $(E2FSPROGS_SRC-a)
115 75
116APPLETS_DEFINE-y+=$(CFLAGS-e2fsprogs) -I$(srcdir) $(E2FSPROGS_TMP_KLUDGE) 76# XXX: FIXME: change .c to include their stuff relative to $(E2FSPROGS_SRC)
117APPLETS_DEFINE-a+=$(CFLAGS-e2fsprogs) -I$(srcdir) $(E2FSPROGS_TMP_KLUDGE) 77E2FSPROGS_TMP_KLUDGE:=$(patsubst %,-I$(E2FSPROGS_SRC)/%,blkid e2fsck e2p ext2fs uuid)
118 78
119e2fsprogs_OBJ:= $(patsubst %,$(objdir)/%,$(E2FSPROGS-y)) 79APPLETS_DEFINE-y+=$(E2FSPROGS_CFLAGS) -I$(E2FSPROGS_SRC) $(E2FSPROGS_TMP_KLUDGE)
80APPLETS_DEFINE-a+=$(E2FSPROGS_CFLAGS) -I$(E2FSPROGS_SRC) $(E2FSPROGS_TMP_KLUDGE)
120 81
121$(e2fsprogs_OBJ): $(objdir)/%.o: $(srcdir)/%.c 82$(E2FSPROGS_DIR)/$(E2FSPROGS_AR): $(patsubst %,$(E2FSPROGS_DIR)/%, $(E2FSPROGS-y))
122$(objdir)/e2fsprogs.a: $(e2fsprogs_OBJ) 83 $(do_ar)
123libraries-y:=$(libraries-y) $(objdir)/e2fsprogs.a
124 84
85$(E2FSPROGS_DIR)/%.o: $(subst $(top_builddir),$(top_srcdir),$(E2FSPROGS_DIR)/%.c)
86 $(compile.c) $(E2FSPROGS_CFLAGS)