]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - e2fsck/Makefile.in
Many files:
[thirdparty/e2fsprogs.git] / e2fsck / Makefile.in
CommitLineData
50e1e10f
TT
1#
2# Makefile for e2fsck
3#
4
5srcdir = @srcdir@
6top_srcdir = @top_srcdir@
7VPATH = @srcdir@
8top_builddir = ..
1e3472c5 9my_dir = e2fsck
50e1e10f
TT
10INSTALL = @INSTALL@
11LDFLAG_STATIC = @LDFLAG_STATIC@
12
13@MCONFIG@
14
5be8dc21 15PROGS= e2fsck
50e1e10f 16MANPAGES= e2fsck.8
8bf191e8 17XTRA_CFLAGS= -DRESOURCE_TRACK
50e1e10f 18
1e3472c5 19LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(LIBUUID)
894edb2e 20DEPLIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(DEPLIBUUID)
62c06f79 21
1e3472c5 22STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) $(STATIC_LIBUUID)
894edb2e 23STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR) $(DEPSTATIC_LIBUUID)
62c06f79 24
1e3472c5 25PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) $(PROFILED_LIBUUID)
894edb2e
TT
26PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR) \
27 $(DEPPROFILED_LIBUUID)
50e1e10f
TT
28
29.c.o:
74becf3c 30 $(CC) -c $(ALL_CFLAGS) $< -o $@
21c84b71 31@PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
50e1e10f
TT
32
33#
34# Flags for using Checker
35# Note: The optimization flags must include -g
36#
37#MCHECK= -checker
62c06f79
TT
38#LIBS= $(LIBCOM_ERR) $(LIB_EXT2FS) $(CHECKLIB)
39#DEPLIBS= $(LIBCOM_ERR) $(LIB_EXT2FS)
50e1e10f
TT
40#CHECKLIB= /usr/lib/libchecker.o
41
42#
43# Flags for doing mtrace --- uncomment to produce mtracing e2fsck
44# Note: The optimization flags must include -g
45#
46#MTRACE= -DMTRACE
47#MTRACE_OBJ= mtrace.o
48#MTRACE_SRC= $(srcdir)/mtrace.c
49#OPT= -g
50
51#
52# Flags for doing mcheck --- uncomment to produce mchecking e2fsck
53# Note: The optimization flags must include -g
54#
55#MCHECK= -DMCHECK
56
1b6bf175 57OBJS= unix.o e2fsck.o super.o pass1.o pass1b.o pass2.o pass3.o pass4.o \
17390c04 58 pass5.o journal.o swapfs.o badblocks.o util.o dirinfo.o ehandler.o \
3b5386dc 59 problem.o message.o recovery.o $(MTRACE_OBJ)
50e1e10f 60
1b6bf175
TT
61PROFILED_OBJS= profiled/unix.o profiled/e2fsck.o profiled/super.o \
62 profiled/pass1.o profiled/pass1b.o \
62c06f79 63 profiled/pass2.o profiled/pass3.o profiled/pass4.o profiled/pass5.o \
17390c04
TT
64 profiled/journal.o profiled/badblocks.o profiled/util.o \
65 profiled/dirinfo.o profiled/ehandler.o profiled/message.o \
3b5386dc 66 profiled/problem.o profiled/swapfs.o profiled/recovery.o
62c06f79 67
50e1e10f 68SRCS= $(srcdir)/e2fsck.c \
1b6bf175 69 $(srcdir)/super.c \
50e1e10f
TT
70 $(srcdir)/pass1.c \
71 $(srcdir)/pass1b.c \
72 $(srcdir)/pass2.c \
73 $(srcdir)/pass3.c \
74 $(srcdir)/pass4.c \
75 $(srcdir)/pass5.c \
17390c04 76 $(srcdir)/journal.c \
3b5386dc 77 $(srcdir)/recovery.c \
50e1e10f
TT
78 $(srcdir)/badblocks.c \
79 $(srcdir)/util.c \
1b6bf175 80 $(srcdir)/unix.c \
50e1e10f
TT
81 $(srcdir)/dirinfo.c \
82 $(srcdir)/ehandler.c \
21c84b71 83 $(srcdir)/problem.c \
50e1e10f
TT
84 $(MTRACE_SRC)
85
1e3472c5 86all:: profiled $(PROGS) e2fsck.static e2fsck.shared $(MANPAGES)
28ffafb0 87 @sync
50e1e10f 88
62c06f79
TT
89@PROFILE_CMT@all:: e2fsck.profiled
90
91e2fsck: e2fsck.@E2FSCK_TYPE@
92 $(CP) e2fsck.@E2FSCK_TYPE@ e2fsck
93
94e2fsck.static: $(OBJS) $(STATIC_DEPLIBS)
95 $(LD) $(ALL_LDFLAGS) $(LDFLAG_STATIC) -o e2fsck.static $(OBJS) \
96 $(STATIC_LIBS)
97
98e2fsck.shared: $(OBJS) $(DEPLIBS)
99 $(LD) $(ALL_LDFLAGS) -o e2fsck.shared $(OBJS) $(LIBS)
100
21c84b71
TT
101e2fsck.profiled: $(PROFILED_OBJS) $(PROFILED_DEPLIBS)
102 $(LD) $(ALL_LDFLAGS) -g -pg -o e2fsck.profiled $(PROFILED_OBJS) \
62c06f79 103 $(PROFILED_LIBS)
50e1e10f
TT
104
105extend: extend.o
74becf3c 106 $(LD) $(ALL_LDFLAGS) -o extend extend.o $(CHECKLIB)
50e1e10f
TT
107
108flushb: flushb.o
74becf3c 109 $(LD) $(ALL_LDFLAGS) -o flushb flushb.o $(CHECKLIB)
50e1e10f
TT
110
111iscan: iscan.o util.o
74becf3c 112 $(LD) $(ALL_LDFLAGS) -o iscan iscan.o util.o ehandler.o $(LIBS)
50e1e10f 113
62c06f79
TT
114profiled:
115 mkdir profiled
116
44339bdf 117e2fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/e2fsck.8.in
62c06f79 118 $(SUBSTITUTE) $(srcdir)/e2fsck.8.in e2fsck.8
50e1e10f
TT
119
120installdirs:
7e44f242
TT
121 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \
122 $(DESTDIR)$(man8dir)
50e1e10f
TT
123
124install: $(PROGS) $(MANPAGES) installdirs
125 for i in $(PROGS); do \
7e44f242
TT
126 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
127 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
50e1e10f 128 done
7e44f242
TT
129 $(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
130 $(DESTDIR)$(root_sbindir)/fsck.ext2
1d279218
TT
131 $(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
132 $(DESTDIR)$(root_sbindir)/fsck.ext3
50e1e10f 133 for i in $(MANPAGES); do \
74becf3c 134 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
50e1e10f 135 done
74becf3c 136
50e1e10f 137uninstall:
21c84b71 138 for i in $(PROGS); do \
7e44f242 139 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
21c84b71 140 done
1d279218
TT
141 $(RM) -f $(DESTDIR)$(root_sbindir)/fsck.ext2 \
142 $(DESTDIR)$(root_sbindir)/fsck.ext3
50e1e10f 143 for i in $(MANPAGES); do \
7e44f242 144 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
50e1e10f
TT
145 done
146
147clean:
62c06f79 148 $(RM) -f $(PROGS) \#* *\# *.s *.o *.a *~ core e2fsck.static \
3ac9f0ef 149 e2fsck.shared e2fsck.profiled flushb e2fsck.8
62c06f79
TT
150 $(RM) -rf profiled
151
50e1e10f
TT
152mostlyclean: clean
153distclean: clean
5c36a2f8 154 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
50e1e10f
TT
155
156# +++ Dependency line eater +++
157#
158# Makefile dependencies follow. This must be the last section in
159# the Makefile.in file
160#
80bfaa3e
TT
161e2fsck.o: $(srcdir)/e2fsck.c $(srcdir)/e2fsck.h \
162 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
163 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
164 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
165 $(srcdir)/problem.h
08b21301 166super.o: $(srcdir)/super.c $(top_srcdir)/lib/uuid/uuid.h $(srcdir)/e2fsck.h \
80bfaa3e
TT
167 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
168 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
169 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
170 $(srcdir)/problem.h
171pass1.o: $(srcdir)/pass1.c $(srcdir)/e2fsck.h \
172 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
173 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
174 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
175 $(srcdir)/problem.h
a29f4d30 176pass1b.o: $(srcdir)/pass1b.c $(top_srcdir)/lib/et/com_err.h \
80bfaa3e
TT
177 $(srcdir)/e2fsck.h $(top_srcdir)/include/linux/ext2_fs.h \
178 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
179 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
180 $(srcdir)/problem.h
5a679c8f 181pass2.o: $(srcdir)/pass2.c $(srcdir)/e2fsck.h \
80bfaa3e
TT
182 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
183 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
184 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
185 $(srcdir)/problem.h
08b21301 186pass3.o: $(srcdir)/pass3.c $(srcdir)/e2fsck.h \
80bfaa3e
TT
187 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
188 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
189 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
190 $(srcdir)/problem.h
62c06f79 191pass4.o: $(srcdir)/pass4.c $(srcdir)/e2fsck.h \
80bfaa3e
TT
192 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
193 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
194 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
195 $(srcdir)/problem.h
08b21301 196pass5.o: $(srcdir)/pass5.c $(srcdir)/e2fsck.h \
80bfaa3e
TT
197 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
198 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
199 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
200 $(srcdir)/problem.h
201journal.o: $(srcdir)/journal.c $(srcdir)/jfs.h $(srcdir)/jfs_compat.h \
202 $(srcdir)/e2fsck.h $(top_srcdir)/include/linux/ext2_fs.h \
08b21301 203 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
d40259fd 204 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
80bfaa3e
TT
205 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h \
206 $(top_srcdir)/lib/uuid/uuid.h
207recovery.o: $(srcdir)/recovery.c $(srcdir)/jfs.h $(srcdir)/jfs_compat.h \
208 $(srcdir)/e2fsck.h $(top_srcdir)/include/linux/ext2_fs.h \
3b5386dc
TT
209 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
210 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
a29f4d30 211 $(top_srcdir)/lib/ext2fs/bitops.h
80bfaa3e
TT
212badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
213 $(srcdir)/e2fsck.h $(top_srcdir)/include/linux/ext2_fs.h \
214 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
215 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
216util.o: $(srcdir)/util.c $(srcdir)/e2fsck.h \
217 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
5a679c8f
TT
218 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
219 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
220unix.o: $(srcdir)/unix.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/e2fsck.h \
80bfaa3e 221 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
d40259fd 222 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
80bfaa3e
TT
223 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h $(srcdir)/../version.h
224dirinfo.o: $(srcdir)/dirinfo.c $(srcdir)/e2fsck.h \
225 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
226 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
227 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
a29f4d30 228ehandler.o: $(srcdir)/ehandler.c $(srcdir)/e2fsck.h \
80bfaa3e
TT
229 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
230 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
231 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
a29f4d30 232problem.o: $(srcdir)/problem.c $(srcdir)/e2fsck.h \
80bfaa3e
TT
233 $(top_srcdir)/include/linux/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
234 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
235 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
236 $(srcdir)/problem.h $(srcdir)/problemP.h