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
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_E2UNDO_OBJS= profiled/e2undo.o
76 PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o
78 XTRA_CFLAGS= -I$(srcdir)/../e2fsck -I.
80 SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
81 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
82 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
83 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
84 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
85 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \
86 $(srcdir)/e2undo.c $(srcdir)/e2freefrag.c
88 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
89 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR)
90 PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
91 PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
93 STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
94 STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
96 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
97 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
99 COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
103 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
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
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 default_profile.c: $(srcdir)/mke2fs.conf $(srcdir)/profile-to-c.awk
123 $(E) " PROFILE_TO_C mke2fs.conf"
124 $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < $(srcdir)/mke2fs.conf \
128 $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@
129 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \
130 @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c
132 findsuper: findsuper.o
134 $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o $(LIBS)
138 $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
140 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
142 $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
143 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
145 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
146 $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
148 $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
149 $(LIBBLKID) $(LIBUUID) $(LIBQUOTA) $(LIBEXT2FS) $(LIBS_E2P) \
152 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
154 $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
155 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
156 $(STATIC_LIBQUOTA) $(STATIC_LIBE2P) $(LIBINTL)
158 tune2fs.profiled: $(PROFILED_TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
159 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID) \
160 $(DEPPROFILED_LIBQUOTA)
162 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
163 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \
164 $(PROFILED_LIBUUID) $(PROFILED_LIBQUOTA) $(PROFILED_LIBE2P) \
165 $(LIBINTL) $(PROFILED_LIBS)
167 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
169 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
172 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
174 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
175 $(STATIC_LIBBLKID) $(LIBINTL)
177 blkid.profiled: $(PROFILED_BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
178 $(PROFILED_LIBEXT2FS)
180 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
181 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS)
183 e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
185 $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL)
187 e2image.profiled: $(PROFILED_E2IMAGE_OBJS) $(PROFILED_DEPLIBS)
189 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
190 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL)
192 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
194 $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL)
196 e2undo.profiled: $(PROFILED_E2UNDO_OBJS) $(PROFILED_DEPLIBS)
198 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
199 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL)
201 e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS)
203 $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS) $(LIBS)
205 e4defrag.profiled: $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_DEPLIBS)
207 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \
208 $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_LIBS)
210 base_device: base_device.c
212 $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
213 -DDEBUG -o base_device
216 ./base_device < $(srcdir)/base_device.tst > base_device.out
217 cmp $(srcdir)/base_device.tst base_device.out
219 mklost+found: $(MKLPF_OBJS)
221 $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL)
223 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
224 $(DEPLIBQUOTA) $(LIBEXT2FS)
226 $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
227 $(LIBUUID) $(LIBQUOTA) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL)
229 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) \
230 $(DEPSTATIC_LIBQUOTA) $(DEPSTATIC_LIBBLKID)
232 $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
233 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBBLKID) \
234 $(STATIC_LIBUUID) $(STATIC_LIBQUOTA) $(LIBINTL)
236 mke2fs.profiled: $(PROFILED_MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
237 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID) \
240 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
241 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
242 $(PROFILED_LIBUUID) $(PROFILED_LIBQUOTA) $(PROFILED_LIBE2P) $(LIBINTL) \
245 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
247 $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
249 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
251 $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
253 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
255 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL)
257 uuidgen.profiled: $(PROFILED_UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
259 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
260 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL)
262 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
264 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL)
266 uuidd.profiled: $(PROFILED_UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
268 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
269 $(PROFILED_LIBUUID) $(LIBINTL)
271 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID)
273 $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
274 $(LIBS_E2P) $(LIBUUID) $(LIBINTL)
276 dumpe2fs.profiled: $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
277 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID)
279 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
280 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
281 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
283 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
285 $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
287 fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
289 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
290 $(PROFILED_LIBBLKID) $(LIBINTL)
292 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
294 $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)
296 badblocks.profiled: $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
298 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
299 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL)
303 $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o
305 logsave.profiled: profiled/logsave.o
307 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o
309 e2freefrag: $(E2FREEFRAG_OBJS)
311 $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) $(LIBS)
313 filefrag: $(FILEFRAG_OBJS)
315 $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS)
317 filefrag.profiled: $(PROFILED_FILEFRAG_OBJS)
319 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
320 $(PROFILED_FILEFRAG_OBJS)
322 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
324 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
327 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
329 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
331 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
333 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
335 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
337 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
339 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
341 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
343 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
345 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
347 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
349 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
351 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
353 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
355 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
357 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
359 e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in
361 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8
363 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
365 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
367 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
369 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8
371 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
373 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8
375 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
377 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
379 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
381 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
383 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
385 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
387 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
389 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1
391 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
393 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1
395 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
397 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1
399 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
401 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1
403 e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in
405 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8
407 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
409 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
412 $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
413 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \
414 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
415 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
416 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
417 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
419 install: all $(SMANPAGES) $(UMANPAGES) installdirs
420 $(Q) for i in $(SPROGS); do \
421 echo " INSTALL $(root_sbindir)/$$i"; \
422 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
424 $(Q) for i in $(USPROGS); do \
425 echo " INSTALL $(sbindir)/$$i"; \
426 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
428 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
429 echo " LINK $(root_sbindir)/mkfs.$$i"; \
430 (cd $(DESTDIR)$(root_sbindir); \
431 $(LN) $(LINK_INSTALL_FLAGS) mke2fs mkfs.$$i); \
433 $(Q) (cd $(DESTDIR)$(root_sbindir); \
434 $(LN) $(LINK_INSTALL_FLAGS) tune2fs e2label)
435 $(Q) if test -n "$(FINDFS_LINK)"; then \
436 echo " LINK $(root_sbindir)/findfs"; \
437 (cd $(DESTDIR)$(root_sbindir); \
438 $(LN) $(LINK_INSTALL_FLAGS) tune2fs $(FINDFS_LINK)); \
440 $(Q) for i in $(UPROGS); do \
441 echo " INSTALL $(bindir)/$$i"; \
442 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
444 $(Q) for i in $(LPROGS); do \
445 echo " INSTALL $(libdir)/$$i"; \
446 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
448 $(Q) for i in $(SMANPAGES); do \
449 for j in $(COMPRESS_EXT); do \
450 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
452 echo " INSTALL_DATA $(man8dir)/$$i"; \
453 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
455 $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
456 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
457 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
458 echo " LINK mkfs.$$i.8"; \
459 (cd $(DESTDIR)$(man8dir); \
460 $(LN) $(LINK_INSTALL_FLAGS) mke2fs.8 mkfs.$$i.8); \
462 $(Q) for i in $(UMANPAGES); do \
463 for j in $(COMPRESS_EXT); do \
464 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
466 echo " INSTALL_DATA $(man1dir)/$$i"; \
467 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
469 $(Q) for i in $(FMANPAGES); do \
470 for j in $(COMPRESS_EXT); do \
471 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
473 echo " INSTALL_DATA $(man5dir)/$$i"; \
474 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
476 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
477 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
478 $(srcdir)/mke2fs.conf; then \
481 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
482 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
483 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
484 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
485 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
486 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
488 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
489 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
490 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
491 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
492 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
493 echo "Your mke2fs.conf is too old. Backing up old version in"; \
494 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
495 echo "if you have any local customizations that you wish to preserve."; \
500 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
501 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
502 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
505 install-strip: install
506 $(Q) for i in $(SPROGS); do \
507 echo " STRIP $(root_sbindir)/$$i"; \
508 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
510 $(Q) for i in $(USPROGS); do \
511 echo " STRIP $(sbindir)/$$i"; \
512 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
516 for i in $(SPROGS); do \
517 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
519 for i in $(USPROGS); do \
520 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
522 for i in $(LPROGS); do \
523 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
525 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
526 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
527 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
528 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
529 for i in $(UPROGS); do \
530 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
532 for i in $(SMANPAGES); do \
533 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
535 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
536 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
537 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
538 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
539 for i in $(UMANPAGES); do \
540 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
542 for i in $(FINDFS_LINK) e2label ; do \
543 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
545 for i in $(FMANPAGES); do \
546 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
548 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
549 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
553 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
555 base_device base_device.out mke2fs.static filefrag e2freefrag \
556 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
557 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
558 blkid.profiled tune2fs.profiled e2image.profiled \
559 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
560 logsave.profiled filefrag.profiled uuidgen.profiled \
561 uuidd.profiled e2image.profiled \
562 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
566 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
568 # +++ Dependency line eater +++
570 # Makefile dependencies follow. This must be the last section in
571 # the Makefile.in file
573 tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
574 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
575 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
576 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
577 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
578 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
579 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
580 $(top_srcdir)/lib/ext2fs/kernel-list.h $(srcdir)/util.h \
581 $(top_srcdir)/version.h $(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/ext2fs/ext2fsP.h \
587 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
588 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
589 $(top_builddir)/lib/ext2fs/ext2_err.h \
590 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
591 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
592 $(srcdir)/util.h $(srcdir)/../e2fsck/profile.h prof_err.h \
593 $(top_srcdir)/version.h $(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)/version.h $(srcdir)/nls-enable.h
597 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
598 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
599 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
600 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
601 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
602 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
603 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
604 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
605 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
606 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
607 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/version.h \
608 $(srcdir)/nls-enable.h
609 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
610 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
611 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
612 $(top_srcdir)/lib/ext2fs/ext3_extents.h \
613 $(top_builddir)/lib/ext2fs/ext2_err.h \
614 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
615 $(srcdir)/nls-enable.h
616 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
618 util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
619 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
620 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
621 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
622 $(top_builddir)/lib/ext2fs/ext2_err.h \
623 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
624 $(srcdir)/nls-enable.h $(srcdir)/util.h
625 uuidgen.o: $(srcdir)/uuidgen.c $(srcdir)/nls-enable.h
626 blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/ext2fs/ext2fs.h \
627 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
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 logsave.o: $(srcdir)/logsave.c
632 filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/ext2fs/ext2_types.h \
633 $(top_srcdir)/lib/ext2fs/fiemap.h
634 base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h
635 ismounted.o: $(srcdir)/ismounted.c $(srcdir)/fsck.h \
636 $(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 \
640 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
641 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
642 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
643 $(top_builddir)/lib/ext2fs/ext2_err.h \
644 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
645 $(srcdir)/nls-enable.h
646 e2freefrag.o: $(srcdir)/e2freefrag.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
647 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
648 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
649 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
650 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
651 $(srcdir)/e2freefrag.h