]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/Makefile.in
resolve.c (blkid_get_tag_value): Rename function (used to be
[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
cdf186e4
TT
14@IMAGER_CMT@E2IMAGE_PROG= e2image
15@IMAGER_CMT@E2IMAGE_MAN= e2image.8
16
e12f2ae7 17SPROGS= mke2fs badblocks tune2fs dumpe2fs blkid $(E2IMAGE_PROG) @FSCK_PROG@
a418d3ad 18USPROGS= mklost+found
1e3472c5 19SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
e12f2ae7 20 e2label.8 findfs.8 blkid.8 $(E2IMAGE_MAN) @FSCK_MAN@
a418d3ad 21
5d45d803
TT
22UPROGS= chattr lsattr uuidgen
23UMANPAGES= chattr.1 lsattr.1 uuidgen.1
a418d3ad 24
2d15576d 25TUNE2FS_OBJS= tune2fs.o util.o get_device_by_label.o
a418d3ad 26MKLPF_OBJS= mklost+found.o
2d15576d 27MKE2FS_OBJS= mke2fs.o util.o get_device_by_label.o
a418d3ad
TT
28CHATTR_OBJS= chattr.o
29LSATTR_OBJS= lsattr.o
5d45d803 30UUIDGEN_OBJS= uuidgen.o
a418d3ad
TT
31DUMPE2FS_OBJS= dumpe2fs.o
32BADBLOCKS_OBJS= badblocks.o
72ed1264 33E2IMAGE_OBJS= e2image.o
da376f5a 34FSCK_OBJS= fsck.o get_device_by_label.o base_device.o fstype.o
e12f2ae7 35BLKID_OBJS= blkid.o
a418d3ad
TT
36
37SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
38 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
63985320 39 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
e12f2ae7 40 $(srcdir)/uuidgen.c $(srcdir)/fstype.c $(srcdir)/blkid.c
a418d3ad 41
62c06f79
TT
42LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
43DEPLIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
44
45STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
46STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
47
e12f2ae7
TT
48LIBS_BLKID= $(LIBBLKID) $(LIBUUID)
49DEPLIBS_BLKID= $(LIBBLKID) $(LIBUUID)
50
62c06f79
TT
51LIBS_E2P= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR)
52DEPLIBS_E2P= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR)
a418d3ad
TT
53
54.c.o:
74becf3c 55 $(CC) -c $(ALL_CFLAGS) $< -o $@
a418d3ad 56
44339bdf 57all:: $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES)
a418d3ad 58
b89122fc
TT
59findsuper: findsuper.o
60 $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o
61
3cb7784f 62tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS_E2P) $(DEPLIBUUID)
1e3472c5 63 $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS_E2P) $(LIBUUID)
a418d3ad 64
e12f2ae7
TT
65blkid: $(BLKID_OBJS) $(DEPLIBS_E2P) $(DEPLIBS_BLKID)
66 $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBS_E2P) $(LIBS_BLKID)
67
72ed1264
TT
68e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
69 $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS)
70
793e27df 71base_device: base_device.c
7d4343d0
TT
72 $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
73 -DDEBUG -o base_device
793e27df 74
5599c2fa
TT
75fstype: fstype.c
76 $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -DTEST_PROGRAM $(srcdir)/fstype.c \
77 get_device_by_label.o $(LIBUUID) $(LIBS) -o fstype
78
793e27df
TT
79check:: base_device
80 ./base_device < $(srcdir)/base_device.tst > base_device.out
81 cmp $(srcdir)/base_device.tst base_device.out
82
a418d3ad 83mklost+found: $(MKLPF_OBJS)
74becf3c 84 $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS)
a418d3ad 85
3cb7784f 86mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBUUID)
896938d5 87 $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBE2P) $(LIBUUID)
a418d3ad 88
3cb7784f 89mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID)
62c06f79 90 $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
896938d5 91 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBUUID)
1e3472c5
TT
92
93resize2fs: resize2fs.o $(DEPLIBS)
94 $(CC) $(ALL_LDFLAGS) -o resize2fs resize2fs.o $(LIBS)
a418d3ad 95
62c06f79
TT
96chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
97 $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P)
a418d3ad 98
62c06f79
TT
99lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
100 $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P)
a418d3ad 101
3cb7784f 102uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
5d45d803
TT
103 $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID)
104
16ed5b3a
TT
105dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS_E2P) $(DEPLIBUUID)
106 $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS_E2P) $(LIBUUID)
a418d3ad 107
62c06f79 108fsck: $(FSCK_OBJS)
556ccbd6 109 $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBS)
a418d3ad
TT
110
111badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
74becf3c 112 $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS)
a418d3ad 113
44339bdf 114tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
62c06f79
TT
115 $(SUBSTITUTE) $(srcdir)/tune2fs.8.in tune2fs.8
116
44339bdf 117mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
62c06f79
TT
118 $(SUBSTITUTE) $(srcdir)/mklost+found.8.in mklost+found.8
119
44339bdf 120mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
62c06f79
TT
121 $(SUBSTITUTE) $(srcdir)/mke2fs.8.in mke2fs.8
122
a789d840
TT
123e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
124 $(SUBSTITUTE) $(srcdir)/e2label.8.in e2label.8
125
118d7dac
TT
126findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
127 $(SUBSTITUTE) $(srcdir)/findfs.8.in findfs.8
128
348e43dc
TT
129e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
130 $(SUBSTITUTE) $(srcdir)/e2image.8.in e2image.8
131
44339bdf 132dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
62c06f79
TT
133 $(SUBSTITUTE) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
134
44339bdf 135badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
62c06f79
TT
136 $(SUBSTITUTE) $(srcdir)/badblocks.8.in badblocks.8
137
44339bdf 138fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
62c06f79
TT
139 $(SUBSTITUTE) $(srcdir)/fsck.8.in fsck.8
140
e12f2ae7
TT
141blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
142 $(SUBSTITUTE) $(srcdir)/blkid.8.in blkid.8
143
44339bdf 144chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
62c06f79
TT
145 $(SUBSTITUTE) $(srcdir)/chattr.1.in chattr.1
146
44339bdf 147lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
62c06f79
TT
148 $(SUBSTITUTE) $(srcdir)/lsattr.1.in lsattr.1
149
5d45d803
TT
150uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
151 $(SUBSTITUTE) $(srcdir)/uuidgen.1.in uuidgen.1
152
e12f2ae7
TT
153blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
154 $(SUBSTITUTE) $(srcdir)/blkid.1.in blkid.1
155
a418d3ad 156installdirs:
7e44f242
TT
157 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) \
158 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
159 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir)
a418d3ad
TT
160
161install: all $(SMANPAGES) $(UMANPAGES) installdirs
162 for i in $(SPROGS); do \
7e44f242
TT
163 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
164 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
a418d3ad
TT
165 done
166 for i in $(USPROGS); do \
7e44f242
TT
167 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
168 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
a418d3ad 169 done
7e44f242
TT
170 $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
171 $(DESTDIR)$(root_sbindir)/mkfs.ext2
b9f40925
TT
172 $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
173 $(DESTDIR)$(root_sbindir)/mkfs.ext3
83238153
TT
174 $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
175 $(DESTDIR)$(root_sbindir)/e2label
118d7dac
TT
176 $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
177 $(DESTDIR)$(root_sbindir)/findfs
a418d3ad 178 for i in $(UPROGS); do \
7e44f242
TT
179 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
180 $(STRIP) $(DESTDIR)$(bindir)/$$i; \
a418d3ad
TT
181 done
182 for i in $(SMANPAGES); do \
482afc44
TT
183 for j in $(COMPRESS_EXT); do \
184 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
185 done; \
74becf3c 186 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
a418d3ad 187 done
b9f40925
TT
188 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
189 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
190 $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 $(DESTDIR)$(man8dir)/mkfs.ext2.8
191 $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 $(DESTDIR)$(man8dir)/mkfs.ext3.8
a418d3ad 192 for i in $(UMANPAGES); do \
b9f40925 193 $(RM) -f $(DESTDIR)$(man1dir)/$$i.gz; \
74becf3c 194 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
a418d3ad
TT
195 done
196
197uninstall:
198 for i in $(SPROGS); do \
7e44f242 199 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
a418d3ad
TT
200 done
201 for i in $(USPROGS); do \
7e44f242 202 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
a418d3ad 203 done
b9f40925
TT
204 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
205 $(DESTDIR)$(root_sbindir)/mkfs.ext3
a418d3ad 206 for i in $(UPROGS); do \
7e44f242 207 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
a418d3ad
TT
208 done
209 for i in $(SMANPAGES); do \
7e44f242 210 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
a418d3ad 211 done
b9f40925
TT
212 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
213 $(DESTDIR)$(man8dir)/mkfs.ext3.8
a418d3ad 214 for i in $(UMANPAGES); do \
7e44f242 215 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
a418d3ad
TT
216 done
217
218clean:
62c06f79 219 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
793e27df
TT
220 base_device base_device.out mke2fs.static \
221 \#* *.s *.o *.a *~ core
62c06f79 222
a418d3ad
TT
223mostlyclean: clean
224distclean: clean
5c36a2f8 225 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
a418d3ad
TT
226
227# +++ Dependency line eater +++
228#
229# Makefile dependencies follow. This must be the last section in
230# the Makefile.in file
231#
5f0fabe6
TT
232tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
233 $(top_builddir)/lib/ext2fs/ext2_types.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 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
237 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
238 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \
239 $(srcdir)/util.h $(srcdir)/get_device_by_label.h $(top_srcdir)/version.h \
240 $(srcdir)/nls-enable.h
54c637d4 241mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
797f5ef1 242 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
0e8a9560 243 $(srcdir)/nls-enable.h
797f5ef1
TT
244mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
245 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
246 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
247 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
248 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
249 $(srcdir)/util.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
54c637d4 250chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
797f5ef1
TT
251 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
252 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
54c637d4 253lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
797f5ef1
TT
254 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
255 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
5f0fabe6
TT
256dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
257 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
258 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
259 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
260 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
261 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
262 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h \
263 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
62c06f79 264badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
54c637d4 265 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
797f5ef1
TT
266 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
267 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
268 $(srcdir)/nls-enable.h
54c637d4 269fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
0e8a9560 270 $(srcdir)/fsck.h $(srcdir)/get_device_by_label.h
5f0fabe6
TT
271util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
272 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
273 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
274 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
275 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h \
276 $(srcdir)/get_device_by_label.h $(srcdir)/util.h
0e8a9560
TT
277uuidgen.o: $(srcdir)/uuidgen.c $(top_srcdir)/lib/uuid/uuid.h \
278 $(srcdir)/nls-enable.h
19007e51 279fstype.o: $(srcdir)/fstype.c $(srcdir)/fsck.h