diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-13 19:04:00 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-13 19:04:00 +0000 |
commit | 30d77f4b561efa82d87b1767281a687c72f78dc4 (patch) | |
tree | 49493696039b285aa751a5bc884fc70c9c85e878 /e2fsprogs | |
parent | 12f32660d14e442e42ed667c106fec3a9db79856 (diff) | |
download | busybox-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.in | 94 |
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 | ||
7 | srcdir:=$(top_srcdir)/e2fsprogs | 7 | E2FSPROGS_AR:=e2fsprogs.a |
8 | objdir:=$(top_builddir)/e2fsprogs | 8 | |
9 | E2FSPROGS_DIR:=$(top_builddir)/e2fsprogs | ||
10 | E2FSPROGS_SRC:=$(top_srcdir)/e2fsprogs | ||
11 | |||
12 | E2FSPROGS_CFLAGS := -include $(E2FSPROGS_SRC)/e2fsbb.h | ||
9 | 13 | ||
10 | BLKID_SRC := cache.c dev.c devname.c devno.c blkid_getsize.c \ | 14 | BLKID_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 \ | |||
35 | UUID_SRCS := $(patsubst %,uuid/%, $(UUID_SRC)) | 39 | UUID_SRCS := $(patsubst %,uuid/%, $(UUID_SRC)) |
36 | UUID_OBJS := $(patsubst %.c,%.o, $(UUID_SRCS)) | 40 | UUID_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). |
48 | ifeq ($(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 | |||
57 | e2fsprogs-rules-seen:=1 | ||
58 | endif | ||
59 | |||
60 | ifeq ($(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 | |||
78 | e2fsprogs-rules-seen:=1 | ||
79 | endif | ||
80 | |||
81 | ifndef 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 | ||
87 | endif | ||
88 | |||
89 | 56 | ||
57 | E2FSPROGS-y:= | ||
90 | E2FSPROGS-$(CONFIG_CHATTR) += chattr.o $(E2P_OBJS) | 58 | E2FSPROGS-$(CONFIG_CHATTR) += chattr.o $(E2P_OBJS) |
91 | E2FSPROGS-$(CONFIG_E2FSCK) += e2fsck.o util.o $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS) | 59 | E2FSPROGS-$(CONFIG_E2FSCK) += e2fsck.o util.o $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS) |
92 | E2FSPROGS-$(CONFIG_FSCK) += fsck.o util.o $(BLKID_OBJS) $(UUID_OBJS) | 60 | E2FSPROGS-$(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 | |||
95 | E2FSPROGS-$(CONFIG_TUNE2FS) += tune2fs.o util.o $(E2P_OBJS) $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS) | 63 | E2FSPROGS-$(CONFIG_TUNE2FS) += tune2fs.o util.o $(E2P_OBJS) $(BLKID_OBJS) $(EXT2FS_OBJS) $(UUID_OBJS) |
96 | 64 | ||
97 | E2FSPROGS-y:=$(sort $(E2FSPROGS-y)) | 65 | E2FSPROGS-y:=$(sort $(E2FSPROGS-y)) |
98 | ifneq ($(E2FSPROGS-y),) | ||
99 | CFLAGS-e2fsprogs := -include $(srcdir)/e2fsbb.h | ||
100 | endif | ||
101 | |||
102 | E2FSPROGS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(E2FSPROGS-y)) | ||
103 | E2FSPROGS_SRC-a:=$(wildcard $(srcdir)/*.c) $(patsubst %,$(srcdir)/%,$(BLKID_SRCS) $(E2P_SRCS) $(EXT2FS_SRCS) $(UUID_SRCS)) | ||
104 | APPLET_SRC-y+=$(E2FSPROGS_SRC-y) | ||
105 | APPLET_SRC-a+=$(E2FSPROGS_SRC-a) | ||
106 | 66 | ||
107 | $(warning FIXME: change .c to include their stuff relative to $(srcdir)) | 67 | ifneq ($(strip $(E2FSPROGS-y)),) |
108 | E2FSPROGS_TMP_KLUDGE:=$(patsubst %,-I$(srcdir)/%,blkid e2fsck e2p ext2fs uuid) | 68 | libraries-y+=$(E2FSPROGS_DIR)/$(E2FSPROGS_AR) |
109 | CFLAGS-blkid=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs) | 69 | endif |
110 | CFLAGS-e2fsck=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs) | ||
111 | CFLAGS-e2p=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs) | ||
112 | CFLAGS-ext2fs=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs) | ||
113 | CFLAGS-uuid=$(E2FSPROGS_TMP_KLUDGE) $(CFLAGS-e2fsprogs) | ||
114 | 70 | ||
71 | E2FSPROGS_SRC-y:=$(patsubst %.o,$(E2FSPROGS_SRC)/%.c,$(E2FSPROGS-y)) | ||
72 | E2FSPROGS_SRC-a:=$(wildcard $(E2FSPROGS_SRC)/*.c) $(patsubst %,$(E2FSPROGS_SRC)/%,$(BLKID_SRCS) $(E2P_SRCS) $(EXT2FS_SRCS) $(UUID_SRCS)) | ||
73 | APPLET_SRC-y+=$(E2FSPROGS_CFLAGS) $(E2FSPROGS_SRC-y) | ||
74 | APPLET_SRC-a+=$(E2FSPROGS_CFLAGS) $(E2FSPROGS_SRC-a) | ||
115 | 75 | ||
116 | APPLETS_DEFINE-y+=$(CFLAGS-e2fsprogs) -I$(srcdir) $(E2FSPROGS_TMP_KLUDGE) | 76 | # XXX: FIXME: change .c to include their stuff relative to $(E2FSPROGS_SRC) |
117 | APPLETS_DEFINE-a+=$(CFLAGS-e2fsprogs) -I$(srcdir) $(E2FSPROGS_TMP_KLUDGE) | 77 | E2FSPROGS_TMP_KLUDGE:=$(patsubst %,-I$(E2FSPROGS_SRC)/%,blkid e2fsck e2p ext2fs uuid) |
118 | 78 | ||
119 | e2fsprogs_OBJ:= $(patsubst %,$(objdir)/%,$(E2FSPROGS-y)) | 79 | APPLETS_DEFINE-y+=$(E2FSPROGS_CFLAGS) -I$(E2FSPROGS_SRC) $(E2FSPROGS_TMP_KLUDGE) |
80 | APPLETS_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) |
123 | libraries-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) | ||