2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
14 @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_PROG= e4defrag
15 @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_MAN= e4defrag.8
17 @IMAGER_CMT@E2IMAGE_PROG= e2image
18 @IMAGER_CMT@E2IMAGE_MAN= e2image.8
20 @UUIDD_CMT@UUIDD_PROG= uuidd
21 @UUIDD_CMT@UUIDD_MAN= uuidd.8
23 @BLKID_CMT@BLKID_PROG= blkid
24 @BLKID_CMT@BLKID_MAN= blkid.8
26 @BLKID_CMT@FINDFS_LINK= findfs
27 @BLKID_CMT@FINDFS_MAN= findfs.8
29 SPROGS= mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
30 $(E2IMAGE_PROG) @FSCK_PROG@ e2undo
31 USPROGS= mklost+found filefrag e2freefrag $(UUIDD_PROG) $(E4DEFRAG_PROG)
32 SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
33 e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \
34 logsave.8 filefrag.8 e2freefrag.8 e2undo.8 \
35 $(UUIDD_MAN) $(E4DEFRAG_MAN) @FSCK_MAN@
36 FMANPAGES= mke2fs.conf.5 ext4.5
38 UPROGS= chattr lsattr @UUID_CMT@ uuidgen
39 UMANPAGES= chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1
41 LPROGS= @E2INITRD_PROG@
43 TUNE2FS_OBJS= tune2fs.o util.o
44 MKLPF_OBJS= mklost+found.o
45 MKE2FS_OBJS= mke2fs.o util.o profile.o prof_err.o default_profile.o
48 UUIDGEN_OBJS= uuidgen.o
50 DUMPE2FS_OBJS= dumpe2fs.o
51 BADBLOCKS_OBJS= badblocks.o
52 E2IMAGE_OBJS= e2image.o
53 FSCK_OBJS= fsck.o base_device.o ismounted.o
55 FILEFRAG_OBJS= filefrag.o
57 E4DEFRAG_OBJS= e4defrag.o
58 E2FREEFRAG_OBJS= e2freefrag.o
60 PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o
61 PROFILED_MKLPF_OBJS= profiled/mklost+found.o
62 PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \
63 profiled/prof_err.o profiled/default_profile.o
64 PROFILED_CHATTR_OBJS= profiled/chattr.o
65 PROFILED_LSATTR_OBJS= profiled/lsattr.o
66 PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o
67 PROFILED_UUIDD_OBJS= profiled/uuidd.o
68 PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o
69 PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o
70 PROFILED_E2IMAGE_OBJS= profiled/e2image.o
71 PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \
73 PROFILED_BLKID_OBJS= profiled/blkid.o
74 PROFILED_FILEFRAG_OBJS= profiled/filefrag.o
75 PROFILED_E2FREEFRAG_OBJS= profiled/e2freefrag.o
76 PROFILED_E2UNDO_OBJS= profiled/e2undo.o
77 PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o
79 SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
80 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
81 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
82 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
83 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
84 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \
85 $(srcdir)/e2undo.c $(srcdir)/e2freefrag.c
87 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
88 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR)
89 PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
90 PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
92 STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
93 STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
95 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
96 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
98 COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
102 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
103 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
104 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
106 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
107 $(FMANPAGES) $(LPROGS) $(E4DEFRAG_PROG)
109 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
110 e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
111 logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \
112 e2image.profiled e4defrag.profiled e2freefrag.profiled
115 @PROFILE_CMT@ $(E) " MKDIR $@"
116 @PROFILE_CMT@ $(Q) mkdir profiled
118 prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et
119 $(E) " COMPILE_ET prof_err.et"
120 $(Q) $(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et
122 profile.h: $(top_srcdir)/e2fsck/profile.h
126 mke2fs.conf: $(srcdir)/mke2fs.conf.in
127 if test -f $(srcdir)/mke2fs.conf.custom.in ; then \
128 cp $(srcdir)/mke2fs.conf.custom.in mke2fs.conf; \
130 cp $(srcdir)/mke2fs.conf.in mke2fs.conf; \
133 default_profile.c: mke2fs.conf $(srcdir)/profile-to-c.awk
134 $(E) " PROFILE_TO_C mke2fs.conf"
135 $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < mke2fs.conf \
139 $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@
140 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \
141 @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c
143 findsuper: findsuper.o
145 $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o $(LIBS)
149 $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
151 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
153 $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
154 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
156 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
157 $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
159 $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
160 $(LIBBLKID) $(LIBUUID) $(LIBQUOTA) $(LIBEXT2FS) $(LIBS_E2P) \
163 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
165 $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
166 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
167 $(STATIC_LIBQUOTA) $(STATIC_LIBE2P) $(LIBINTL)
169 tune2fs.profiled: $(TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
170 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID) \
171 $(DEPPROFILED_LIBQUOTA)
173 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
174 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \
175 $(PROFILED_LIBUUID) $(PROFILED_LIBQUOTA) $(PROFILED_LIBE2P) \
176 $(LIBINTL) $(PROFILED_LIBS)
178 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
180 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
183 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
185 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
186 $(STATIC_LIBBLKID) $(LIBINTL)
188 blkid.profiled: $(BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
189 $(PROFILED_LIBEXT2FS)
191 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
192 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS)
194 e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
196 $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL)
198 e2image.profiled: $(E2IMAGE_OBJS) $(PROFILED_DEPLIBS)
200 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
201 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL)
203 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
205 $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL)
207 e2undo.profiled: $(E2UNDO_OBJS) $(PROFILED_DEPLIBS)
209 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
210 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL)
212 e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS)
214 $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS) $(LIBS)
216 e4defrag.profiled: $(E4DEFRAG_OBJS) $(PROFILED_DEPLIBS)
218 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \
219 $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_LIBS)
221 base_device: base_device.c
223 $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
224 -DDEBUG -o base_device
227 ./base_device < $(srcdir)/base_device.tst > base_device.out
228 cmp $(srcdir)/base_device.tst base_device.out
230 mklost+found: $(MKLPF_OBJS)
232 $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL)
234 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
235 $(DEPLIBQUOTA) $(LIBEXT2FS)
237 $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
238 $(LIBUUID) $(LIBQUOTA) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL)
240 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) \
241 $(DEPSTATIC_LIBQUOTA) $(DEPSTATIC_LIBBLKID)
243 $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
244 $(STATIC_LIBQUOTA) $(STATIC_LIBS) $(STATIC_LIBE2P) \
245 $(STATIC_LIBBLKID) $(STATIC_LIBUUID) $(LIBINTL)
247 mke2fs.profiled: $(MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
248 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID) \
251 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
252 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
253 $(PROFILED_LIBUUID) $(PROFILED_LIBQUOTA) $(PROFILED_LIBE2P) $(LIBINTL) \
256 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
258 $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
260 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
262 $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
264 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
266 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL)
268 uuidgen.profiled: $(UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
270 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
271 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL)
273 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
275 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL)
277 uuidd.profiled: $(UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
279 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
280 $(PROFILED_LIBUUID) $(LIBINTL)
282 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID)
284 $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
285 $(LIBS_E2P) $(LIBUUID) $(LIBINTL)
287 dumpe2fs.profiled: $(DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
288 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID)
290 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
291 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
292 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
294 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
296 $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
298 fsck.profiled: $(FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
300 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
301 $(PROFILED_LIBBLKID) $(LIBINTL)
303 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
305 $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)
307 badblocks.profiled: $(BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
309 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
310 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL)
314 $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o
316 logsave.profiled: logsave.o
318 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o
320 e2freefrag: $(E2FREEFRAG_OBJS)
322 $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) $(LIBS)
324 e2freefrag.profiled: $(E2FREEFRAG_OBJS) $(PROFILED_DEPLIBS)
326 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2freefrag.profiled \
327 $(PROFILED_E2FREEFRAG_OBJS) $(PROFILED_LIBS)
329 filefrag: $(FILEFRAG_OBJS)
331 $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS)
333 filefrag.profiled: $(FILEFRAG_OBJS)
335 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
336 $(PROFILED_FILEFRAG_OBJS)
338 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
340 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
343 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
345 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
347 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
349 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
351 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
353 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
355 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
357 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
359 ext4.5: $(DEP_SUBSTITUTE) $(srcdir)/ext4.5.in
361 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/$@.in $@
363 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
365 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
367 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
369 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
371 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
373 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
375 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
377 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
379 e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in
381 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8
383 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
385 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
387 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
389 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8
391 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
393 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8
395 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
397 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
399 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
401 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
403 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
405 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
407 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
409 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1
411 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
413 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1
415 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
417 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1
419 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
421 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1
423 e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in
425 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8
427 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
429 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
432 $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
433 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \
434 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
435 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
436 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
437 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
439 install: all $(SMANPAGES) $(UMANPAGES) installdirs
440 $(Q) for i in $(SPROGS); do \
441 $(ES) " INSTALL $(root_sbindir)/$$i"; \
442 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
444 $(Q) for i in $(USPROGS); do \
445 $(ES) " INSTALL $(sbindir)/$$i"; \
446 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
448 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
449 $(ES) " LINK $(root_sbindir)/mkfs.$$i"; \
450 (cd $(DESTDIR)$(root_sbindir); \
451 $(LN) $(LINK_INSTALL_FLAGS) mke2fs mkfs.$$i); \
453 $(Q) (cd $(DESTDIR)$(root_sbindir); \
454 $(LN) $(LINK_INSTALL_FLAGS) tune2fs e2label)
455 $(Q) if test -n "$(FINDFS_LINK)"; then \
456 $(ES) " LINK $(root_sbindir)/findfs"; \
457 (cd $(DESTDIR)$(root_sbindir); \
458 $(LN) $(LINK_INSTALL_FLAGS) tune2fs $(FINDFS_LINK)); \
460 $(Q) for i in $(UPROGS); do \
461 $(ES) " INSTALL $(bindir)/$$i"; \
462 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
464 $(Q) for i in $(LPROGS); do \
465 $(ES) " INSTALL $(libdir)/$$i"; \
466 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
468 $(Q) for i in $(SMANPAGES); do \
469 for j in $(COMPRESS_EXT); do \
470 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
472 $(ES) " INSTALL_DATA $(man8dir)/$$i"; \
473 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
475 $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
476 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
477 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
478 $(ES) " LINK mkfs.$$i.8"; \
479 (cd $(DESTDIR)$(man8dir); \
480 $(LN) $(LINK_INSTALL_FLAGS) mke2fs.8 mkfs.$$i.8); \
482 $(Q) for i in $(UMANPAGES); do \
483 for j in $(COMPRESS_EXT); do \
484 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
486 $(ES) " INSTALL_DATA $(man1dir)/$$i"; \
487 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
489 $(Q) for i in $(FMANPAGES); do \
490 for j in $(COMPRESS_EXT); do \
491 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
493 $(ES) " INSTALL_DATA $(man5dir)/$$i"; \
494 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
496 $(Q) for i in ext2 ext3; do \
497 $(ES) " LINK $$i.5"; \
498 (cd $(DESTDIR)$(man5dir); \
499 $(LN) $(LINK_INSTALL_FLAGS) ext4.5 $$i.5); \
501 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
502 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
506 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
507 $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
508 $(INSTALL_DATA) mke2fs.conf \
509 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
510 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
511 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
513 $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
514 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
515 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
516 $(INSTALL_DATA) mke2fs.conf \
517 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
518 echo "Your mke2fs.conf is too old. Backing up old version in"; \
519 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
520 echo "if you have any local customizations that you wish to preserve."; \
525 $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
526 $(INSTALL_DATA) mke2fs.conf \
527 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
530 install-strip: install
531 $(Q) for i in $(SPROGS); do \
532 $(E) " STRIP $(root_sbindir)/$$i"; \
533 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
535 $(Q) for i in $(USPROGS); do \
536 $(E) " STRIP $(sbindir)/$$i"; \
537 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
541 for i in $(SPROGS); do \
542 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
544 for i in $(USPROGS); do \
545 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
547 for i in $(LPROGS); do \
548 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
550 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
551 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
552 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
553 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
554 for i in $(UPROGS); do \
555 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
557 for i in $(SMANPAGES); do \
558 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
560 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
561 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
562 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
563 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8 \
564 $(DESTDIR)$(man8dir)/fsck.ext2.8 \
565 $(DESTDIR)$(man8dir)/fsck.ext3.8 \
566 $(DESTDIR)$(man8dir)/fsck.ext4.8 \
567 $(DESTDIR)$(man8dir)/fsck.ext4dev.8
569 for i in $(UMANPAGES); do \
570 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
572 for i in $(FINDFS_LINK) e2label ; do \
573 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
575 for i in $(FMANPAGES); do \
576 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
578 $(Q) for i in ext2 ext3; do \
579 $(ES) " LINK $$i.5"; \
580 $(RM) -f $(DESTDIR)$(man5dir)/$$i.5; \
582 if cmp -s mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
583 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
587 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
588 $(FMANPAGES) profile.h \
589 base_device base_device.out mke2fs.static filefrag e2freefrag \
590 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
591 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
592 blkid.profiled tune2fs.profiled e2image.profiled \
593 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
594 logsave.profiled filefrag.profiled uuidgen.profiled \
595 uuidd.profiled e2image.profiled mke2fs.conf \
596 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
600 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
602 # +++ Dependency line eater +++
604 # Makefile dependencies follow. This must be the last section in
605 # the Makefile.in file
607 tune2fs.o: $(srcdir)/tune2fs.c $(top_builddir)/lib/config.h \
608 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
609 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
610 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
611 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
612 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
613 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
614 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
615 $(top_srcdir)/lib/ext2fs/kernel-list.h $(srcdir)/util.h \
616 $(top_srcdir)/lib/quota/mkquota.h $(top_srcdir)/lib/quota/quotaio.h \
617 $(top_srcdir)/lib/quota/dqblk_v2.h $(top_srcdir)/lib/quota/quotaio_tree.h \
618 $(top_srcdir)/lib/../e2fsck/dict.h $(top_srcdir)/version.h \
619 $(srcdir)/nls-enable.h
620 mklost+found.o: $(srcdir)/mklost+found.c $(top_builddir)/lib/config.h \
621 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
622 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
623 $(srcdir)/nls-enable.h
624 mke2fs.o: $(srcdir)/mke2fs.c $(top_builddir)/lib/config.h \
625 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
626 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fsP.h \
627 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
628 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
629 $(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 $(top_srcdir)/lib/ext2fs/ext2fs.h \
632 $(srcdir)/util.h profile.h prof_err.h $(top_srcdir)/version.h \
633 $(srcdir)/nls-enable.h $(top_srcdir)/lib/quota/mkquota.h \
634 $(top_srcdir)/lib/quota/quotaio.h $(top_srcdir)/lib/quota/dqblk_v2.h \
635 $(top_srcdir)/lib/quota/quotaio_tree.h $(top_srcdir)/lib/../e2fsck/dict.h
636 chattr.o: $(srcdir)/chattr.c $(top_builddir)/lib/config.h \
637 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
638 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
639 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
640 lsattr.o: $(srcdir)/lsattr.c $(top_builddir)/lib/config.h \
641 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
642 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
643 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
644 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_builddir)/lib/config.h \
645 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
646 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
647 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
648 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
649 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
650 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
651 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
652 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/version.h \
653 $(srcdir)/nls-enable.h
654 badblocks.o: $(srcdir)/badblocks.c $(top_builddir)/lib/config.h \
655 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
656 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
657 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
658 $(top_srcdir)/lib/ext2fs/ext3_extents.h \
659 $(top_builddir)/lib/ext2fs/ext2_err.h \
660 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
661 $(srcdir)/nls-enable.h
662 fsck.o: $(srcdir)/fsck.c $(top_builddir)/lib/config.h \
663 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/version.h \
664 $(srcdir)/nls-enable.h $(srcdir)/fsck.h
665 util.o: $(srcdir)/util.c $(top_builddir)/lib/config.h \
666 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
667 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
668 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
669 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
670 $(top_builddir)/lib/ext2fs/ext2_err.h \
671 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
672 $(srcdir)/nls-enable.h $(srcdir)/util.h
673 uuidgen.o: $(srcdir)/uuidgen.c $(top_builddir)/lib/config.h \
674 $(top_builddir)/lib/dirpaths.h $(srcdir)/nls-enable.h
675 blkid.o: $(srcdir)/blkid.c $(top_builddir)/lib/config.h \
676 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
677 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
678 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
679 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
680 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
681 logsave.o: $(srcdir)/logsave.c $(top_builddir)/lib/config.h \
682 $(top_builddir)/lib/dirpaths.h
683 filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/config.h \
684 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
685 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
686 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
687 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
688 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
689 $(top_srcdir)/lib/ext2fs/fiemap.h
690 base_device.o: $(srcdir)/base_device.c $(top_builddir)/lib/config.h \
691 $(top_builddir)/lib/dirpaths.h $(srcdir)/fsck.h
692 ismounted.o: $(srcdir)/ismounted.c $(top_builddir)/lib/config.h \
693 $(top_builddir)/lib/dirpaths.h $(srcdir)/fsck.h \
694 $(top_srcdir)/lib/et/com_err.h
695 profile.o: $(srcdir)/../e2fsck/profile.c $(top_builddir)/lib/config.h \
696 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
697 $(srcdir)/../e2fsck/profile.h prof_err.h
698 e2undo.o: $(srcdir)/e2undo.c $(top_builddir)/lib/config.h \
699 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/tdb.h \
700 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
701 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
702 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
703 $(top_builddir)/lib/ext2fs/ext2_err.h \
704 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
705 $(srcdir)/nls-enable.h
706 e2freefrag.o: $(srcdir)/e2freefrag.c $(top_builddir)/lib/config.h \
707 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
708 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
709 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
710 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
711 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
712 $(srcdir)/e2freefrag.h