2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
14 @IMAGER_CMT@E2IMAGE_PROG= e2image
15 @IMAGER_CMT@E2IMAGE_MAN= e2image.8
17 @UUIDD_CMT@UUIDD_PROG= uuidd
18 @UUIDD_CMT@UUIDD_MAN= uuidd.8
20 @BLKID_CMT@BLKID_PROG= blkid
21 @BLKID_CMT@BLKID_MAN= blkid.8
23 @BLKID_CMT@FINDFS_LINK= findfs
24 @BLKID_CMT@FINDFS_MAN= findfs.8
26 SPROGS= mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
27 $(E2IMAGE_PROG) @FSCK_PROG@ e2undo
28 USPROGS= mklost+found filefrag $(UUIDD_PROG)
29 SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
30 e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \
31 logsave.8 filefrag.8 e2undo.8 $(UUIDD_MAN) @FSCK_MAN@
32 FMANPAGES= mke2fs.conf.5
34 UPROGS= chattr lsattr @UUID_CMT@ uuidgen
35 UMANPAGES= chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1
37 LPROGS= @E2INITRD_PROG@
39 TUNE2FS_OBJS= tune2fs.o util.o
40 MKLPF_OBJS= mklost+found.o
41 MKE2FS_OBJS= mke2fs.o util.o profile.o prof_err.o default_profile.o
44 UUIDGEN_OBJS= uuidgen.o
46 DUMPE2FS_OBJS= dumpe2fs.o
47 BADBLOCKS_OBJS= badblocks.o
48 E2IMAGE_OBJS= e2image.o
49 FSCK_OBJS= fsck.o base_device.o ismounted.o
51 FILEFRAG_OBJS= filefrag.o
53 E4DEFRAG_OBJS= e4defrag.o
55 PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o
56 PROFILED_MKLPF_OBJS= profiled/mklost+found.o
57 PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \
58 profiled/prof_err.o profiled/default_profile.o
59 PROFILED_CHATTR_OBJS= profiled/chattr.o
60 PROFILED_LSATTR_OBJS= profiled/lsattr.o
61 PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o
62 PROFILED_UUIDD_OBJS= profiled/uuidd.o
63 PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o
64 PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o
65 PROFILED_E2IMAGE_OBJS= profiled/e2image.o
66 PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \
68 PROFILED_BLKID_OBJS= profiled/blkid.o
69 PROFILED_FILEFRAG_OBJS= profiled/filefrag.o
70 PROFILED_E2UNDO_OBJS= profiled/e2undo.o
71 PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o
73 XTRA_CFLAGS= -I$(srcdir)/../e2fsck -I.
75 SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
76 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
77 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
78 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
79 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
80 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \
83 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
84 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR)
85 PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
86 PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
88 STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
89 STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
91 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
92 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
94 COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
98 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
99 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
101 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
102 $(FMANPAGES) $(LPROGS) e4defrag
104 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
105 e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
106 logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \
107 e2image.profiled e4defrag.profiled
110 @PROFILE_CMT@ $(E) " MKDIR $@"
111 @PROFILE_CMT@ $(Q) mkdir profiled
113 prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et
114 $(E) " COMPILE_ET prof_err.et"
115 $(Q) $(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et
117 default_profile.c: $(srcdir)/mke2fs.conf $(srcdir)/profile-to-c.awk
118 $(E) " PROFILE_TO_C mke2fs.conf"
119 $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < $(srcdir)/mke2fs.conf \
123 $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@
124 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \
125 @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c
127 findsuper: findsuper.o
129 $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o
133 $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
135 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
137 $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
138 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
140 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
141 $(DEPLIBUUID) $(LIBEXT2FS)
143 $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
144 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBS_E2P) $(LIBINTL)
146 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
148 $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
149 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
150 $(STATIC_LIBE2P) $(LIBINTL)
152 tune2fs.profiled: $(PROFILED_TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
153 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID)
155 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
156 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \
157 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
160 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
162 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
165 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
167 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
168 $(STATIC_LIBBLKID) $(LIBINTL)
170 blkid.profiled: $(PROFILED_BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
171 $(PROFILED_LIBEXT2FS)
173 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
174 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS)
176 e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
178 $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL)
180 e2image.profiled: $(PROFILED_E2IMAGE_OBJS) $(PROFILED_DEPLIBS)
182 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
183 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL)
185 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
187 $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL)
189 e2undo.profiled: $(PROFILED_E2UNDO_OBJS) $(PROFILED_DEPLIBS)
191 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
192 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL)
194 e4defrag: $(E4DEFRAG_OBJS)
196 $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS)
198 e4defrag.profiled: $(PROFILED_E4DEFRAG_OBJS)
200 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \
201 $(PROFILED_E4DEFRAG_OBJS)
203 base_device: base_device.c
205 $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
206 -DDEBUG -o base_device
209 ./base_device < $(srcdir)/base_device.tst > base_device.out
210 cmp $(srcdir)/base_device.tst base_device.out
212 mklost+found: $(MKLPF_OBJS)
214 $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL)
216 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
219 $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
220 $(LIBUUID) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL)
222 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) $(DEPSTATIC_LIBBLKID)
224 $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
225 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBBLKID) \
226 $(STATIC_LIBUUID) $(LIBINTL)
228 mke2fs.profiled: $(PROFILED_MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
229 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID)
231 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
232 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
233 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
236 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
238 $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
240 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
242 $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
244 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
246 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL)
248 uuidgen.profiled: $(PROFILED_UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
250 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
251 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL)
253 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
255 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL)
257 uuidd.profiled: $(PROFILED_UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
259 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
260 $(PROFILED_LIBUUID) $(LIBINTL)
262 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID)
264 $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
265 $(LIBS_E2P) $(LIBUUID) $(LIBINTL)
267 dumpe2fs.profiled: $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
268 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID)
270 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
271 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
272 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
274 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
276 $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
278 fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
280 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
281 $(PROFILED_LIBBLKID) $(LIBINTL)
283 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
285 $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)
287 badblocks.profiled: $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
289 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
290 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL)
294 $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o
296 logsave.profiled: profiled/logsave.o
298 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o
300 filefrag: $(FILEFRAG_OBJS)
302 $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS)
304 filefrag.profiled: $(PROFILED_FILEFRAG_OBJS)
306 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
307 $(PROFILED_FILEFRAG_OBJS)
309 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
311 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
314 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
316 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
318 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
320 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
322 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
324 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
326 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
328 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
330 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
332 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
334 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
336 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
338 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
340 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
342 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
344 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
346 e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in
348 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8
350 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
352 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
354 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
356 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8
358 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
360 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8
362 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
364 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
366 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
368 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
370 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
372 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
374 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
376 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1
378 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
380 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1
382 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
384 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1
386 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
388 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1
390 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
392 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
395 $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
396 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \
397 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
398 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
399 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
400 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
402 install: all $(SMANPAGES) $(UMANPAGES) installdirs
403 $(Q) for i in $(SPROGS); do \
404 echo " INSTALL $(root_sbindir)/$$i"; \
405 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
407 $(Q) for i in $(USPROGS); do \
408 echo " INSTALL $(sbindir)/$$i"; \
409 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
411 $(E) " LINK $(root_sbindir)/mkfs.ext2"
412 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
413 $(DESTDIR)$(root_sbindir)/mkfs.ext2
414 $(E) " LINK $(root_sbindir)/mkfs.ext3"
415 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
416 $(DESTDIR)$(root_sbindir)/mkfs.ext3
417 $(E) " LINK $(root_sbindir)/mkfs.ext4"
418 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
419 $(DESTDIR)$(root_sbindir)/mkfs.ext4
420 $(E) " LINK $(root_sbindir)/mkfs.ext4dev"
421 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
422 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
423 $(E) " LINK $(root_sbindir)/e2label"
424 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
425 $(DESTDIR)$(root_sbindir)/e2label
426 $(Q) if test -n "$(FINDFS_LINK)"; then \
427 echo " LINK $(root_sbindir)/findfs"; \
428 $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
429 $(DESTDIR)$(root_sbindir)/$(FINDFS_LINK); \
431 $(Q) for i in $(UPROGS); do \
432 echo " INSTALL $(bindir)/$$i"; \
433 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
435 $(Q) for i in $(LPROGS); do \
436 echo " INSTALL $(libdir)/$$i"; \
437 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
439 $(Q) for i in $(SMANPAGES); do \
440 for j in $(COMPRESS_EXT); do \
441 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
443 echo " INSTALL_DATA $(man8dir)/$$i"; \
444 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
446 $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
447 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
448 $(E) " LINK mkfs.ext2.8"
449 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
450 $(DESTDIR)$(man8dir)/mkfs.ext2.8
451 $(E) " LINK mkfs.ext3.8"
452 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
453 $(DESTDIR)$(man8dir)/mkfs.ext3.8
454 $(E) " LINK mkfs.ext4.8"
455 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
456 $(DESTDIR)$(man8dir)/mkfs.ext4.8
457 $(E) " LINK mkfs.ext4dev.8"
458 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
459 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
460 $(Q) for i in $(UMANPAGES); do \
461 for j in $(COMPRESS_EXT); do \
462 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
464 echo " INSTALL_DATA $(man1dir)/$$i"; \
465 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
467 $(Q) for i in $(FMANPAGES); do \
468 for j in $(COMPRESS_EXT); do \
469 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
471 echo " INSTALL_DATA $(man5dir)/$$i"; \
472 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
474 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
475 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
476 $(srcdir)/mke2fs.conf; then \
479 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
480 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
481 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
482 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
483 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
484 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
486 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
487 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
488 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
489 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
490 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
491 echo "Your mke2fs.conf is too old. Backing up old version in"; \
492 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
493 echo "if you have any local customizations that you wish to preserve."; \
498 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
499 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
500 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
503 install-strip: install
504 $(Q) for i in $(SPROGS); do \
505 echo " STRIP $(root_sbindir)/$$i"; \
506 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
508 $(Q) for i in $(USPROGS); do \
509 echo " STRIP $(sbindir)/$$i"; \
510 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
514 for i in $(SPROGS); do \
515 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
517 for i in $(USPROGS); do \
518 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
520 for i in $(LPROGS); do \
521 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
523 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
524 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
525 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
526 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
527 for i in $(UPROGS); do \
528 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
530 for i in $(SMANPAGES); do \
531 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
533 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
534 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
535 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
536 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
537 for i in $(UMANPAGES); do \
538 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
540 for i in $(FINDFS_LINK) e2label ; do \
541 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
543 for i in $(FMANPAGES); do \
544 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
546 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
547 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
551 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
553 base_device base_device.out mke2fs.static filefrag \
554 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
555 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
556 blkid.profiled tune2fs.profiled e2image.profiled \
557 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
558 logsave.profiled filefrag.profiled uuidgen.profiled \
559 uuidd.profiled e2image.profiled \
560 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
564 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
566 # +++ Dependency line eater +++
568 # Makefile dependencies follow. This must be the last section in
569 # the Makefile.in file
571 tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
572 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
573 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
574 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
575 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
576 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
577 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
578 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \
579 $(srcdir)/util.h $(top_srcdir)/lib/blkid/blkid.h \
580 $(top_builddir)/lib/blkid/blkid_types.h $(top_srcdir)/version.h \
581 $(srcdir)/nls-enable.h
582 mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
583 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
584 $(srcdir)/nls-enable.h
585 mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
586 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
587 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
588 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
589 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
590 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
591 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/util.h \
592 $(srcdir)/../e2fsck/profile.h prof_err.h $(top_srcdir)/version.h \
593 $(srcdir)/nls-enable.h
594 chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
595 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
596 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
597 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
598 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
599 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
600 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
601 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
602 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
603 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
604 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
605 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
606 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
607 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
608 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
609 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h \
610 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
611 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
612 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
613 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
614 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
615 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
616 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
617 $(srcdir)/nls-enable.h
618 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
619 $(srcdir)/fsck.h $(top_srcdir)/lib/blkid/blkid.h \
620 $(top_builddir)/lib/blkid/blkid_types.h
621 util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
622 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
623 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
624 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
625 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
626 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h \
627 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
629 uuidgen.o: $(srcdir)/uuidgen.c $(top_srcdir)/lib/uuid/uuid.h \
630 $(srcdir)/nls-enable.h
631 blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/blkid/blkid.h \
632 $(top_builddir)/lib/blkid/blkid_types.h
633 logsave.o: $(srcdir)/logsave.c
634 filefrag.o: $(srcdir)/filefrag.c
635 base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h
636 ismounted.o: $(srcdir)/ismounted.c $(top_srcdir)/lib/et/com_err.h
637 profile.o: $(srcdir)/../e2fsck/profile.c $(top_srcdir)/lib/et/com_err.h \
638 $(srcdir)/../e2fsck/profile.h prof_err.h
639 e2undo.o: $(srcdir)/e2undo.c $(top_srcdir)/lib/ext2fs/tdb.h