]>
Commit | Line | Data |
---|---|---|
a418d3ad TT |
1 | # |
2 | # Standard e2fsprogs prologue.... | |
3 | # | |
4 | ||
5 | srcdir = @srcdir@ | |
6 | top_srcdir = @top_srcdir@ | |
7 | VPATH = @srcdir@ | |
8 | top_builddir = .. | |
1e3472c5 | 9 | my_dir = misc |
a418d3ad TT |
10 | INSTALL = @INSTALL@ |
11 | ||
12 | @MCONFIG@ | |
13 | ||
8d9c50c5 TT |
14 | @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_PROG= e4defrag |
15 | @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_MAN= e4defrag.8 | |
d0a4e54e | 16 | |
cdf186e4 TT |
17 | @IMAGER_CMT@E2IMAGE_PROG= e2image |
18 | @IMAGER_CMT@E2IMAGE_MAN= e2image.8 | |
19 | ||
5610f992 TT |
20 | @UUIDD_CMT@UUIDD_PROG= uuidd |
21 | @UUIDD_CMT@UUIDD_MAN= uuidd.8 | |
22 | ||
14b596d4 TT |
23 | @BLKID_CMT@BLKID_PROG= blkid |
24 | @BLKID_CMT@BLKID_MAN= blkid.8 | |
25 | ||
26 | @BLKID_CMT@FINDFS_LINK= findfs | |
27 | @BLKID_CMT@FINDFS_MAN= findfs.8 | |
28 | ||
29 | SPROGS= mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \ | |
5f8a5ae6 | 30 | $(E2IMAGE_PROG) @FSCK_PROG@ e2undo |
8d9c50c5 | 31 | USPROGS= mklost+found filefrag e2freefrag $(UUIDD_PROG) $(E4DEFRAG_PROG) |
1e3472c5 | 32 | SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \ |
14b596d4 | 33 | e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \ |
8d9c50c5 TT |
34 | logsave.8 filefrag.8 e2freefrag.8 e2undo.8 \ |
35 | $(UUIDD_MAN) $(E4DEFRAG_MAN) @FSCK_MAN@ | |
3c22bf7e | 36 | FMANPAGES= mke2fs.conf.5 ext4.5 |
a418d3ad | 37 | |
6013bbf5 TT |
38 | UPROGS= chattr lsattr @UUID_CMT@ uuidgen |
39 | UMANPAGES= chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1 | |
a418d3ad | 40 | |
5d40773b TT |
41 | LPROGS= @E2INITRD_PROG@ |
42 | ||
ed1b33e8 | 43 | TUNE2FS_OBJS= tune2fs.o util.o |
a418d3ad | 44 | MKLPF_OBJS= mklost+found.o |
23a1b987 | 45 | MKE2FS_OBJS= mke2fs.o util.o profile.o prof_err.o default_profile.o \ |
217c0bdf | 46 | mk_hugefiles.o create_inode.o |
a418d3ad TT |
47 | CHATTR_OBJS= chattr.o |
48 | LSATTR_OBJS= lsattr.o | |
5d45d803 | 49 | UUIDGEN_OBJS= uuidgen.o |
740837de | 50 | UUIDD_OBJS= uuidd.o |
a418d3ad TT |
51 | DUMPE2FS_OBJS= dumpe2fs.o |
52 | BADBLOCKS_OBJS= badblocks.o | |
72ed1264 | 53 | E2IMAGE_OBJS= e2image.o |
fe263da9 | 54 | FSCK_OBJS= fsck.o base_device.o ismounted.o |
e12f2ae7 | 55 | BLKID_OBJS= blkid.o |
96424130 | 56 | FILEFRAG_OBJS= filefrag.o |
5f8a5ae6 | 57 | E2UNDO_OBJS= e2undo.o |
4836459a | 58 | E4DEFRAG_OBJS= e4defrag.o |
0b2681f4 | 59 | E2FREEFRAG_OBJS= e2freefrag.o |
a418d3ad | 60 | |
ad64399d TT |
61 | PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o |
62 | PROFILED_MKLPF_OBJS= profiled/mklost+found.o | |
63 | PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \ | |
217c0bdf RY |
64 | profiled/prof_err.o profiled/default_profile.o \ |
65 | profiled/create_inode.o | |
ad64399d TT |
66 | PROFILED_CHATTR_OBJS= profiled/chattr.o |
67 | PROFILED_LSATTR_OBJS= profiled/lsattr.o | |
68 | PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o | |
69 | PROFILED_UUIDD_OBJS= profiled/uuidd.o | |
70 | PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o | |
71 | PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o | |
72 | PROFILED_E2IMAGE_OBJS= profiled/e2image.o | |
73 | PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \ | |
74 | profiled/ismounted.o | |
75 | PROFILED_BLKID_OBJS= profiled/blkid.o | |
76 | PROFILED_FILEFRAG_OBJS= profiled/filefrag.o | |
51fb43dd | 77 | PROFILED_E2FREEFRAG_OBJS= profiled/e2freefrag.o |
ad64399d | 78 | PROFILED_E2UNDO_OBJS= profiled/e2undo.o |
4836459a | 79 | PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o |
ad64399d | 80 | |
23a1b987 | 81 | SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c $(srcdir)/mk_hugefiles.c \ |
a418d3ad | 82 | $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \ |
63985320 | 83 | $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \ |
96424130 | 84 | $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \ |
8153d1cc | 85 | $(srcdir)/filefrag.c $(srcdir)/base_device.c \ |
5f8a5ae6 | 86 | $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \ |
217c0bdf | 87 | $(srcdir)/e2undo.c $(srcdir)/e2freefrag.c $(srcdir)/create_inode.c |
a418d3ad | 88 | |
6c59a665 | 89 | LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) |
a6a1c081 | 90 | DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR) |
ad64399d | 91 | PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) |
a6a1c081 | 92 | PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR) |
62c06f79 | 93 | |
6c59a665 | 94 | STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) |
a6a1c081 | 95 | STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR) |
62c06f79 | 96 | |
fc56eee2 | 97 | LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR) |
a6a1c081 | 98 | DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR) |
a418d3ad | 99 | |
8153d1cc TT |
100 | COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree |
101 | ||
a418d3ad | 102 | .c.o: |
c13351f6 TT |
103 | $(E) " CC $<" |
104 | $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@ | |
832cb612 | 105 | $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< |
f1605243 | 106 | $(Q) $(CPPCHECK_CMD) $< |
c13351f6 | 107 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
a418d3ad | 108 | |
ad64399d | 109 | all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \ |
d0a4e54e | 110 | $(FMANPAGES) $(LPROGS) $(E4DEFRAG_PROG) |
a418d3ad | 111 | |
ad64399d TT |
112 | @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \ |
113 | e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \ | |
114 | logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \ | |
51fb43dd | 115 | e2image.profiled e4defrag.profiled e2freefrag.profiled |
ad64399d TT |
116 | |
117 | profiled: | |
c13351f6 TT |
118 | @PROFILE_CMT@ $(E) " MKDIR $@" |
119 | @PROFILE_CMT@ $(Q) mkdir profiled | |
ad64399d | 120 | |
8153d1cc | 121 | prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et |
c13351f6 TT |
122 | $(E) " COMPILE_ET prof_err.et" |
123 | $(Q) $(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et | |
8153d1cc | 124 | |
d1154eb4 TT |
125 | profile.h: $(top_srcdir)/e2fsck/profile.h |
126 | $(E) " CP $<" | |
127 | $(Q) cp $< $@ | |
128 | ||
608858ff TT |
129 | mke2fs.conf: $(srcdir)/mke2fs.conf.in |
130 | if test -f $(srcdir)/mke2fs.conf.custom.in ; then \ | |
131 | cp $(srcdir)/mke2fs.conf.custom.in mke2fs.conf; \ | |
132 | else \ | |
133 | cp $(srcdir)/mke2fs.conf.in mke2fs.conf; \ | |
134 | fi | |
135 | ||
136 | default_profile.c: mke2fs.conf $(srcdir)/profile-to-c.awk | |
c13351f6 | 137 | $(E) " PROFILE_TO_C mke2fs.conf" |
608858ff | 138 | $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < mke2fs.conf \ |
d48bc604 | 139 | > default_profile.c |
8153d1cc | 140 | profile.o: |
c13351f6 TT |
141 | $(E) " CC $<" |
142 | $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@ | |
143 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \ | |
ad64399d | 144 | @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c |
8153d1cc | 145 | |
b89122fc | 146 | findsuper: findsuper.o |
c13351f6 | 147 | $(E) " LD $@" |
6c59a665 | 148 | $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o $(LIBS) $(SYSLIBS) |
b89122fc | 149 | |
9d3cce87 | 150 | partinfo: partinfo.o |
c13351f6 TT |
151 | $(E) " LD $@" |
152 | $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o | |
9d3cce87 | 153 | |
29551cac | 154 | e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS) |
c13351f6 TT |
155 | $(E) " LD $@" |
156 | $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \ | |
6c59a665 | 157 | $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL) $(SYSLIBS) |
5d40773b | 158 | |
29551cac | 159 | tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \ |
771e8db9 | 160 | $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS) |
c13351f6 TT |
161 | $(E) " LD $@" |
162 | $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \ | |
771e8db9 | 163 | $(LIBBLKID) $(LIBUUID) $(LIBQUOTA) $(LIBEXT2FS) $(LIBS_E2P) \ |
6c59a665 | 164 | $(LIBINTL) $(SYSLIBS) |
a418d3ad | 165 | |
36328951 | 166 | tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID) |
c13351f6 TT |
167 | $(E) " LD $@" |
168 | $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \ | |
36328951 | 169 | $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \ |
6c59a665 | 170 | $(STATIC_LIBQUOTA) $(STATIC_LIBE2P) $(LIBINTL) $(SYSLIBS) |
36328951 | 171 | |
51fb43dd | 172 | tune2fs.profiled: $(TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \ |
771e8db9 AK |
173 | $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID) \ |
174 | $(DEPPROFILED_LIBQUOTA) | |
c13351f6 TT |
175 | $(E) " LD $@" |
176 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \ | |
ad64399d | 177 | $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \ |
771e8db9 | 178 | $(PROFILED_LIBUUID) $(PROFILED_LIBQUOTA) $(PROFILED_LIBE2P) \ |
6c59a665 | 179 | $(LIBINTL) $(PROFILED_LIBS) $(SYSLIBS) |
ad64399d | 180 | |
29551cac | 181 | blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS) |
c13351f6 TT |
182 | $(E) " LD $@" |
183 | $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \ | |
6c59a665 | 184 | $(LIBEXT2FS) $(SYSLIBS) |
e12f2ae7 | 185 | |
eb630fd8 | 186 | blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID) |
c13351f6 TT |
187 | $(E) " LD $@" |
188 | $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \ | |
6c59a665 | 189 | $(STATIC_LIBBLKID) $(LIBINTL) $(SYSLIBS) |
eb630fd8 | 190 | |
51fb43dd | 191 | blkid.profiled: $(BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \ |
ad64399d | 192 | $(PROFILED_LIBEXT2FS) |
c13351f6 TT |
193 | $(E) " LD $@" |
194 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \ | |
6c59a665 | 195 | $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS) $(SYSLIBS) |
ad64399d | 196 | |
72ed1264 | 197 | e2image: $(E2IMAGE_OBJS) $(DEPLIBS) |
c13351f6 | 198 | $(E) " LD $@" |
6c59a665 TT |
199 | $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) \ |
200 | $(LIBINTL) $(SYSLIBS) | |
72ed1264 | 201 | |
51fb43dd | 202 | e2image.profiled: $(E2IMAGE_OBJS) $(PROFILED_DEPLIBS) |
c13351f6 TT |
203 | $(E) " LD $@" |
204 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \ | |
6c59a665 | 205 | $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL) $(SYSLIBS) |
ad64399d | 206 | |
5f8a5ae6 | 207 | e2undo: $(E2UNDO_OBJS) $(DEPLIBS) |
c13351f6 | 208 | $(E) " LD $@" |
6c59a665 TT |
209 | $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) \ |
210 | $(LIBINTL) $(SYSLIBS) | |
5f8a5ae6 | 211 | |
51fb43dd | 212 | e2undo.profiled: $(E2UNDO_OBJS) $(PROFILED_DEPLIBS) |
c13351f6 TT |
213 | $(E) " LD $@" |
214 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \ | |
6c59a665 | 215 | $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL) $(SYSLIBS) |
ad64399d | 216 | |
c1b87597 | 217 | e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS) |
4836459a | 218 | $(E) " LD $@" |
6c59a665 TT |
219 | $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS) $(LIBS) \ |
220 | $(SYSLIBS) | |
4836459a | 221 | |
51fb43dd | 222 | e4defrag.profiled: $(E4DEFRAG_OBJS) $(PROFILED_DEPLIBS) |
4836459a TT |
223 | $(E) " LD $@" |
224 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \ | |
6c59a665 | 225 | $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_LIBS) $(SYSLIBS) |
4836459a | 226 | |
793e27df | 227 | base_device: base_device.c |
c13351f6 TT |
228 | $(E) " LD $@" |
229 | $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \ | |
6c59a665 | 230 | -DDEBUG -o base_device $(SYSLIBS) |
793e27df TT |
231 | |
232 | check:: base_device | |
233 | ./base_device < $(srcdir)/base_device.tst > base_device.out | |
234 | cmp $(srcdir)/base_device.tst base_device.out | |
235 | ||
a418d3ad | 236 | mklost+found: $(MKLPF_OBJS) |
c13351f6 | 237 | $(E) " LD $@" |
6c59a665 TT |
238 | $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) \ |
239 | $(LIBINTL) $(SYSLIBS) | |
a418d3ad | 240 | |
29551cac | 241 | mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \ |
1f5d7a89 | 242 | $(DEPLIBQUOTA) $(LIBEXT2FS) |
c13351f6 TT |
243 | $(E) " LD $@" |
244 | $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \ | |
6c59a665 TT |
245 | $(LIBUUID) $(LIBQUOTA) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL) \ |
246 | $(SYSLIBS) | |
a418d3ad | 247 | |
1f5d7a89 AK |
248 | mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) \ |
249 | $(DEPSTATIC_LIBQUOTA) $(DEPSTATIC_LIBBLKID) | |
c13351f6 TT |
250 | $(E) " LD $@" |
251 | $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \ | |
47811397 | 252 | $(STATIC_LIBQUOTA) $(STATIC_LIBS) $(STATIC_LIBE2P) \ |
6c59a665 | 253 | $(STATIC_LIBBLKID) $(STATIC_LIBUUID) $(LIBINTL) $(SYSLIBS) |
1e3472c5 | 254 | |
51fb43dd | 255 | mke2fs.profiled: $(MKE2FS_OBJS) $(PROFILED_DEPLIBS) \ |
1f5d7a89 AK |
256 | $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID) \ |
257 | $(PROFILED_LIBQUOTA) | |
c13351f6 TT |
258 | $(E) " LD $@" |
259 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \ | |
ad64399d | 260 | $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \ |
6c59a665 TT |
261 | $(PROFILED_LIBUUID) $(PROFILED_LIBQUOTA) $(PROFILED_LIBE2P) \ |
262 | $(LIBINTL) $(PROFILED_LIBS) $(SYSLIBS) | |
ad64399d | 263 | |
62c06f79 | 264 | chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P) |
c13351f6 | 265 | $(E) " LD $@" |
6c59a665 TT |
266 | $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) \ |
267 | $(LIBINTL) $(SYSLIBS) | |
a418d3ad | 268 | |
62c06f79 | 269 | lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P) |
c13351f6 | 270 | $(E) " LD $@" |
6c59a665 TT |
271 | $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) \ |
272 | $(LIBINTL) $(SYSLIBS) | |
a418d3ad | 273 | |
3cb7784f | 274 | uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID) |
c13351f6 | 275 | $(E) " LD $@" |
6c59a665 TT |
276 | $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) \ |
277 | $(LIBINTL) $(SYSLIBS) | |
5d45d803 | 278 | |
51fb43dd | 279 | uuidgen.profiled: $(UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID) |
c13351f6 TT |
280 | $(E) " LD $@" |
281 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \ | |
6c59a665 TT |
282 | $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL) \ |
283 | $(SYSLIBS) | |
ad64399d | 284 | |
740837de | 285 | uuidd: $(UUIDD_OBJS) $(DEPLIBUUID) |
c13351f6 | 286 | $(E) " LD $@" |
6c59a665 TT |
287 | $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) \ |
288 | $(LIBINTL) $(SYSLIBS) | |
740837de | 289 | |
51fb43dd | 290 | uuidd.profiled: $(UUIDD_OBJS) $(PROFILED_DEPLIBUUID) |
c13351f6 TT |
291 | $(E) " LD $@" |
292 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \ | |
6c59a665 | 293 | $(PROFILED_LIBUUID) $(LIBINTL) $(SYSLIBS) |
ad64399d | 294 | |
fc56eee2 | 295 | dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID) |
c13351f6 TT |
296 | $(E) " LD $@" |
297 | $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \ | |
6c59a665 | 298 | $(LIBS_E2P) $(LIBUUID) $(LIBINTL) $(SYSLIBS) |
a418d3ad | 299 | |
51fb43dd | 300 | dumpe2fs.profiled: $(DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \ |
ad64399d | 301 | $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID) |
c13351f6 TT |
302 | $(E) " LD $@" |
303 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \ | |
ad64399d | 304 | $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \ |
6c59a665 | 305 | $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL) $(SYSLIBS) |
ad64399d | 306 | |
29551cac | 307 | fsck: $(FSCK_OBJS) $(DEPLIBBLKID) |
c13351f6 | 308 | $(E) " LD $@" |
6c59a665 TT |
309 | $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) \ |
310 | $(LIBINTL) $(SYSLIBS) | |
a418d3ad | 311 | |
51fb43dd | 312 | fsck.profiled: $(FSCK_OBJS) $(PROFILED_DEPLIBBLKID) |
c13351f6 TT |
313 | $(E) " LD $@" |
314 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \ | |
6c59a665 | 315 | $(PROFILED_LIBBLKID) $(LIBINTL) $(SYSLIBS) |
ad64399d | 316 | |
a418d3ad | 317 | badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS) |
c13351f6 | 318 | $(E) " LD $@" |
6c59a665 TT |
319 | $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) \ |
320 | $(LIBINTL) $(SYSLIBS) | |
a418d3ad | 321 | |
51fb43dd | 322 | badblocks.profiled: $(BADBLOCKS_OBJS) $(PROFILED_DEPLIBS) |
c13351f6 TT |
323 | $(E) " LD $@" |
324 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \ | |
6c59a665 TT |
325 | $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL) \ |
326 | $(SYSLIBS) | |
ad64399d | 327 | |
f9ddad59 | 328 | logsave: logsave.o |
c13351f6 | 329 | $(E) " LD $@" |
6c59a665 | 330 | $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o $(SYSLIBS) |
f9ddad59 | 331 | |
51fb43dd | 332 | logsave.profiled: logsave.o |
c13351f6 | 333 | $(E) " LD $@" |
6c59a665 TT |
334 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled \ |
335 | profiled/logsave.o $(SYSLIBS) | |
ad64399d | 336 | |
0b2681f4 | 337 | e2freefrag: $(E2FREEFRAG_OBJS) |
0d990d0a | 338 | $(E) " LD $@" |
6c59a665 TT |
339 | $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) \ |
340 | $(LIBS) $(SYSLIBS) | |
0b2681f4 | 341 | |
51fb43dd TT |
342 | e2freefrag.profiled: $(E2FREEFRAG_OBJS) $(PROFILED_DEPLIBS) |
343 | $(E) " LD $@" | |
344 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2freefrag.profiled \ | |
6c59a665 | 345 | $(PROFILED_E2FREEFRAG_OBJS) $(PROFILED_LIBS) $(SYSLIBS) |
51fb43dd | 346 | |
96424130 | 347 | filefrag: $(FILEFRAG_OBJS) |
c13351f6 | 348 | $(E) " LD $@" |
6c59a665 | 349 | $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS) $(SYSLIBS) |
96424130 | 350 | |
51fb43dd | 351 | filefrag.profiled: $(FILEFRAG_OBJS) |
c13351f6 TT |
352 | $(E) " LD $@" |
353 | $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \ | |
ad64399d TT |
354 | $(PROFILED_FILEFRAG_OBJS) |
355 | ||
a6a1c081 | 356 | tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR) |
c13351f6 | 357 | $(E) " LD $@" |
a6a1c081 | 358 | $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \ |
6c59a665 | 359 | $(LIBCOM_ERR) $(SYSLIBS) |
fe263da9 | 360 | |
44339bdf | 361 | tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in |
c13351f6 TT |
362 | $(E) " SUBST $@" |
363 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8 | |
62c06f79 | 364 | |
44339bdf | 365 | mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in |
c13351f6 TT |
366 | $(E) " SUBST $@" |
367 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8 | |
62c06f79 | 368 | |
44339bdf | 369 | mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in |
c13351f6 TT |
370 | $(E) " SUBST $@" |
371 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8 | |
62c06f79 | 372 | |
9dc6ad1e | 373 | mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in |
c13351f6 TT |
374 | $(E) " SUBST $@" |
375 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5 | |
917cb469 | 376 | |
3c22bf7e TT |
377 | ext4.5: $(DEP_SUBSTITUTE) $(srcdir)/ext4.5.in |
378 | $(E) " SUBST $@" | |
379 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/$@.in $@ | |
380 | ||
a789d840 | 381 | e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in |
c13351f6 TT |
382 | $(E) " SUBST $@" |
383 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8 | |
a789d840 | 384 | |
5f8a5ae6 | 385 | e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in |
c13351f6 TT |
386 | $(E) " SUBST $@" |
387 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8 | |
5f8a5ae6 | 388 | |
118d7dac | 389 | findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in |
c13351f6 TT |
390 | $(E) " SUBST $@" |
391 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8 | |
118d7dac | 392 | |
348e43dc | 393 | e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in |
c13351f6 TT |
394 | $(E) " SUBST $@" |
395 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8 | |
348e43dc | 396 | |
4836459a TT |
397 | e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in |
398 | $(E) " SUBST $@" | |
399 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8 | |
400 | ||
44339bdf | 401 | dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in |
c13351f6 TT |
402 | $(E) " SUBST $@" |
403 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8 | |
62c06f79 | 404 | |
44339bdf | 405 | badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in |
c13351f6 TT |
406 | $(E) " SUBST $@" |
407 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8 | |
62c06f79 | 408 | |
44339bdf | 409 | fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in |
c13351f6 TT |
410 | $(E) " SUBST $@" |
411 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8 | |
62c06f79 | 412 | |
e12f2ae7 | 413 | blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in |
c13351f6 TT |
414 | $(E) " SUBST $@" |
415 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8 | |
e12f2ae7 | 416 | |
f9ddad59 | 417 | logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in |
c13351f6 TT |
418 | $(E) " SUBST $@" |
419 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8 | |
f9ddad59 | 420 | |
740837de | 421 | uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in |
c13351f6 TT |
422 | $(E) " SUBST $@" |
423 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8 | |
740837de | 424 | |
44339bdf | 425 | chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in |
c13351f6 TT |
426 | $(E) " SUBST $@" |
427 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1 | |
62c06f79 | 428 | |
44339bdf | 429 | lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in |
c13351f6 TT |
430 | $(E) " SUBST $@" |
431 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1 | |
62c06f79 | 432 | |
5d45d803 | 433 | uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in |
c13351f6 TT |
434 | $(E) " SUBST $@" |
435 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1 | |
5d45d803 | 436 | |
e12f2ae7 | 437 | blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in |
c13351f6 TT |
438 | $(E) " SUBST $@" |
439 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1 | |
e12f2ae7 | 440 | |
0b2681f4 | 441 | e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in |
c1986ecb | 442 | $(E) " SUBST $@" |
0b2681f4 TT |
443 | @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8 |
444 | ||
96424130 | 445 | filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in |
c13351f6 TT |
446 | $(E) " SUBST $@" |
447 | $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8 | |
96424130 | 448 | |
a418d3ad | 449 | installdirs: |
c13351f6 TT |
450 | $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)" |
451 | $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \ | |
7e44f242 | 452 | $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \ |
917cb469 TT |
453 | $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \ |
454 | $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \ | |
ab9f1a84 | 455 | $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir) |
a418d3ad TT |
456 | |
457 | install: all $(SMANPAGES) $(UMANPAGES) installdirs | |
c13351f6 | 458 | $(Q) for i in $(SPROGS); do \ |
c1986ecb | 459 | $(ES) " INSTALL $(root_sbindir)/$$i"; \ |
7e44f242 | 460 | $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \ |
a418d3ad | 461 | done |
c13351f6 | 462 | $(Q) for i in $(USPROGS); do \ |
c1986ecb | 463 | $(ES) " INSTALL $(sbindir)/$$i"; \ |
7e44f242 | 464 | $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \ |
a418d3ad | 465 | done |
5aa6c3f6 | 466 | $(Q) for i in ext2 ext3 ext4 ext4dev; do \ |
c1986ecb | 467 | $(ES) " LINK $(root_sbindir)/mkfs.$$i"; \ |
5aa6c3f6 TT |
468 | (cd $(DESTDIR)$(root_sbindir); \ |
469 | $(LN) $(LINK_INSTALL_FLAGS) mke2fs mkfs.$$i); \ | |
470 | done | |
471 | $(Q) (cd $(DESTDIR)$(root_sbindir); \ | |
472 | $(LN) $(LINK_INSTALL_FLAGS) tune2fs e2label) | |
c13351f6 | 473 | $(Q) if test -n "$(FINDFS_LINK)"; then \ |
c1986ecb | 474 | $(ES) " LINK $(root_sbindir)/findfs"; \ |
5aa6c3f6 TT |
475 | (cd $(DESTDIR)$(root_sbindir); \ |
476 | $(LN) $(LINK_INSTALL_FLAGS) tune2fs $(FINDFS_LINK)); \ | |
14b596d4 | 477 | fi |
c13351f6 | 478 | $(Q) for i in $(UPROGS); do \ |
c1986ecb | 479 | $(ES) " INSTALL $(bindir)/$$i"; \ |
7e44f242 | 480 | $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \ |
a418d3ad | 481 | done |
c13351f6 | 482 | $(Q) for i in $(LPROGS); do \ |
c1986ecb | 483 | $(ES) " INSTALL $(libdir)/$$i"; \ |
5d40773b | 484 | $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \ |
5d40773b | 485 | done |
c13351f6 | 486 | $(Q) for i in $(SMANPAGES); do \ |
482afc44 TT |
487 | for j in $(COMPRESS_EXT); do \ |
488 | $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \ | |
489 | done; \ | |
c1986ecb | 490 | $(ES) " INSTALL_DATA $(man8dir)/$$i"; \ |
74becf3c | 491 | $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \ |
a418d3ad | 492 | done |
c13351f6 | 493 | $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \ |
b9f40925 | 494 | $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz |
5aa6c3f6 | 495 | $(Q) for i in ext2 ext3 ext4 ext4dev; do \ |
c1986ecb | 496 | $(ES) " LINK mkfs.$$i.8"; \ |
5aa6c3f6 TT |
497 | (cd $(DESTDIR)$(man8dir); \ |
498 | $(LN) $(LINK_INSTALL_FLAGS) mke2fs.8 mkfs.$$i.8); \ | |
499 | done | |
c13351f6 | 500 | $(Q) for i in $(UMANPAGES); do \ |
917cb469 TT |
501 | for j in $(COMPRESS_EXT); do \ |
502 | $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \ | |
503 | done; \ | |
c1986ecb | 504 | $(ES) " INSTALL_DATA $(man1dir)/$$i"; \ |
74becf3c | 505 | $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \ |
a418d3ad | 506 | done |
c13351f6 | 507 | $(Q) for i in $(FMANPAGES); do \ |
917cb469 TT |
508 | for j in $(COMPRESS_EXT); do \ |
509 | $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \ | |
510 | done; \ | |
c1986ecb | 511 | $(ES) " INSTALL_DATA $(man5dir)/$$i"; \ |
9dc6ad1e TT |
512 | $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \ |
513 | done | |
3c22bf7e TT |
514 | $(Q) for i in ext2 ext3; do \ |
515 | $(ES) " LINK $$i.5"; \ | |
516 | (cd $(DESTDIR)$(man5dir); \ | |
517 | $(LN) $(LINK_INSTALL_FLAGS) ext4.5 $$i.5); \ | |
518 | done | |
c13351f6 | 519 | $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \ |
03ce7afa | 520 | if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \ |
608858ff | 521 | mke2fs.conf; then \ |
03ce7afa TT |
522 | true; \ |
523 | else \ | |
524 | if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \ | |
c1986ecb | 525 | $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \ |
608858ff | 526 | $(INSTALL_DATA) mke2fs.conf \ |
03ce7afa TT |
527 | $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \ |
528 | echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \ | |
529 | echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \ | |
530 | else \ | |
c1986ecb | 531 | $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \ |
03ce7afa TT |
532 | mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \ |
533 | $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \ | |
608858ff | 534 | $(INSTALL_DATA) mke2fs.conf \ |
03ce7afa TT |
535 | $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \ |
536 | echo "Your mke2fs.conf is too old. Backing up old version in"; \ | |
537 | echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \ | |
538 | echo "if you have any local customizations that you wish to preserve."; \ | |
539 | fi; \ | |
540 | echo " "; \ | |
541 | fi; \ | |
542 | else \ | |
c1986ecb | 543 | $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \ |
608858ff | 544 | $(INSTALL_DATA) mke2fs.conf \ |
cdfa2ba7 | 545 | $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \ |
9dc6ad1e | 546 | fi |
a418d3ad | 547 | |
522798d3 | 548 | install-strip: install |
c13351f6 | 549 | $(Q) for i in $(SPROGS); do \ |
c1986ecb | 550 | $(E) " STRIP $(root_sbindir)/$$i"; \ |
522798d3 TT |
551 | $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \ |
552 | done | |
c13351f6 | 553 | $(Q) for i in $(USPROGS); do \ |
c1986ecb | 554 | $(E) " STRIP $(sbindir)/$$i"; \ |
522798d3 TT |
555 | $(STRIP) $(DESTDIR)$(sbindir)/$$i; \ |
556 | done | |
557 | ||
a418d3ad TT |
558 | uninstall: |
559 | for i in $(SPROGS); do \ | |
7e44f242 | 560 | $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ |
a418d3ad TT |
561 | done |
562 | for i in $(USPROGS); do \ | |
7e44f242 | 563 | $(RM) -f $(DESTDIR)$(sbindir)/$$i; \ |
a418d3ad | 564 | done |
f923bf2a TT |
565 | for i in $(LPROGS); do \ |
566 | $(RM) -f $(DESTDIR)$(libdir)/$$i; \ | |
567 | done | |
b9f40925 | 568 | $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \ |
eda08d45 TT |
569 | $(DESTDIR)$(root_sbindir)/mkfs.ext3 \ |
570 | $(DESTDIR)$(root_sbindir)/mkfs.ext4 \ | |
571 | $(DESTDIR)$(root_sbindir)/mkfs.ext4dev | |
a418d3ad | 572 | for i in $(UPROGS); do \ |
7e44f242 | 573 | $(RM) -f $(DESTDIR)$(bindir)/$$i; \ |
a418d3ad TT |
574 | done |
575 | for i in $(SMANPAGES); do \ | |
7e44f242 | 576 | $(RM) -f $(DESTDIR)$(man8dir)/$$i; \ |
a418d3ad | 577 | done |
b9f40925 | 578 | $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \ |
eda08d45 TT |
579 | $(DESTDIR)$(man8dir)/mkfs.ext3.8 \ |
580 | $(DESTDIR)$(man8dir)/mkfs.ext4.8 \ | |
3c22bf7e TT |
581 | $(DESTDIR)$(man8dir)/mkfs.ext4dev.8 \ |
582 | $(DESTDIR)$(man8dir)/fsck.ext2.8 \ | |
583 | $(DESTDIR)$(man8dir)/fsck.ext3.8 \ | |
584 | $(DESTDIR)$(man8dir)/fsck.ext4.8 \ | |
585 | $(DESTDIR)$(man8dir)/fsck.ext4dev.8 | |
586 | ||
a418d3ad | 587 | for i in $(UMANPAGES); do \ |
7e44f242 | 588 | $(RM) -f $(DESTDIR)$(man1dir)/$$i; \ |
a418d3ad | 589 | done |
14b596d4 | 590 | for i in $(FINDFS_LINK) e2label ; do \ |
f923bf2a TT |
591 | $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ |
592 | done | |
9dc6ad1e TT |
593 | for i in $(FMANPAGES); do \ |
594 | $(RM) -f $(DESTDIR)$(man5dir)/$$i; \ | |
595 | done | |
3c22bf7e TT |
596 | $(Q) for i in ext2 ext3; do \ |
597 | $(ES) " LINK $$i.5"; \ | |
598 | $(RM) -f $(DESTDIR)$(man5dir)/$$i.5; \ | |
599 | done | |
608858ff | 600 | if cmp -s mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \ |
7c8e9ac7 | 601 | $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \ |
9dc6ad1e | 602 | fi |
a418d3ad | 603 | |
fedfb27f | 604 | clean:: |
62c06f79 | 605 | $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \ |
d1154eb4 | 606 | $(FMANPAGES) profile.h \ |
0b2681f4 | 607 | base_device base_device.out mke2fs.static filefrag e2freefrag \ |
d48bc604 | 608 | e2initrd_helper partinfo prof_err.[ch] default_profile.c \ |
ad64399d TT |
609 | uuidd e2image tune2fs.static tst_ismounted fsck.profiled \ |
610 | blkid.profiled tune2fs.profiled e2image.profiled \ | |
611 | e2undo.profiled mke2fs.profiled dumpe2fs.profiled \ | |
612 | logsave.profiled filefrag.profiled uuidgen.profiled \ | |
608858ff | 613 | uuidd.profiled e2image.profiled mke2fs.conf \ |
ad64399d | 614 | profiled/*.o \#* *.s *.o *.a *~ core gmon.out |
62c06f79 | 615 | |
a418d3ad TT |
616 | mostlyclean: clean |
617 | distclean: clean | |
5c36a2f8 | 618 | $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
a418d3ad TT |
619 | |
620 | # +++ Dependency line eater +++ | |
621 | # | |
622 | # Makefile dependencies follow. This must be the last section in | |
623 | # the Makefile.in file | |
624 | # | |
d1154eb4 TT |
625 | tune2fs.o: $(srcdir)/tune2fs.c $(top_builddir)/lib/config.h \ |
626 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
5f0fabe6 | 627 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
e1f08507 TT |
628 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
629 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
630 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
631 | $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \ | |
632 | $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \ | |
633 | $(top_srcdir)/lib/ext2fs/kernel-list.h $(srcdir)/util.h \ | |
2ae58b6d JK |
634 | $(top_srcdir)/lib/quota/mkquota.h $(top_srcdir)/lib/quota/quotaio.h \ |
635 | $(top_srcdir)/lib/quota/dqblk_v2.h $(top_srcdir)/lib/quota/quotaio_tree.h \ | |
d1154eb4 TT |
636 | $(top_srcdir)/lib/../e2fsck/dict.h $(top_srcdir)/version.h \ |
637 | $(srcdir)/nls-enable.h | |
638 | mklost+found.o: $(srcdir)/mklost+found.c $(top_builddir)/lib/config.h \ | |
639 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
797f5ef1 | 640 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \ |
0e8a9560 | 641 | $(srcdir)/nls-enable.h |
d1154eb4 TT |
642 | mke2fs.o: $(srcdir)/mke2fs.c $(top_builddir)/lib/config.h \ |
643 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
1ca87790 TT |
644 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fsP.h \ |
645 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
646 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
e1f08507 TT |
647 | $(top_builddir)/lib/ext2fs/ext2_err.h \ |
648 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
d1154eb4 | 649 | $(srcdir)/util.h profile.h prof_err.h $(top_srcdir)/version.h \ |
cecc79ac | 650 | $(top_srcdir)/lib/quota/mkquota.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
2ae58b6d | 651 | $(top_srcdir)/lib/quota/quotaio.h $(top_srcdir)/lib/quota/dqblk_v2.h \ |
23a1b987 | 652 | $(top_srcdir)/lib/quota/quotaio_tree.h $(top_srcdir)/lib/../e2fsck/dict.h \ |
cecc79ac TT |
653 | $(srcdir)/mke2fs.h $(srcdir)/create_inode.h $(top_srcdir)/lib/e2p/e2p.h \ |
654 | $(srcdir)/nls-enable.h | |
23a1b987 TT |
655 | mk_hugefiles.o: $(srcdir)/mk_hugefiles.c $(top_builddir)/lib/config.h \ |
656 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
657 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fsP.h \ | |
658 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
659 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
660 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
661 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
662 | $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ | |
663 | $(srcdir)/util.h profile.h prof_err.h $(srcdir)/nls-enable.h \ | |
664 | $(srcdir)/mke2fs.h | |
d1154eb4 TT |
665 | chattr.o: $(srcdir)/chattr.c $(top_builddir)/lib/config.h \ |
666 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
797f5ef1 | 667 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \ |
e1f08507 | 668 | $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h |
d1154eb4 TT |
669 | lsattr.o: $(srcdir)/lsattr.c $(top_builddir)/lib/config.h \ |
670 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
797f5ef1 | 671 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \ |
e1f08507 | 672 | $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h |
d1154eb4 TT |
673 | dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_builddir)/lib/config.h \ |
674 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
5f0fabe6 | 675 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
e1f08507 TT |
676 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
677 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
678 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
a6d8302b TT |
679 | $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \ |
680 | $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \ | |
e1f08507 TT |
681 | $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/version.h \ |
682 | $(srcdir)/nls-enable.h | |
d1154eb4 TT |
683 | badblocks.o: $(srcdir)/badblocks.c $(top_builddir)/lib/config.h \ |
684 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \ | |
54c637d4 | 685 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
797f5ef1 | 686 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
e1f08507 TT |
687 | $(top_srcdir)/lib/ext2fs/ext3_extents.h \ |
688 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
689 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
a6d8302b | 690 | $(srcdir)/nls-enable.h |
d1154eb4 TT |
691 | fsck.o: $(srcdir)/fsck.c $(top_builddir)/lib/config.h \ |
692 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/version.h \ | |
693 | $(srcdir)/nls-enable.h $(srcdir)/fsck.h | |
694 | util.o: $(srcdir)/util.c $(top_builddir)/lib/config.h \ | |
695 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \ | |
5f0fabe6 TT |
696 | $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
697 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ | |
e1f08507 TT |
698 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
699 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
700 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
701 | $(srcdir)/nls-enable.h $(srcdir)/util.h | |
d1154eb4 TT |
702 | uuidgen.o: $(srcdir)/uuidgen.c $(top_builddir)/lib/config.h \ |
703 | $(top_builddir)/lib/dirpaths.h $(srcdir)/nls-enable.h | |
704 | blkid.o: $(srcdir)/blkid.c $(top_builddir)/lib/config.h \ | |
705 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ | |
e1f08507 | 706 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
a6d8302b TT |
707 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
708 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
e1f08507 | 709 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h |
d1154eb4 TT |
710 | logsave.o: $(srcdir)/logsave.c $(top_builddir)/lib/config.h \ |
711 | $(top_builddir)/lib/dirpaths.h | |
712 | filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/config.h \ | |
3bbb613c TT |
713 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
714 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
715 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ | |
716 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
717 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
e1f08507 | 718 | $(top_srcdir)/lib/ext2fs/fiemap.h |
d1154eb4 TT |
719 | base_device.o: $(srcdir)/base_device.c $(top_builddir)/lib/config.h \ |
720 | $(top_builddir)/lib/dirpaths.h $(srcdir)/fsck.h | |
721 | ismounted.o: $(srcdir)/ismounted.c $(top_builddir)/lib/config.h \ | |
722 | $(top_builddir)/lib/dirpaths.h $(srcdir)/fsck.h \ | |
e1f08507 | 723 | $(top_srcdir)/lib/et/com_err.h |
d1154eb4 TT |
724 | profile.o: $(srcdir)/../e2fsck/profile.c $(top_builddir)/lib/config.h \ |
725 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \ | |
8153d1cc | 726 | $(srcdir)/../e2fsck/profile.h prof_err.h |
d1154eb4 TT |
727 | e2undo.o: $(srcdir)/e2undo.c $(top_builddir)/lib/config.h \ |
728 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/tdb.h \ | |
e1f08507 TT |
729 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
730 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
731 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
732 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
733 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
734 | $(srcdir)/nls-enable.h | |
d1154eb4 TT |
735 | e2freefrag.o: $(srcdir)/e2freefrag.c $(top_builddir)/lib/config.h \ |
736 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
e1f08507 TT |
737 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
738 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ | |
739 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
740 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
741 | $(srcdir)/e2freefrag.h | |
cecc79ac | 742 | create_inode.o: $(srcdir)/create_inode.c $(srcdir)/create_inode.h \ |
217c0bdf | 743 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/e2p/e2p.h \ |
cecc79ac TT |
744 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
745 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
746 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
747 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
217c0bdf | 748 | $(srcdir)/nls-enable.h |