Whamcloud - gitweb
AOSP: tune2fs/resize2fs: make vendor_ramdisk_available.
[tools/e2fsprogs.git] / misc / Makefile.in
1 #
2 # Standard e2fsprogs prologue....
3 #
4
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7 VPATH = @srcdir@
8 top_builddir = ..
9 my_dir = misc
10 INSTALL = @INSTALL@
11 MKDIR_P = @MKDIR_P@
12
13 @MCONFIG@
14
15 @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_PROG= e4defrag
16 @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_MAN= e4defrag.8
17
18 @LINUX_CMT@E4CRYPT_PROG = e4crypt
19 @LINUX_CMT@E4CRYPT_MAN= e4crypt.8
20
21 @IMAGER_CMT@E2IMAGE_PROG= e2image
22 @IMAGER_CMT@E2IMAGE_MAN= e2image.8
23
24 @UUIDD_CMT@UUIDD_PROG= uuidd
25 @UUIDD_CMT@UUIDD_MAN= uuidd.8
26 @UUIDD_CMT@UUIDD_PROFILED= uuidd.profiled
27
28 @BLKID_CMT@BLKID_PROG= blkid
29 @BLKID_CMT@BLKID_MAN= blkid.8
30
31 @BLKID_CMT@FINDFS_LINK= findfs
32 @BLKID_CMT@FINDFS_MAN= findfs.8
33
34 @FUSE_CMT@FUSE_PROG= fuse2fs
35
36 SPROGS=         mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
37                         $(E2IMAGE_PROG) @FSCK_PROG@ e2undo
38 USPROGS=        mklost+found filefrag e2freefrag $(UUIDD_PROG) \
39                         $(E4DEFRAG_PROG) $(E4CRYPT_PROG)
40 SMANPAGES=      tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
41                         e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \
42                         logsave.8 filefrag.8 e2freefrag.8 e2undo.8 \
43                         $(UUIDD_MAN) $(E4DEFRAG_MAN) $(E4CRYPT_MAN) @FSCK_MAN@ \
44                         e2mmpstatus.8
45 FMANPAGES=      mke2fs.conf.5 ext4.5
46
47 UPROGS=         chattr lsattr $(FUSE_PROG) @UUID_CMT@ uuidgen
48 UMANPAGES=      chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1
49 UMANPAGES+=     @FUSE_CMT@ fuse2fs.1
50
51 LPROGS=         @E2INITRD_PROG@
52
53 TUNE2FS_OBJS=   tune2fs.o util.o journal.o recovery.o revoke.o
54 MKLPF_OBJS=     mklost+found.o
55 MKE2FS_OBJS=    mke2fs.o util.o default_profile.o mk_hugefiles.o \
56                         create_inode.o
57 CHATTR_OBJS=    chattr.o
58 LSATTR_OBJS=    lsattr.o
59 UUIDGEN_OBJS=   uuidgen.o
60 UUIDD_OBJS=     uuidd.o
61 DUMPE2FS_OBJS=  dumpe2fs.o
62 BADBLOCKS_OBJS= badblocks.o
63 E2IMAGE_OBJS=   e2image.o
64 FSCK_OBJS=      fsck.o base_device.o ismounted.o
65 BLKID_OBJS=     blkid.o
66 FILEFRAG_OBJS=  filefrag.o
67 E2UNDO_OBJS=  e2undo.o
68 E4DEFRAG_OBJS=  e4defrag.o
69 E4CRYPT_OBJS=   e4crypt.o
70 E2FREEFRAG_OBJS= e2freefrag.o
71 E2FUZZ_OBJS=    e2fuzz.o
72 FUSE2FS_OBJS=   fuse2fs.o journal.o recovery.o revoke.o
73
74 PROFILED_TUNE2FS_OBJS=  profiled/tune2fs.o profiled/util.o profiled/journal.o \
75                                 profiled/recovery.o profiled/revoke.o
76 PROFILED_MKLPF_OBJS=    profiled/mklost+found.o
77 PROFILED_MKE2FS_OBJS=   profiled/mke2fs.o profiled/util.o \
78                                 profiled/default_profile.o \
79                                 profiled/mk_hugefiles.o \
80                                 profiled/create_inode.o
81 PROFILED_CHATTR_OBJS=   profiled/chattr.o
82 PROFILED_LSATTR_OBJS=   profiled/lsattr.o
83 PROFILED_UUIDGEN_OBJS=  profiled/uuidgen.o
84 PROFILED_UUIDD_OBJS=    profiled/uuidd.o
85 PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o
86 PROFILED_BADBLOCKS_OBJS=        profiled/badblocks.o
87 PROFILED_E2IMAGE_OBJS=  profiled/e2image.o
88 PROFILED_FSCK_OBJS=     profiled/fsck.o profiled/base_device.o \
89                         profiled/ismounted.o
90 PROFILED_BLKID_OBJS=    profiled/blkid.o
91 PROFILED_FILEFRAG_OBJS= profiled/filefrag.o
92 PROFILED_E2FREEFRAG_OBJS= profiled/e2freefrag.o
93 PROFILED_E2UNDO_OBJS=   profiled/e2undo.o
94 PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o
95 PROFILED_E4CRYPT_OBJS=  profiled/e4crypt.o
96 PROFILED_FUSE2FS_OJBS=  profiled/fuse2fs.o profiled/journal.o \
97                         profiled/recovery.o profiled/revoke.o
98
99 SRCS=   $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c $(srcdir)/mk_hugefiles.c \
100                 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
101                 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
102                 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
103                 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
104                 $(srcdir)/ismounted.c $(srcdir)/e2undo.c \
105                 $(srcdir)/e2freefrag.c $(srcdir)/create_inode.c \
106                 $(srcdir)/fuse2fs.c $(srcdir)/e2fuzz.c \
107                 $(srcdir)/check_fuzzer.c \
108                 $(srcdir)/../debugfs/journal.c $(srcdir)/../e2fsck/revoke.c \
109                 $(srcdir)/../e2fsck/recovery.c
110
111 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(LIBSUPPORT)
112 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR) $(DEPLIBSUPPORT)
113 PROFILED_LIBS= $(LIBSUPPORT) $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
114 PROFILED_DEPLIBS= $(DEPLIBSUPPORT) $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
115
116 STATIC_LIBS= $(LIBSUPPORT) $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
117 STATIC_DEPLIBS= $(DEPLIBSUPPORT) $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
118
119 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
120 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
121
122 COMPILE_ET=     _ET_DIR_OVERRIDE=$(srcdir)/../lib/et/et ../lib/et/compile_et
123
124 # This nastiness is needed because of jfs_user.h hackery; when we finally
125 # clean up this mess, we should be able to drop it
126 JOURNAL_CFLAGS = -I$(srcdir)/../e2fsck $(ALL_CFLAGS) -DDEBUGFS
127 DEPEND_CFLAGS = -I$(top_srcdir)/e2fsck
128
129 .c.o:
130         $(E) "  CC $<"
131         $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
132         $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
133         $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
134 @PROFILE_CMT@   $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
135
136 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
137         $(FMANPAGES) $(LPROGS) $(E4DEFRAG_PROG) $(E4CRYPT_PROGS) e2fuzz
138
139 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
140         e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
141         logsave.profiled filefrag.profiled uuidgen.profiled $(UUIDD_PROFILED) \
142         e2image.profiled e4defrag.profiled e4crypt.profiled \
143         e2freefrag.profiled
144
145 profiled:
146 @PROFILE_CMT@   $(E) "  MKDIR $@"
147 @PROFILE_CMT@   $(Q) mkdir profiled
148
149 mke2fs.conf: $(srcdir)/mke2fs.conf.in
150         if test -f $(srcdir)/mke2fs.conf.custom.in ; then \
151                 cp $(srcdir)/mke2fs.conf.custom.in mke2fs.conf; \
152         else \
153                 cp $(srcdir)/mke2fs.conf.in mke2fs.conf; \
154         fi
155
156 default_profile.c: mke2fs.conf $(srcdir)/profile-to-c.awk
157         $(E) "  PROFILE_TO_C mke2fs.conf"
158         $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < mke2fs.conf \
159                 >  default_profile.c
160 findsuper: findsuper.o
161         $(E) "  LD $@"
162         $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o $(LIBS) $(SYSLIBS)
163
164 partinfo: partinfo.o $(DEPLIBCOM_ERR)
165         $(E) "  LD $@"
166         $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o $(LIBCOM_ERR)
167
168 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
169         $(E) "  LD $@"
170         $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
171                 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL) $(SYSLIBS)
172
173 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
174                 $(DEPLIBUUID) $(LIBEXT2FS)
175         $(E) "  LD $@"
176         $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
177                 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBS_E2P) \
178                 $(LIBINTL) $(SYSLIBS) $(LIBBLKID) $(LIBMAGIC)
179
180 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
181         $(E) "  LD $@"
182         $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
183                 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
184                 $(STATIC_LIBE2P) $(LIBINTL) $(SYSLIBS) \
185                 $(STATIC_LIBBLKID) $(LIBMAGIC)
186
187 tune2fs.profiled: $(TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
188                 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID)
189         $(E) "  LD $@"
190         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
191                 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBS) \
192                 $(PROFILED_LIBBLKID) $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) \
193                 $(LIBINTL) $(SYSLIBS) $(PROFILED_LIBUUID) $(LIBMAGIC)
194
195 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
196         $(E) "  LD $@"
197         $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
198                 $(LIBEXT2FS) $(SYSLIBS)
199
200 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
201         $(E) "  LD $@"
202         $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
203                 $(STATIC_LIBBLKID) $(LIBINTL) $(SYSLIBS)
204
205 blkid.profiled: $(BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
206                 $(PROFILED_LIBEXT2FS)
207         $(E) "  LD $@"
208         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
209                 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS) $(SYSLIBS)
210
211 e2image: $(E2IMAGE_OBJS) $(DEPLIBS) $(DEPLIBBLKID)
212         $(E) "  LD $@"
213         $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) \
214                 $(LIBINTL) $(SYSLIBS) $(LIBBLKID) $(LIBMAGIC)
215
216 e2image.profiled: $(E2IMAGE_OBJS) $(PROFILED_DEPLIBS) $(DEPLIBBLKID)
217         $(E) "  LD $@"
218         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
219                 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL) $(SYSLIBS) \
220                 $(LIBBLKID) $(LIBMAGIC)
221
222 e2image.static: $(E2IMAGE_OBJS) $(PROFILED_DEPLIBS) $(DEPLIBBLKID)
223         $(E) "  LD $@"
224         $(Q) $(CC) $(LDFLAGS_STATIC) -g -pg -o e2image.static \
225                 $(E2IMAGE_OBJS) $(STATIC_LIBS) $(LIBINTL) $(SYSLIBS) \
226                 $(STATIC_LIBBLKID) $(LIBMAGIC)
227
228 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
229         $(E) "  LD $@"
230         $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) \
231                 $(LIBINTL) $(SYSLIBS)
232
233 e2undo.profiled: $(E2UNDO_OBJS) $(PROFILED_DEPLIBS)
234         $(E) "  LD $@"
235         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
236                 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL) $(SYSLIBS)
237
238 e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS)
239         $(E) "  LD $@"
240         $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS) $(LIBS) \
241                 $(SYSLIBS)
242
243 e4crypt: $(E4CRYPT_OBJS) $(DEPLIBS) $(DEPSTATIC_LIBUUID)
244         $(E) "  LD $@"
245         $(Q) $(CC) $(ALL_LDFLAGS) -o e4crypt $(E4CRYPT_OBJS) \
246                 $(LIBUUID) $(LIBS) $(SYSLIBS)
247
248 e4defrag.profiled: $(E4DEFRAG_OBJS) $(PROFILED_DEPLIBS)
249         $(E) "  LD $@"
250         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \
251                 $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_LIBS) $(SYSLIBS)
252
253 e4crypt.profiled: $(E4CRYPT_OBJS) $(DEPPROFILED_LIBUUID) $(PROFILED_DEPLIBS)
254         $(E) "  LD $@"
255         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4crypt.profiled \
256                 $(PROFILED_E4CRYPT_OBJS) $(PROFILED_LIBUUID) $(PROFILED_LIBS) \
257                 $(SYSLIBS)
258
259 base_device: base_device.c
260         $(E) "  LD $@"
261         $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
262                 -DDEBUG -o base_device $(SYSLIBS)
263
264 fullcheck check:: base_device
265         ./base_device < $(srcdir)/base_device.tst > base_device.out
266         cmp $(srcdir)/base_device.tst base_device.out
267
268 mklost+found: $(MKLPF_OBJS)
269         $(E) "  LD $@"
270         $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) \
271                 $(LIBINTL) $(SYSLIBS)
272
273 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
274                 $(LIBEXT2FS)
275         $(E) "  LD $@"
276         $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
277                 $(LIBUUID) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL) \
278                 $(SYSLIBS) $(LIBMAGIC)
279
280 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) \
281                 $(DEPSTATIC_LIBBLKID)
282         $(E) "  LD $@"
283         $(Q) $(CC) $(LDFLAGS_STATIC) -o mke2fs.static $(MKE2FS_OBJS) \
284                 $(STATIC_LIBS) $(STATIC_LIBE2P) \
285                 $(STATIC_LIBBLKID) $(STATIC_LIBUUID) $(LIBINTL) $(SYSLIBS) \
286                 $(LIBMAGIC)
287
288 mke2fs.profiled: $(MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
289         $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID)
290         $(E) "  LD $@"
291         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
292                 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
293                 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) \
294                 $(LIBINTL) $(PROFILED_LIBS) $(SYSLIBS) $(LIBMAGIC)
295
296 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
297         $(E) "  LD $@"
298         $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) \
299                 $(LIBINTL) $(SYSLIBS)
300
301 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
302         $(E) "  LD $@"
303         $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) \
304                 $(LIBINTL) $(SYSLIBS)
305
306 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
307         $(E) "  LD $@"
308         $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) \
309                 $(LIBINTL) $(SYSLIBS)
310
311 uuidgen.profiled: $(UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
312         $(E) "  LD $@"
313         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
314                 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL) \
315                 $(SYSLIBS)
316
317 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
318         $(E) "  LD $@"
319         $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) \
320                 $(LIBINTL) $(SYSLIBS)
321
322 uuidd.profiled: $(UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
323         $(E) "  LD $@"
324         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
325                 $(PROFILED_LIBUUID) $(LIBINTL) $(SYSLIBS)
326
327 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID) $(DEPLIBBLKID)
328         $(E) "  LD $@"
329         $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
330                 $(LIBS_E2P) $(LIBUUID) $(LIBINTL) $(SYSLIBS) $(LIBBLKID) \
331                 $(LIBMAGIC)
332
333 dumpe2fs.profiled: $(DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
334                 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID) $(PROFILED_DEPLIBBLKID)
335         $(E) "  LD $@"
336         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
337                 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
338                 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL) $(SYSLIBS) \
339                 $(PROFILED_LIBBLKID) $(LIBMAGIC)
340
341 dumpe2fs.static: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID) $(DEPLIBBLKID)
342         $(E) "  LD $@"
343         $(Q) $(CC) $(LDFLAGS_STATIC) -o dumpe2fs.static $(DUMPE2FS_OBJS) \
344                 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBUUID) \
345                 $(LIBINTL) $(SYSLIBS) $(STATIC_LIBBLKID) $(LIBMAGIC)
346
347 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
348         $(E) "  LD $@"
349         $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) \
350                 $(LIBINTL) $(SYSLIBS)
351
352 fsck.profiled: $(FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
353         $(E) "  LD $@"
354         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
355                 $(PROFILED_LIBBLKID) $(LIBINTL) $(SYSLIBS)
356
357 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
358         $(E) "  LD $@"
359         $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) \
360                 $(LIBINTL) $(SYSLIBS)
361
362 badblocks.profiled: $(BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
363         $(E) "  LD $@"
364         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
365                 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL) \
366                 $(SYSLIBS)
367
368 logsave: logsave.o
369         $(E) "  LD $@"
370         $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o $(SYSLIBS)
371
372 logsave.profiled: logsave.o
373         $(E) "  LD $@"
374         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled \
375                 profiled/logsave.o $(SYSLIBS)
376
377 e2freefrag: $(E2FREEFRAG_OBJS)
378         $(E) "  LD $@"
379         $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) \
380                 $(LIBS) $(SYSLIBS)
381
382 e2freefrag.profiled: $(E2FREEFRAG_OBJS) $(PROFILED_DEPLIBS)
383         $(E) "  LD $@"
384         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2freefrag.profiled \
385                 $(PROFILED_E2FREEFRAG_OBJS) $(PROFILED_LIBS) $(SYSLIBS)
386
387 e2fuzz: $(E2FUZZ_OBJS) $(DEPLIBS) $(DEPLIBBLKID) $(DEPLIBUUID) \
388                 $(LIBEXT2FS)
389         $(E) "  LD $@"
390         $(Q) $(CC) $(ALL_LDFLAGS) -o e2fuzz $(E2FUZZ_OBJS) $(LIBS) \
391                 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(SYSLIBS)
392
393 check_fuzzer: check_fuzzer.o $(DEPLIBS)
394         $(E) "  LD $@"
395         $(Q) $(CC) $(ALL_LDFLAGS) -o check_fuzzer check_fuzzer.o $(LIBS)
396
397 filefrag: $(FILEFRAG_OBJS)
398         $(E) "  LD $@"
399         $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS) $(SYSLIBS)
400
401 filefrag.profiled: $(FILEFRAG_OBJS)
402         $(E) "  LD $@"
403         $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
404                 $(PROFILED_FILEFRAG_OBJS) 
405
406 fuse2fs: $(FUSE2FS_OBJS) $(DEPLIBS) $(DEPLIBBLKID) $(DEPLIBUUID) \
407                 $(LIBEXT2FS)
408         $(E) "  LD $@"
409         $(Q) $(CC) $(ALL_LDFLAGS) -o fuse2fs $(FUSE2FS_OBJS) $(LIBS) \
410                 $(LIBFUSE) $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL) \
411                 $(CLOCK_GETTIME_LIB) $(SYSLIBS)
412
413 journal.o: $(srcdir)/../debugfs/journal.c
414         $(E) "  CC $<"
415         $(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
416                 $(srcdir)/../debugfs/journal.c -o $@
417 @PROFILE_CMT@   $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
418
419 recovery.o: $(srcdir)/../e2fsck/recovery.c
420         $(E) "  CC $<"
421         $(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
422                 $(srcdir)/../e2fsck/recovery.c -o $@
423 @PROFILE_CMT@   $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
424
425 revoke.o: $(srcdir)/../e2fsck/revoke.c
426         $(E) "  CC $<"
427         $(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
428                 $(srcdir)/../e2fsck/revoke.c -o $@
429 @PROFILE_CMT@   $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
430
431 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
432         $(E) "  LD $@"
433         $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
434                 $(LIBCOM_ERR) $(SYSLIBS)
435 @PROFILE_CMT@   $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
436
437 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
438         $(E) "  SUBST $@"
439         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
440
441 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
442         $(E) "  SUBST $@"
443         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
444
445 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
446         $(E) "  SUBST $@"
447         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
448
449 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
450         $(E) "  SUBST $@"
451         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
452
453 ext4.5: $(DEP_SUBSTITUTE) $(srcdir)/ext4.5.in
454         $(E) "  SUBST $@"
455         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/$@.in $@
456
457 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
458         $(E) "  SUBST $@"
459         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
460
461 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
462         $(E) "  SUBST $@"
463         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
464
465 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
466         $(E) "  SUBST $@"
467         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
468
469 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
470         $(E) "  SUBST $@"
471         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
472
473 e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in
474         $(E) "  SUBST $@"
475         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8
476
477 e4crypt.8: $(DEP_SUBSTITUTE) $(srcdir)/e4crypt.8.in
478         $(E) "  SUBST $@"
479         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4crypt.8.in e4crypt.8
480
481 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in 
482         $(E) "  SUBST $@"
483         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
484
485 e2mmpstatus.8: $(DEP_SUBSTITUTE) $(srcdir)/e2mmpstatus.8.in
486         $(E) "  SUBST $@"
487         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2mmpstatus.8.in e2mmpstatus.8
488
489 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
490         $(E) "  SUBST $@"
491         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8  
492
493 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
494         $(E) "  SUBST $@"
495         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8 
496
497 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
498         $(E) "  SUBST $@"
499         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
500
501 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
502         $(E) "  SUBST $@"
503         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
504
505 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
506         $(E) "  SUBST $@"
507         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
508
509 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
510         $(E) "  SUBST $@"
511         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1 
512
513 fuse2fs.1: $(DEP_SUBSTITUTE) $(srcdir)/fuse2fs.1.in
514         $(E) "  SUBST $@"
515         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fuse2fs.1.in fuse2fs.1
516
517 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in 
518         $(E) "  SUBST $@"
519         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1 
520
521 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in 
522         $(E) "  SUBST $@"
523         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1 
524
525 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in 
526         $(E) "  SUBST $@"
527         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1 
528
529 e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in
530         $(E) "  SUBST $@"
531         @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8
532
533 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
534         $(E) "  SUBST $@"
535         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
536
537 installdirs:
538         $(E) "  MKDIR_P $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
539         $(Q) $(MKDIR_P) $(DESTDIR)$(sbindir) \
540                 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
541                 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
542                 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
543                 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
544
545 install: all $(SMANPAGES) $(UMANPAGES) installdirs
546         $(Q) for i in $(SPROGS); do \
547                 $(ES) " INSTALL $(root_sbindir)/$$i"; \
548                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
549         done
550         $(Q) for i in $(USPROGS); do \
551                 $(ES) " INSTALL $(sbindir)/$$i"; \
552                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
553         done
554         $(Q) for i in ext2 ext3 ext4; do \
555                 $(ES) " LINK $(root_sbindir)/mkfs.$$i"; \
556                 (cd $(DESTDIR)$(root_sbindir); \
557                         $(LN) $(LINK_INSTALL_FLAGS) mke2fs mkfs.$$i); \
558         done
559         $(Q) (cd $(DESTDIR)$(root_sbindir); \
560                 $(LN) $(LINK_INSTALL_FLAGS) dumpe2fs e2mmpstatus)
561         $(Q) (cd $(DESTDIR)$(root_sbindir); \
562                 $(LN) $(LINK_INSTALL_FLAGS) tune2fs e2label)
563         $(Q) if test -n "$(FINDFS_LINK)"; then \
564                 $(ES) " LINK $(root_sbindir)/findfs"; \
565                 (cd $(DESTDIR)$(root_sbindir); \
566                 $(LN) $(LINK_INSTALL_FLAGS) tune2fs $(FINDFS_LINK)); \
567         fi
568         $(Q) for i in $(UPROGS); do \
569                 $(ES) " INSTALL $(bindir)/$$i"; \
570                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
571         done
572         $(Q) for i in $(LPROGS); do \
573                 $(ES) " INSTALL $(libdir)/$$i"; \
574                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
575         done
576         $(Q) for i in $(SMANPAGES); do \
577                 for j in $(COMPRESS_EXT); do \
578                         $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
579                 done; \
580                 $(ES) " INSTALL_DATA $(man8dir)/$$i"; \
581                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
582         done
583         $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
584                 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
585         $(Q) for i in ext2 ext3 ext4; do \
586                 $(ES) " LINK mkfs.$$i.8"; \
587                 (cd $(DESTDIR)$(man8dir); \
588                         $(LN) $(LINK_INSTALL_FLAGS) mke2fs.8 mkfs.$$i.8); \
589         done
590         $(Q) for i in $(UMANPAGES); do \
591                 for j in $(COMPRESS_EXT); do \
592                         $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
593                 done; \
594                 $(ES) " INSTALL_DATA $(man1dir)/$$i"; \
595                 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
596         done
597         $(Q) for i in $(FMANPAGES); do \
598                 for j in $(COMPRESS_EXT); do \
599                         $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
600                 done; \
601                 $(ES) " INSTALL_DATA $(man5dir)/$$i"; \
602                 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
603         done
604         $(Q) for i in ext2 ext3; do \
605                 $(ES) " LINK $$i.5"; \
606                 (cd $(DESTDIR)$(man5dir); \
607                         $(LN) $(LINK_INSTALL_FLAGS) ext4.5 $$i.5); \
608         done
609         $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
610                 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
611                         mke2fs.conf; then \
612                         true; \
613                 else \
614                         if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
615                                 $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
616                                 $(INSTALL_DATA) mke2fs.conf \
617                                         $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
618                                 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
619                                 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
620                         else \
621                                 $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
622                                 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
623                                    $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
624                                 $(INSTALL_DATA) mke2fs.conf \
625                                         $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
626                                 echo "Your mke2fs.conf is too old.  Backing up old version in"; \
627                                 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old.  Please check to see"; \
628                                 echo "if you have any local customizations that you wish to preserve."; \
629                         fi; \
630                         echo " "; \
631                 fi; \
632         else \
633                 $(ES) " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
634                 $(INSTALL_DATA) mke2fs.conf \
635                         $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
636         fi
637
638 install-strip: install
639         $(Q) for i in $(SPROGS); do \
640                 $(E) "  STRIP $(root_sbindir)/$$i"; \
641                 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
642         done
643         $(Q) for i in $(USPROGS); do \
644                 $(E) "  STRIP $(sbindir)/$$i"; \
645                 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
646         done
647
648 uninstall:
649         for i in $(SPROGS); do \
650                 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
651         done
652         for i in $(USPROGS); do \
653                 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
654         done
655         for i in $(LPROGS); do \
656                 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
657         done
658         $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
659                         $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
660                         $(DESTDIR)$(root_sbindir)/mkfs.ext4
661         for i in $(UPROGS); do \
662                 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
663         done
664         for i in $(SMANPAGES); do \
665                 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
666         done
667         $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
668                 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
669                 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
670                 $(DESTDIR)$(man8dir)/fsck.ext2.8 \
671                 $(DESTDIR)$(man8dir)/fsck.ext3.8 \
672                 $(DESTDIR)$(man8dir)/fsck.ext4.8
673
674         for i in $(UMANPAGES); do \
675                 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
676         done
677         for i in $(FINDFS_LINK) e2label e2mmpstatus ; do \
678                 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
679         done
680         for i in $(FMANPAGES); do \
681                 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
682         done
683         $(Q) for i in ext2 ext3; do \
684                 $(ES) " LINK $$i.5"; \
685                 $(RM) -f $(DESTDIR)$(man5dir)/$$i.5; \
686         done
687         if cmp -s mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
688                 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
689         fi
690
691 clean::
692         $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
693                 $(FMANPAGES) profile.h \
694                 base_device base_device.out mke2fs.static filefrag e2freefrag \
695                 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
696                 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
697                 blkid.profiled tune2fs.profiled e2image.profiled \
698                 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
699                 dumpe2fs.static e2image.static \
700                 logsave.profiled filefrag.profiled uuidgen.profiled \
701                 uuidd.profiled e2image.profiled e2fuzz mke2fs.conf \
702                 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
703
704 mostlyclean: clean
705 distclean: clean
706         $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
707
708 # +++ Dependency line eater +++
709
710 # Makefile dependencies follow.  This must be the last section in
711 # the Makefile.in file
712 #
713 tune2fs.o: $(srcdir)/tune2fs.c $(top_builddir)/lib/config.h \
714  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
715  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
716  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
717  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
718  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
719  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
720  $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \
721  $(top_srcdir)/lib/support/plausible.h $(top_srcdir)/lib/support/quotaio.h \
722  $(top_srcdir)/lib/support/dqblk_v2.h \
723  $(top_srcdir)/lib/support/quotaio_tree.h $(top_srcdir)/lib/e2p/e2p.h \
724  $(srcdir)/util.h $(top_srcdir)/version.h \
725  $(top_srcdir)/lib/support/nls-enable.h
726 mklost+found.o: $(srcdir)/mklost+found.c $(top_builddir)/lib/config.h \
727  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
728  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
729  $(top_srcdir)/lib/support/nls-enable.h
730 mke2fs.o: $(srcdir)/mke2fs.c $(top_builddir)/lib/config.h \
731  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
732  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fsP.h \
733  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
734  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
735  $(top_builddir)/lib/ext2fs/ext2_err.h \
736  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
737  $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/util.h \
738  $(top_srcdir)/lib/support/nls-enable.h $(top_srcdir)/lib/support/plausible.h \
739  $(top_srcdir)/lib/support/profile.h $(top_builddir)/lib/support/prof_err.h \
740  $(top_srcdir)/version.h $(top_srcdir)/lib/support/quotaio.h \
741  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/support/dqblk_v2.h \
742  $(top_srcdir)/lib/support/quotaio_tree.h $(srcdir)/mke2fs.h \
743  $(srcdir)/create_inode.h $(top_srcdir)/lib/e2p/e2p.h
744 mk_hugefiles.o: $(srcdir)/mk_hugefiles.c $(top_builddir)/lib/config.h \
745  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
746  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fsP.h \
747  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
748  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
749  $(top_builddir)/lib/ext2fs/ext2_err.h \
750  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
751  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \
752  $(top_srcdir)/lib/ext2fs/ext2fs.h $(srcdir)/util.h \
753  $(top_srcdir)/lib/support/profile.h $(top_builddir)/lib/support/prof_err.h \
754  $(top_srcdir)/lib/support/nls-enable.h $(srcdir)/mke2fs.h
755 chattr.o: $(srcdir)/chattr.c $(top_builddir)/lib/config.h \
756  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
757  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
758  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/support/nls-enable.h \
759  $(top_srcdir)/version.h
760 lsattr.o: $(srcdir)/lsattr.c $(top_builddir)/lib/config.h \
761  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
762  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
763  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/support/nls-enable.h \
764  $(top_srcdir)/version.h
765 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_builddir)/lib/config.h \
766  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
767  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
768  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
769  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
770  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
771  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \
772  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
773  $(top_srcdir)/lib/ext2fs/kernel-list.h \
774  $(top_srcdir)/lib/support/nls-enable.h $(top_srcdir)/lib/support/plausible.h \
775  $(top_srcdir)/version.h
776 badblocks.o: $(srcdir)/badblocks.c $(top_builddir)/lib/config.h \
777  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
778  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_types.h \
779  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
780  $(top_srcdir)/lib/ext2fs/ext3_extents.h \
781  $(top_builddir)/lib/ext2fs/ext2_err.h \
782  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
783  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/nls-enable.h
784 fsck.o: $(srcdir)/fsck.c $(top_builddir)/lib/config.h \
785  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/version.h \
786  $(top_srcdir)/lib/support/nls-enable.h $(srcdir)/fsck.h
787 util.o: $(srcdir)/util.c $(top_builddir)/lib/config.h \
788  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
789  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
790  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
791  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
792  $(top_builddir)/lib/ext2fs/ext2_err.h \
793  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
794  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/nls-enable.h \
795  $(srcdir)/util.h
796 uuidgen.o: $(srcdir)/uuidgen.c $(top_builddir)/lib/config.h \
797  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/support/nls-enable.h
798 blkid.o: $(srcdir)/blkid.c $(top_builddir)/lib/config.h \
799  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
800  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
801  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
802  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
803  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
804  $(top_srcdir)/lib/ext2fs/bitops.h
805 logsave.o: $(srcdir)/logsave.c $(top_builddir)/lib/config.h \
806  $(top_builddir)/lib/dirpaths.h
807 filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/config.h \
808  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
809  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
810  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
811  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
812  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
813  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/fiemap.h
814 base_device.o: $(srcdir)/base_device.c $(top_builddir)/lib/config.h \
815  $(top_builddir)/lib/dirpaths.h $(srcdir)/fsck.h
816 ismounted.o: $(srcdir)/ismounted.c $(top_builddir)/lib/config.h \
817  $(top_builddir)/lib/dirpaths.h $(srcdir)/fsck.h \
818  $(top_srcdir)/lib/et/com_err.h
819 e2undo.o: $(srcdir)/e2undo.c $(top_builddir)/lib/config.h \
820  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
821  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
822  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
823  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
824  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
825  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/nls-enable.h
826 e2freefrag.o: $(srcdir)/e2freefrag.c $(top_builddir)/lib/config.h \
827  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
828  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
829  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
830  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
831  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
832  $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/e2freefrag.h $(srcdir)/fsmap.h
833 create_inode.o: $(srcdir)/create_inode.c $(top_builddir)/lib/config.h \
834  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
835  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
836  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
837  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
838  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
839  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/fiemap.h \
840  $(srcdir)/create_inode.h $(top_srcdir)/lib/e2p/e2p.h \
841  $(top_srcdir)/lib/support/nls-enable.h
842 fuse2fs.o: $(srcdir)/fuse2fs.c $(top_builddir)/lib/config.h \
843  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
844  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
845  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
846  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
847  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
848  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/version.h
849 e2fuzz.o: $(srcdir)/e2fuzz.c $(top_builddir)/lib/config.h \
850  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
851  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
852  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
853  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
854  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
855  $(top_srcdir)/lib/ext2fs/bitops.h
856 check_fuzzer.o: $(srcdir)/check_fuzzer.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
857  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
858  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
859  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
860  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
861  $(top_srcdir)/lib/ext2fs/bitops.h
862 journal.o: $(srcdir)/../debugfs/journal.c $(top_builddir)/lib/config.h \
863  $(top_builddir)/lib/dirpaths.h $(srcdir)/../debugfs/journal.h \
864  $(top_srcdir)/e2fsck/jfs_user.h $(top_srcdir)/e2fsck/e2fsck.h \
865  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
866  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
867  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
868  $(top_builddir)/lib/ext2fs/ext2_err.h \
869  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
870  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/profile.h \
871  $(top_builddir)/lib/support/prof_err.h $(top_srcdir)/lib/support/quotaio.h \
872  $(top_srcdir)/lib/support/dqblk_v2.h \
873  $(top_srcdir)/lib/support/quotaio_tree.h \
874  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
875  $(top_srcdir)/lib/ext2fs/kernel-list.h
876 revoke.o: $(srcdir)/../e2fsck/revoke.c $(srcdir)/../e2fsck/jfs_user.h \
877  $(top_builddir)/lib/config.h $(top_builddir)/lib/dirpaths.h \
878  $(srcdir)/../e2fsck/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
879  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
880  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
881  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
882  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
883  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/profile.h \
884  $(top_builddir)/lib/support/prof_err.h $(top_srcdir)/lib/support/quotaio.h \
885  $(top_srcdir)/lib/support/dqblk_v2.h \
886  $(top_srcdir)/lib/support/quotaio_tree.h \
887  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
888  $(top_srcdir)/lib/ext2fs/kernel-list.h
889 recovery.o: $(srcdir)/../e2fsck/recovery.c $(srcdir)/../e2fsck/jfs_user.h \
890  $(top_builddir)/lib/config.h $(top_builddir)/lib/dirpaths.h \
891  $(srcdir)/../e2fsck/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
892  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
893  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
894  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
895  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
896  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/profile.h \
897  $(top_builddir)/lib/support/prof_err.h $(top_srcdir)/lib/support/quotaio.h \
898  $(top_srcdir)/lib/support/dqblk_v2.h \
899  $(top_srcdir)/lib/support/quotaio_tree.h \
900  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
901  $(top_srcdir)/lib/ext2fs/kernel-list.h