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