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 e2freefrag $(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 e2freefrag.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
54 E2FREEFRAG_OBJS= e2freefrag.o
56 PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o
57 PROFILED_MKLPF_OBJS= profiled/mklost+found.o
58 PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \
59 profiled/prof_err.o profiled/default_profile.o
60 PROFILED_CHATTR_OBJS= profiled/chattr.o
61 PROFILED_LSATTR_OBJS= profiled/lsattr.o
62 PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o
63 PROFILED_UUIDD_OBJS= profiled/uuidd.o
64 PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o
65 PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o
66 PROFILED_E2IMAGE_OBJS= profiled/e2image.o
67 PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \
69 PROFILED_BLKID_OBJS= profiled/blkid.o
70 PROFILED_FILEFRAG_OBJS= profiled/filefrag.o
71 PROFILED_E2UNDO_OBJS= profiled/e2undo.o
72 PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o
74 XTRA_CFLAGS= -I$(srcdir)/../e2fsck -I.
76 SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
77 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
78 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
79 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
80 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
81 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \
82 $(srcdir)/e2undo.c $(srcdir)/e2freefrag.c
84 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
85 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR)
86 PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
87 PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
89 STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
90 STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
92 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
93 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
95 COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
99 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
100 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
102 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
103 $(FMANPAGES) $(LPROGS) e4defrag
105 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
106 e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
107 logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \
108 e2image.profiled e4defrag.profiled
111 @PROFILE_CMT@ $(E) " MKDIR $@"
112 @PROFILE_CMT@ $(Q) mkdir profiled
114 prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et
115 $(E) " COMPILE_ET prof_err.et"
116 $(Q) $(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et
118 default_profile.c: $(srcdir)/mke2fs.conf $(srcdir)/profile-to-c.awk
119 $(E) " PROFILE_TO_C mke2fs.conf"
120 $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < $(srcdir)/mke2fs.conf \
124 $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@
125 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \
126 @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c
128 findsuper: findsuper.o
130 $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o
134 $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
136 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
138 $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
139 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
141 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
142 $(DEPLIBUUID) $(LIBEXT2FS)
144 $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
145 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBS_E2P) $(LIBINTL)
147 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
149 $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
150 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
151 $(STATIC_LIBE2P) $(LIBINTL)
153 tune2fs.profiled: $(PROFILED_TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
154 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID)
156 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
157 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \
158 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
161 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
163 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
166 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
168 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
169 $(STATIC_LIBBLKID) $(LIBINTL)
171 blkid.profiled: $(PROFILED_BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
172 $(PROFILED_LIBEXT2FS)
174 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
175 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS)
177 e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
179 $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL)
181 e2image.profiled: $(PROFILED_E2IMAGE_OBJS) $(PROFILED_DEPLIBS)
183 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
184 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL)
186 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
188 $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL)
190 e2undo.profiled: $(PROFILED_E2UNDO_OBJS) $(PROFILED_DEPLIBS)
192 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
193 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL)
195 e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS)
197 $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS) $(LIBS)
199 e4defrag.profiled: $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_DEPLIBS)
201 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \
202 $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_LIBS)
204 base_device: base_device.c
206 $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
207 -DDEBUG -o base_device
210 ./base_device < $(srcdir)/base_device.tst > base_device.out
211 cmp $(srcdir)/base_device.tst base_device.out
213 mklost+found: $(MKLPF_OBJS)
215 $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL)
217 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
220 $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
221 $(LIBUUID) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL)
223 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) $(DEPSTATIC_LIBBLKID)
225 $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
226 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBBLKID) \
227 $(STATIC_LIBUUID) $(LIBINTL)
229 mke2fs.profiled: $(PROFILED_MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
230 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID)
232 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
233 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
234 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
237 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
239 $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
241 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
243 $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
245 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
247 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL)
249 uuidgen.profiled: $(PROFILED_UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
251 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
252 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL)
254 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
256 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL)
258 uuidd.profiled: $(PROFILED_UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
260 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
261 $(PROFILED_LIBUUID) $(LIBINTL)
263 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID)
265 $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
266 $(LIBS_E2P) $(LIBUUID) $(LIBINTL)
268 dumpe2fs.profiled: $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
269 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID)
271 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
272 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
273 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
275 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
277 $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
279 fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
281 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
282 $(PROFILED_LIBBLKID) $(LIBINTL)
284 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
286 $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)
288 badblocks.profiled: $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
290 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
291 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL)
295 $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o
297 logsave.profiled: profiled/logsave.o
299 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o
301 e2freefrag: $(E2FREEFRAG_OBJS)
303 $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) $(LIBS)
305 filefrag: $(FILEFRAG_OBJS)
307 $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS)
309 filefrag.profiled: $(PROFILED_FILEFRAG_OBJS)
311 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
312 $(PROFILED_FILEFRAG_OBJS)
314 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
316 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
319 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
321 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
323 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
325 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
327 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
329 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
331 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
333 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
335 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
337 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
339 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
341 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
343 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
345 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
347 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
349 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
351 e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in
353 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8
355 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
357 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
359 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
361 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8
363 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
365 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8
367 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
369 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
371 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
373 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
375 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
377 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
379 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
381 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1
383 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
385 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1
387 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
389 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1
391 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
393 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1
395 e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in
397 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8
399 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
401 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
404 $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
405 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \
406 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
407 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
408 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
409 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
411 install: all $(SMANPAGES) $(UMANPAGES) installdirs
412 $(Q) for i in $(SPROGS); do \
413 echo " INSTALL $(root_sbindir)/$$i"; \
414 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
416 $(Q) for i in $(USPROGS); do \
417 echo " INSTALL $(sbindir)/$$i"; \
418 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
420 $(E) " LINK $(root_sbindir)/mkfs.ext2"
421 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
422 $(DESTDIR)$(root_sbindir)/mkfs.ext2
423 $(E) " LINK $(root_sbindir)/mkfs.ext3"
424 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
425 $(DESTDIR)$(root_sbindir)/mkfs.ext3
426 $(E) " LINK $(root_sbindir)/mkfs.ext4"
427 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
428 $(DESTDIR)$(root_sbindir)/mkfs.ext4
429 $(E) " LINK $(root_sbindir)/mkfs.ext4dev"
430 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
431 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
432 $(E) " LINK $(root_sbindir)/e2label"
433 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
434 $(DESTDIR)$(root_sbindir)/e2label
435 $(Q) if test -n "$(FINDFS_LINK)"; then \
436 echo " LINK $(root_sbindir)/findfs"; \
437 $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
438 $(DESTDIR)$(root_sbindir)/$(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 $(E) " LINK mkfs.ext2.8"
458 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
459 $(DESTDIR)$(man8dir)/mkfs.ext2.8
460 $(E) " LINK mkfs.ext3.8"
461 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
462 $(DESTDIR)$(man8dir)/mkfs.ext3.8
463 $(E) " LINK mkfs.ext4.8"
464 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
465 $(DESTDIR)$(man8dir)/mkfs.ext4.8
466 $(E) " LINK mkfs.ext4dev.8"
467 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
468 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
469 $(Q) for i in $(UMANPAGES); do \
470 for j in $(COMPRESS_EXT); do \
471 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
473 echo " INSTALL_DATA $(man1dir)/$$i"; \
474 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
476 $(Q) for i in $(FMANPAGES); do \
477 for j in $(COMPRESS_EXT); do \
478 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
480 echo " INSTALL_DATA $(man5dir)/$$i"; \
481 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
483 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
484 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
485 $(srcdir)/mke2fs.conf; then \
488 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
489 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
490 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
491 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
492 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
493 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
495 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
496 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
497 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
498 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
499 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
500 echo "Your mke2fs.conf is too old. Backing up old version in"; \
501 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
502 echo "if you have any local customizations that you wish to preserve."; \
507 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
508 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
509 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
512 install-strip: install
513 $(Q) for i in $(SPROGS); do \
514 echo " STRIP $(root_sbindir)/$$i"; \
515 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
517 $(Q) for i in $(USPROGS); do \
518 echo " STRIP $(sbindir)/$$i"; \
519 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
523 for i in $(SPROGS); do \
524 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
526 for i in $(USPROGS); do \
527 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
529 for i in $(LPROGS); do \
530 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
532 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
533 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
534 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
535 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
536 for i in $(UPROGS); do \
537 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
539 for i in $(SMANPAGES); do \
540 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
542 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
543 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
544 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
545 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
546 for i in $(UMANPAGES); do \
547 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
549 for i in $(FINDFS_LINK) e2label ; do \
550 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
552 for i in $(FMANPAGES); do \
553 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
555 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
556 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
560 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
562 base_device base_device.out mke2fs.static filefrag e2freefrag \
563 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
564 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
565 blkid.profiled tune2fs.profiled e2image.profiled \
566 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
567 logsave.profiled filefrag.profiled uuidgen.profiled \
568 uuidd.profiled e2image.profiled \
569 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
573 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
575 # +++ Dependency line eater +++
577 # Makefile dependencies follow. This must be the last section in
578 # the Makefile.in file
580 tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
581 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
582 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
583 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
584 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
585 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
586 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
587 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \
588 $(srcdir)/util.h $(top_srcdir)/lib/blkid/blkid.h \
589 $(top_builddir)/lib/blkid/blkid_types.h $(top_srcdir)/version.h \
590 $(srcdir)/nls-enable.h
591 mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
592 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
593 $(srcdir)/nls-enable.h
594 mke2fs.o: $(srcdir)/mke2fs.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/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
597 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
598 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
599 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
600 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/util.h \
601 $(srcdir)/../e2fsck/profile.h prof_err.h $(top_srcdir)/version.h \
602 $(srcdir)/nls-enable.h
603 chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
604 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
605 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
606 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
607 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
608 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
609 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
610 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
611 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
612 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
613 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
614 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
615 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
616 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
617 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
618 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h \
619 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
620 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
621 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
622 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
623 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
624 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
625 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
626 $(srcdir)/nls-enable.h
627 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
628 $(srcdir)/fsck.h $(top_srcdir)/lib/blkid/blkid.h \
629 $(top_builddir)/lib/blkid/blkid_types.h
630 util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
631 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
632 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
633 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
634 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
635 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h \
636 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
638 uuidgen.o: $(srcdir)/uuidgen.c $(top_srcdir)/lib/uuid/uuid.h \
639 $(srcdir)/nls-enable.h
640 blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/blkid/blkid.h \
641 $(top_builddir)/lib/blkid/blkid_types.h
642 logsave.o: $(srcdir)/logsave.c
643 e2freefrag.o: $(srcdir)/e2freefrag.c e2freefrag.h \
644 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
645 $(top_srcdir)/lib/ext2fs/bitops.h
646 filefrag.o: $(srcdir)/filefrag.c
647 base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h
648 ismounted.o: $(srcdir)/ismounted.c $(top_srcdir)/lib/et/com_err.h
649 profile.o: $(srcdir)/../e2fsck/profile.c $(top_srcdir)/lib/et/com_err.h \
650 $(srcdir)/../e2fsck/profile.h prof_err.h
651 e2undo.o: $(srcdir)/e2undo.c $(top_srcdir)/lib/ext2fs/tdb.h