1#
2# Makefile for e2fsck
3#
4
5srcdir = .
6top_srcdir = ..
7
8top_builddir = ..
9my_dir = e2fsck
10INSTALL = /usr/bin/install -c
11LDFLAG_STATIC = -static
12
13# Beginning of file MCONFIG
14
15all::
16
17check::
18
19SHELL = /bin/sh
20
21COMPRESS_EXT = gz bz2 bz Z
22
23prefix = /usr
24root_prefix = 
25exec_prefix = ${prefix}
26root_bindir = ${root_prefix}/bin
27root_sbindir = ${root_prefix}/sbin
28root_libdir = ${root_prefix}/lib
29datarootdir = ${prefix}/share
30bindir = ${exec_prefix}/bin
31sbindir = ${exec_prefix}/sbin
32libdir = ${exec_prefix}/lib
33datadir= ${datarootdir}
34localedir = $(datadir)/locale
35root_sysconfdir= ${root_prefix}/etc
36includedir = ${prefix}/include
37mandir = ${datarootdir}/man
38man1dir = $(mandir)/man1
39man3dir = $(mandir)/man3
40man5dir = $(mandir)/man5
41man8dir = $(mandir)/man8
42infodir = ${datarootdir}/info
43datadir = ${datarootdir}
44
45
46
47CROSS_COMPILER = mipsel-linux-
48CC = $(CROSS_COMPILER)gcc
49BUILD_CC = $(CC)
50DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_HTREE=1 -DENABLE_SWAPFS=1 -DTLS= -DUSE_UUIDD=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"0.14.1\" -DHAVE_LONG_LONG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WC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MP=1 -DHAVE_SRANDOM=1 -DHAVE_JRAND48=1 -DHAVE_FCHOWN=1 -DHAVE_MALLINFO=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_STRPTIME=1 -DHAVE_STRDUP=1 -DHAVE_SYSCONF=1 -DHAVE_PATHCONF=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_MEMALIGN=1 -DHAVE_VALLOC=1 -DHAVE___SECURE_GETENV=1 -DHAVE_PRCTL=1 -DHAVE_MMAP=1 -DHAVE_UTIME=1 -DHAVE_SETRESUID=1 -DHAVE_SETRESGID=1 -DHAVE_DLOPEN=1 -DHAVE_EXT2_IOCTLS=1
51CFLAGS = -g -O2
52CPPFLAGS =  -I$(top_builddir)/lib -I$(top_srcdir)/lib 
53INTL_FLAGS = 
54ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
55	$(INTL_FLAGS) $(LINUX_INCLUDE) 
56LDFLAGS = 
57ALL_LDFLAGS = $(LDFLAGS)
58BUILD_CFLAGS = -g -O2
59BUILD_LDFLAGS = 
60RM = /bin/rm
61LN = /bin/ln
62LN_S = ln -s
63MV = /bin/mv
64CP = /bin/cp
65CHMOD = /bin/chmod
66AR = $(CROSS_COMPILER)ar
67AWK = gawk
68SED = /bin/sed
69PERL = /usr/bin/perl
70RANLIB = $(CROSS_COMPILER)ranlib
71STRIP = $(CROSS_COMPILER)strip
72LD = $(PURE) $(CC)
73ARUPD = $(AR) r
74ARGEN = $(AR) rc
75LDCONFIG = /sbin/ldconfig
76INSTALL_PROGRAM = ${INSTALL}
77INSTALL_DATA = ${INSTALL} -m 644
78INSTALL_SCRIPT = ${INSTALL}
79MKINSTALLDIRS = $(top_builddir)/config/mkinstalldirs
80
81#
82# Library definitions
83#
84DEVMAPPER_LIBS = 
85STATIC_DEVMAPPER_LIBS = 
86
87LIB = $(top_builddir)/lib
88LIBSS = $(LIB)/libss.a
89LIBCOM_ERR = $(LIB)/libcom_err.a
90LIBE2P = $(LIB)/libe2p.a
91LIBEXT2FS = $(LIB)/libext2fs.a
92LIBUUID = $(LIB)/libuuid.a 
93LIBBLKID = $(LIB)/libblkid.a 
94LIBINTL = 
95DEPLIBUUID = $(LIB)/libuuid.a
96DEPLIBBLKID = $(LIB)/libblkid.a
97
98STATIC_LIBSS = $(LIB)/libss.a
99STATIC_LIBCOM_ERR = $(LIB)/libcom_err.a
100STATIC_LIBE2P = $(LIB)/libe2p.a
101STATIC_LIBEXT2FS = $(LIB)/libext2fs.a
102STATIC_LIBUUID = $(LIB)/libuuid.a  
103STATIC_LIBBLKID = $(LIB)/libblkid.a $(STATIC_DEVMAPPER_LIBS)
104DEPSTATIC_LIBUUID = $(LIB)/libuuid.a
105DEPSTATIC_LIBBLKID = $(LIB)/libblkid.a
106
107PROFILED_LIBSS = $(LIB)/libss
108PROFILED_LIBCOM_ERR = $(LIB)/libcom_err
109PROFILED_LIBE2P = $(LIB)/libe2p
110PROFILED_LIBEXT2FS = $(LIB)/libext2fs
111PROFILED_LIBUUID = $(LIB)/libuuid  
112PROFILED_LIBBLKID = $(LIB)/libblkid
113DEPPROFILED_LIBUUID = $(LIB)/libuuid
114DEPPROFILED_LIBBLKID = $(LIB)/libblkid
115
116# An include directive pointing to a directory holding enough linux-like
117# include files to satisfy some programs here
118LINUX_INCLUDE=
119
120#
121# A fast substitution command for fixing up man pages, shell scripts, etc.
122#
123SUBST_CONF=$(top_builddir)/util/subst.conf
124SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
125SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
126DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
127
128$(top_builddir)/util/subst:
129	cd $(top_builddir)/util ; $(MAKE) subst
130
131#
132# Warning flags
133#
134# Run make gcc-wall to do a build with warning messages.
135#
136#
137WFLAGS=		-std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
138			-pedantic $(WFLAGS_EXTRA) \
139			-Wall -W -Wwrite-strings -Wpointer-arith \
140			-Wcast-qual -Wcast-align -Wno-variadic-macros \
141			-Wstrict-prototypes -Wmissing-prototypes \
142			-Wformat-security  -Wformat-nonliteral \
143			-Wmissing-format-attribute -O2 -Wstrict-aliasing \
144			-Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
145			-UENABLE_NLS
146
147gcc-wall-new:
148	(make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
149
150gcc-wall:
151	make clean > /dev/null
152	make gcc-wall-new
153
154#
155# Installation user and groups
156#
157BINGRP=		bin
158BINOWN=		bin
159BINMODE=	555
160INCGRP=		bin
161INCOWN=		bin
162INCMODE=	444
163LIBOWN=		bin
164LIBGRP=		bin
165LIBMODE=	444
166MANGRP=		bin
167MANOWN=		bin
168MANMODE=	444
169
170#
171# Autoconf magic...
172#
173
174DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
175	$(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
176	$(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
177	$(top_srcdir)/lib/Makefile.profile
178
179$(top_builddir)/config.status: $(top_srcdir)/configure
180	cd $(top_builddir); ./config.status --recheck
181
182$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
183	cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
184
185$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
186		$(top_builddir)/config.status
187	cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
188
189$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
190		$(top_builddir)/config.status
191	cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
192
193Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
194		$(DEP_MAKEFILE) $(top_builddir)/config.status
195	cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
196
197#$(top_srcdir)/configure: $(top_srcdir)/configure.in
198#	cd $(top_srcdir) && autoconf
199
200#
201# Make depend magic...
202#
203
204.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
205	if test -n "$(SRCS)" ; then \
206		$(CC) -M $(ALL_CFLAGS) $(SRCS) | \
207			$(SED) -f $(top_srcdir)/depfix.sed \
208			    -e 's; $(srcdir)/; $$(srcdir)/;g' \
209			    -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
210			    -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
211			    -e 's; \./; ;g' \
212			    -e '/^#/d' \
213			    -e '/^ *\\$$/d' | \
214			$(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
215	else :; fi
216
217depend:: .depend
218	if test -n "$(SRCS)" ; then \
219		sed -e '/^# +++ Dependency line eater +++/,$$d' \
220			< $(srcdir)/Makefile.in | cat - .depend \
221			> $(srcdir)/Makefile.in.new; \
222	if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
223		$(RM) $(srcdir)/Makefile.in.new ; \
224	else \
225		$(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
226		$(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
227	fi ; else :; fi
228
229# End of file MCONFIG
230
231PROGS=		e2fsck
232MANPAGES=	e2fsck.8
233FMANPAGES=	e2fsck.conf.5
234XTRA_CFLAGS=	-DRESOURCE_TRACK -I.
235
236LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(LIBBLKID) $(LIBUUID) $(LIBINTL) $(LIBE2P)
237DEPLIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(DEPLIBBLKID) $(DEPLIBUUID) $(DEPLIBE2P)
238
239STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) $(STATIC_LIBBLKID) \
240	$(STATIC_LIBUUID) $(LIBINTL) $(STATIC_LIBE2P)
241STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) $(DEPSTATIC_LIBBLKID) \
242	$(DEPSTATIC_LIBUUID) $(DEPSTATIC_LIBE2P)
243
244PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) \
245	$(PROFILED_LIBBLKID) $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL)
246PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) \
247	$(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID) $(DEPPROFILED_LIBE2P)
248
249COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
250
251.c.o:
252	@echo "	CC $<"
253	@$(CC) -c $(ALL_CFLAGS) $< -o $@
254#	@$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
255
256#
257# Flags for using Checker
258#	Note: The optimization flags must include -g
259#
260#MCHECK=	-checker
261#LIBS= $(LIBCOM_ERR) $(LIB_EXT2FS) $(CHECKLIB)
262#DEPLIBS= $(LIBCOM_ERR) $(LIB_EXT2FS) 
263#CHECKLIB= /usr/lib/libchecker.o
264
265#
266# Flags for doing mtrace --- uncomment to produce mtracing e2fsck
267# 	Note:  The optimization flags must include -g
268#
269#MTRACE=	-DMTRACE
270#MTRACE_OBJ= mtrace.o
271#MTRACE_SRC= $(srcdir)/mtrace.c
272#OPT= -g
273
274#
275# Flags for doing mcheck --- uncomment to produce mchecking e2fsck
276# 	Note:  The optimization flags must include -g
277#
278#MCHECK= -DMCHECK
279
280OBJS= dict.o unix.o e2fsck.o super.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
281	pass5.o journal.o swapfs.o badblocks.o util.o dirinfo.o dx_dirinfo.o \
282	ehandler.o problem.o message.o recovery.o region.o revoke.o \
283	ea_refcount.o rehash.o profile.o prof_err.o $(MTRACE_OBJ)
284
285PROFILED_OBJS= profiled/dict.o profiled/unix.o profiled/e2fsck.o \
286	profiled/super.o profiled/pass1.o profiled/pass1b.o \
287	profiled/pass2.o profiled/pass3.o profiled/pass4.o profiled/pass5.o \
288	profiled/journal.o profiled/badblocks.o profiled/util.o \
289	profiled/dirinfo.o profiled/dx_dirinfo.o profiled/ehandler.o \
290	profiled/message.o profiled/problem.o profiled/swapfs.o \
291	profiled/recovery.o profiled/region.o profiled/revoke.o \
292	profiled/ea_refcount.o profiled/rehash.o profiled/profile.o \
293	profiled/prof_err.o
294
295SRCS= $(srcdir)/e2fsck.c \
296	$(srcdir)/dict.c \
297	$(srcdir)/super.c \
298	$(srcdir)/pass1.c \
299	$(srcdir)/pass1b.c \
300	$(srcdir)/pass2.c \
301	$(srcdir)/pass3.c \
302	$(srcdir)/pass4.c \
303	$(srcdir)/pass5.c \
304	$(srcdir)/journal.c \
305	$(srcdir)/recovery.c \
306	$(srcdir)/revoke.c \
307	$(srcdir)/badblocks.c \
308	$(srcdir)/util.c \
309	$(srcdir)/unix.c \
310	$(srcdir)/dirinfo.c \
311	$(srcdir)/dx_dirinfo.c \
312	$(srcdir)/ehandler.c \
313	$(srcdir)/problem.c \
314	$(srcdir)/message.c \
315	$(srcdir)/swapfs.c \
316	$(srcdir)/ea_refcount.c \
317	$(srcdir)/rehash.c \
318	$(srcdir)/region.c \
319	$(srcdir)/profile.c \
320	prof_err.c \
321	$(MTRACE_SRC)
322
323all:: profiled $(PROGS) e2fsck $(MANPAGES) $(FMANPAGES)
324
325#all:: e2fsck.profiled
326
327prof_err.c prof_err.h: prof_err.et
328	@echo "	COMPILE_ET prof_err.et"
329	@$(COMPILE_ET) $(srcdir)/prof_err.et
330
331e2fsck: $(OBJS)  $(DEPLIBS)
332	@echo "	LD $@"
333	@$(LD) $(ALL_LDFLAGS) -o e2fsck $(OBJS) $(LIBS) 
334
335e2fsck.static: $(OBJS) $(STATIC_DEPLIBS)
336	@echo "	LD $@"
337	@$(LD) $(ALL_LDFLAGS) $(LDFLAG_STATIC) -o e2fsck.static $(OBJS) \
338		$(STATIC_LIBS) 
339
340e2fsck.profiled: $(PROFILED_OBJS)  $(PROFILED_DEPLIBS)
341	@echo "	LD $@"
342	@$(LD) $(ALL_LDFLAGS) -g -pg -o e2fsck.profiled $(PROFILED_OBJS) \
343		$(PROFILED_LIBS) 
344
345tst_refcount: ea_refcount.c
346	@echo "	LD $@"
347	@$(CC) -o tst_refcount $(srcdir)/ea_refcount.c \
348		$(ALL_CFLAGS) -DTEST_PROGRAM -lcom_err
349
350tst_region: region.c
351	@echo "	LD $@"
352	@$(CC) -o tst_region $(srcdir)/region.c \
353		$(ALL_CFLAGS) -DTEST_PROGRAM -lcom_err
354
355extend: extend.o
356	@echo "	LD $@"
357	@$(LD) $(ALL_LDFLAGS) -o extend extend.o $(CHECKLIB)
358
359flushb: flushb.o
360	@echo "	LD $@"
361	@$(LD) $(ALL_LDFLAGS) -o flushb flushb.o $(CHECKLIB)
362
363iscan: iscan.o util.o ehandler.o $(DEPLIBS)
364	@echo "	LD $@"
365	@$(LD) $(ALL_LDFLAGS) -o iscan iscan.o util.o ehandler.o $(LIBS)
366
367test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
368		prof_err.o profile.h $(STATIC_LIBCOM_ERR)
369	@echo "	LD $@"
370	@$(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
371		profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
372		$(ALL_CFLAGS)
373
374profiled:
375#	@echo "	MKDIR $@"
376#	@mkdir profiled
377
378e2fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/e2fsck.8.in
379	@echo "	SUBST $@"
380	@$(SUBSTITUTE_UPTIME) $(srcdir)/e2fsck.8.in e2fsck.8
381
382e2fsck.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/e2fsck.conf.5.in
383	@echo "	SUBST $@"
384	@$(SUBSTITUTE_UPTIME) $(srcdir)/e2fsck.conf.5.in e2fsck.conf.5
385
386installdirs:
387	@echo "	MKINSTALLDIRS $(root_sbindir) $(man8dir)"
388	@$(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
389		$(DESTDIR)$(man8dir) $(DESTDIR)$(man5dir)
390
391install: $(PROGS) $(MANPAGES) $(FMANPAGES) installdirs
392	@for i in $(PROGS); do \
393		echo "	INSTALL $(root_sbindir)/$$i"; \
394		$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
395	done
396	@echo "	LINK $(root_sbindir)/fsck.ext2"
397	@$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
398			$(DESTDIR)$(root_sbindir)/fsck.ext2
399	@echo "	LINK $(root_sbindir)/fsck.ext3"
400	@$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
401			$(DESTDIR)$(root_sbindir)/fsck.ext3
402	@for i in $(MANPAGES); do \
403		for j in $(COMPRESS_EXT); do \
404			$(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
405		done; \
406		echo "	INSTALL_DATA $(man8dir)/$$i"; \
407		$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
408	done
409	@for i in $(FMANPAGES); do \
410		for j in $(COMPRESS_EXT); do \
411			$(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
412		done; \
413		echo "	INSTALL_DATA $(man5dir)/$$i"; \
414		$(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
415	done
416	@echo "	LINK $(man8dir)/fsck.ext2.8"
417	@$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
418		$(DESTDIR)$(man8dir)/fsck.ext2.8
419	@echo "	LINK $(man8dir)/fsck.ext3.8"
420	@$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
421		$(DESTDIR)$(man8dir)/fsck.ext3.8
422
423install-strip: install
424	@for i in $(PROGS); do \
425		echo "	STRIP $(root_sbindir)/$$i"; \
426		$(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
427	done
428
429uninstall:
430	for i in $(PROGS); do \
431		$(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
432	done
433	$(RM) -f $(DESTDIR)$(root_sbindir)/fsck.ext2 \
434		$(DESTDIR)$(root_sbindir)/fsck.ext3
435	for i in $(MANPAGES); do \
436		$(RM) -f $(DESTDIR)$(man8dir)/$$i; \
437	done
438	for i in $(FMANPAGES); do \
439		$(RM) -f $(DESTDIR)$(man5dir)/$$i; \
440	done
441	$(RM) -f $(DESTDIR)$(root_sbindir)/fsck.ext2 \
442			$(DESTDIR)$(root_sbindir)/fsck.ext3
443
444clean:
445	$(RM) -f $(PROGS) \#* *\# *.s *.o *.a *~ core e2fsck.static \
446		e2fsck.shared e2fsck.profiled flushb e2fsck.8
447	$(RM) -rf profiled
448
449mostlyclean: clean
450distclean: clean
451	$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
452
453# +++ Dependency line eater +++
454# 
455# Makefile dependencies follow.  This must be the last section in
456# the Makefile.in file
457#
458e2fsck.o: $(srcdir)/e2fsck.c $(srcdir)/e2fsck.h \
459 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
460 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
461 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
462 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
463 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
464 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
465dict.o: $(srcdir)/dict.c $(srcdir)/dict.h
466super.o: $(srcdir)/super.c $(top_srcdir)/lib/uuid/uuid.h $(srcdir)/e2fsck.h \
467 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
468 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
469 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
470 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
471 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
472 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
473pass1.o: $(srcdir)/pass1.c $(srcdir)/e2fsck.h \
474 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
475 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
476 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
477 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
478 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
479 $(srcdir)/profile.h prof_err.h $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h \
480 $(srcdir)/problem.h
481pass1b.o: $(srcdir)/pass1b.c $(top_srcdir)/lib/et/com_err.h \
482 $(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
483 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
484 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
485 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
486 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
487 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h $(srcdir)/dict.h
488pass2.o: $(srcdir)/pass2.c $(srcdir)/e2fsck.h \
489 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
490 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
491 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
492 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
493 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
494 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h $(srcdir)/dict.h
495pass3.o: $(srcdir)/pass3.c $(srcdir)/e2fsck.h \
496 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
497 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
498 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
499 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
500 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
501 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
502pass4.o: $(srcdir)/pass4.c $(srcdir)/e2fsck.h \
503 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
504 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
505 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
506 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
507 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
508 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
509pass5.o: $(srcdir)/pass5.c $(srcdir)/e2fsck.h \
510 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
511 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
512 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
513 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
514 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
515 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
516journal.o: $(srcdir)/journal.c $(srcdir)/jfs_user.h $(srcdir)/e2fsck.h \
517 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
518 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
519 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
520 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
521 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
522 $(srcdir)/profile.h prof_err.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
523 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \
524 $(srcdir)/problem.h $(top_srcdir)/lib/uuid/uuid.h
525recovery.o: $(srcdir)/recovery.c $(srcdir)/jfs_user.h $(srcdir)/e2fsck.h \
526 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
527 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
528 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
529 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
530 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
531 $(srcdir)/profile.h prof_err.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
532 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
533revoke.o: $(srcdir)/revoke.c $(srcdir)/jfs_user.h $(srcdir)/e2fsck.h \
534 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
535 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
536 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
537 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
538 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
539 $(srcdir)/profile.h prof_err.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
540 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
541badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
542 $(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
543 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
544 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
545 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
546 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
547 $(srcdir)/profile.h prof_err.h
548util.o: $(srcdir)/util.c $(srcdir)/e2fsck.h \
549 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
550 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
551 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
552 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
553 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
554 $(srcdir)/profile.h prof_err.h
555unix.o: $(srcdir)/unix.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/e2fsck.h \
556 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
557 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
558 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
559 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
560 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
561 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h $(top_srcdir)/version.h
562dirinfo.o: $(srcdir)/dirinfo.c $(srcdir)/e2fsck.h \
563 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
564 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
565 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
566 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
567 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
568 $(srcdir)/profile.h prof_err.h
569dx_dirinfo.o: $(srcdir)/dx_dirinfo.c $(srcdir)/e2fsck.h \
570 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
571 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
572 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
573 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
574 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
575 $(srcdir)/profile.h prof_err.h
576ehandler.o: $(srcdir)/ehandler.c $(srcdir)/e2fsck.h \
577 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
578 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
579 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
580 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
581 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
582 $(srcdir)/profile.h prof_err.h
583problem.o: $(srcdir)/problem.c $(srcdir)/e2fsck.h \
584 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
585 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
586 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
587 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
588 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
589 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h $(srcdir)/problemP.h
590message.o: $(srcdir)/message.c $(srcdir)/e2fsck.h \
591 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
592 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
593 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
594 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
595 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
596 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
597swapfs.o: $(srcdir)/swapfs.c $(top_srcdir)/lib/et/com_err.h \
598 $(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
599 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
600 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
601 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
602 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
603 $(srcdir)/profile.h prof_err.h
604ea_refcount.o: $(srcdir)/ea_refcount.c $(srcdir)/e2fsck.h \
605 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
606 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
607 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
608 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
609 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
610 $(srcdir)/profile.h prof_err.h
611rehash.o: $(srcdir)/rehash.c $(srcdir)/e2fsck.h \
612 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
613 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
617 $(srcdir)/profile.h prof_err.h $(srcdir)/problem.h
618region.o: $(srcdir)/region.c $(srcdir)/e2fsck.h \
619 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
620 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
621 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
622 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
623 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
624 $(srcdir)/profile.h prof_err.h
625profile.o: $(srcdir)/profile.c $(srcdir)/profile.h prof_err.h \
626 $(top_srcdir)/lib/et/com_err.h
627prof_err.o: prof_err.c
628