]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - lib/ext2fs/Makefile.in
ChangeLog, .del-io.h~72680822, irel_ma.c, llseek.c, rw_bitmaps.c:
[thirdparty/e2fsprogs.git] / lib / ext2fs / Makefile.in
CommitLineData
50e1e10f
TT
1srcdir = @srcdir@
2top_srcdir = @top_srcdir@
3VPATH = @srcdir@
4top_builddir = ../..
1e3472c5 5my_dir = lib/ext2fs
50e1e10f
TT
6INSTALL = @INSTALL@
7
8@MCONFIG@
9
10OBJS= ext2_err.o \
11 alloc.o \
21c84b71 12 alloc_tables.o \
50e1e10f 13 badblocks.o \
21c84b71 14 bb_compat.o \
50e1e10f
TT
15 bb_inode.o \
16 bitmaps.o \
17 bitops.o \
18 block.o \
1e1da29f 19 bmove.o \
21c84b71 20 brel_ma.o \
50e1e10f
TT
21 check_desc.o \
22 closefs.o \
23 cmp_bitmaps.o \
21c84b71
TT
24 dblist.o \
25 dblist_dir.o \
50e1e10f 26 dirblock.o \
21c84b71 27 dir_iterate.o \
a29f4d30 28 dupfs.o \
50e1e10f
TT
29 expanddir.o \
30 freefs.o \
31 get_pathname.o \
32 getsize.o \
21c84b71 33 icount.o \
50e1e10f
TT
34 initialize.o \
35 inline.o \
36 inode.o \
21c84b71 37 irel_ma.o \
50e1e10f
TT
38 ismounted.o \
39 link.o \
40 llseek.o \
21c84b71 41 lookup.o \
50e1e10f
TT
42 mkdir.o \
43 namei.o \
1e3472c5 44 native.o \
50e1e10f
TT
45 newdir.o \
46 openfs.o \
47 read_bb.o \
48 read_bb_file.o \
21c84b71 49 rs_bitmap.o \
50e1e10f
TT
50 rw_bitmaps.o \
51 swapfs.o \
21c84b71
TT
52 test_io.o \
53 unix_io.o \
54 unlink.o \
521e3685
TT
55 valid_blk.o \
56 version.o
50e1e10f
TT
57
58SRCS= ext2_err.c \
59 $(srcdir)/alloc.c \
21c84b71 60 $(srcdir)/alloc_tables.c \
50e1e10f 61 $(srcdir)/badblocks.c \
21c84b71 62 $(srcdir)/bb_compat.c \
50e1e10f
TT
63 $(srcdir)/bb_inode.c \
64 $(srcdir)/bitmaps.c \
65 $(srcdir)/bitops.c \
66 $(srcdir)/block.c \
21c84b71 67 $(srcdir)/brel_ma.c \
1e1da29f 68 $(srcdir)/bmove.c \
50e1e10f
TT
69 $(srcdir)/check_desc.c \
70 $(srcdir)/closefs.c \
71 $(srcdir)/cmp_bitmaps.c \
21c84b71
TT
72 $(srcdir)/dblist.c \
73 $(srcdir)/dblist_dir.c \
50e1e10f 74 $(srcdir)/dirblock.c \
21c84b71 75 $(srcdir)/dir_iterate.c \
a29f4d30 76 $(srcdir)/dupfs.c \
50e1e10f
TT
77 $(srcdir)/expanddir.c \
78 $(srcdir)/freefs.c \
79 $(srcdir)/get_pathname.c \
80 $(srcdir)/getsize.c \
21c84b71 81 $(srcdir)/icount.c \
50e1e10f
TT
82 $(srcdir)/initialize.c \
83 $(srcdir)/inline.c \
84 $(srcdir)/inode.c \
21c84b71 85 $(srcdir)/irel_ma.c \
50e1e10f
TT
86 $(srcdir)/ismounted.c \
87 $(srcdir)/link.c \
88 $(srcdir)/llseek.c \
21c84b71 89 $(srcdir)/lookup.c \
50e1e10f
TT
90 $(srcdir)/mkdir.c \
91 $(srcdir)/namei.c \
1e3472c5 92 $(srcdir)/native.c \
50e1e10f
TT
93 $(srcdir)/newdir.c \
94 $(srcdir)/openfs.c \
95 $(srcdir)/read_bb.c \
96 $(srcdir)/read_bb_file.c \
21c84b71 97 $(srcdir)/rs_bitmap.c \
50e1e10f
TT
98 $(srcdir)/rw_bitmaps.c \
99 $(srcdir)/swapfs.c \
21c84b71
TT
100 $(srcdir)/test_io.c \
101 $(srcdir)/unix_io.c \
102 $(srcdir)/unlink.c \
521e3685
TT
103 $(srcdir)/valid_blk.c \
104 $(srcdir)/version.c
50e1e10f
TT
105
106HFILES= bitops.h ext2fs.h io.h
107
108LIBRARY= libext2fs
109LIBDIR= ext2fs
110
111DLL_ADDRESS = 0x66900000
112DLL_JUMPSIZE = 0x1000
113DLL_GOTSIZE = 0x1000
521e3685 114DLL_VERSION = 1.2
50e1e10f
TT
115DLL_IMAGE = libe2fs
116DLL_STUB = libext2fs
117DLL_LIBS = -L../.. -lcom_err
118DLL_MYDIR = ext2fs
119DLL_INSTALL_DIR = $(libdir)
120
521e3685 121ELF_VERSION = 2.3
297f47a1 122ELF_SO_VERSION = 2
50e1e10f
TT
123ELF_IMAGE = libext2fs
124ELF_MYDIR = ext2fs
125ELF_INSTALL_DIR = $(libdir)
21c84b71 126ELF_OTHER_LIBS = -lc -L../.. -lcom_err
50e1e10f 127
521e3685 128BSDLIB_VERSION = 2.1
50e1e10f
TT
129BSDLIB_IMAGE = libext2fs
130BSDLIB_MYDIR = ext2fs
131BSDLIB_INSTALL_DIR = $(libdir)
132
133@MAKEFILE_LIBRARY@
134@MAKEFILE_DLL@
135@MAKEFILE_ELF@
136@MAKEFILE_BSDLIB@
137@MAKEFILE_PROFILE@
138@MAKEFILE_CHECKER@
139
140.c.o:
74becf3c 141 $(CC) $(ALL_CFLAGS) -c $< -o $@
21c84b71 142@PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
74becf3c
TT
143@CHECKER_CMT@ $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
144@DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
50e1e10f 145@DLL_CMT@ -o jump/$*.o -c $<)
74becf3c
TT
146@ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
147@BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
50e1e10f
TT
148
149COMPILE_ET=../et/compile_et
150
151DISTFILES= Makefile *.c *.h image
152
62c06f79
TT
153ext2_err.et: $(SUBSTITUTE) $(srcdir)/ext2_err.et.in
154 -$(CHMOD) +x $(SUBSTITUTE)
155 $(SUBSTITUTE) $(srcdir)/ext2_err.et.in ext2_err.et
156
74becf3c
TT
157ext2_err.c ext2_err.h: ext2_err.et
158 $(COMPILE_ET) ext2_err.et
50e1e10f 159
21c84b71
TT
160tst_badblocks: tst_badblocks.o badblocks.o
161 $(CC) -o tst_badblocks tst_badblocks.o badblocks.o $(LIBCOM_ERR)
162
163tst_iscan: tst_iscan.o inode.o $(STATIC_LIBEXT2FS)
164 $(CC) -o tst_iscan tst_iscan.o inode.o $(STATIC_LIBEXT2FS) \
165 $(LIBCOM_ERR)
166
167check:: tst_badblocks tst_iscan
168 ./tst_badblocks
169 ./tst_iscan
170
50e1e10f
TT
171installdirs::
172 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \
173 $(DESTDIR)$(includedir)/ext2fs
174
175install:: all $(HFILES) installdirs
176 $(INSTALL_DATA) libext2fs.a $(DESTDIR)$(ulibdir)/libext2fs.a
177 $(CHMOD) 644 $(DESTDIR)$(ulibdir)/libext2fs.a
178 -$(RANLIB) $(DESTDIR)$(ulibdir)/libext2fs.a
179 $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libext2fs.a
180 for i in $(HFILES); do \
181 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/ext2fs/$$i; \
182 done
183 $(INSTALL_DATA) ext2_err.h $(DESTDIR)$(includedir)/ext2fs/ext2_err.h
184
185uninstall::
186 $(RM) -f $(ulibdir)/libext2fs.a
187 $(RM) -rf $(includedir)/ext2fs
188
189clean::
190 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* \
62c06f79 191 ext2_err.et ext2_err.c ext2_err.h \
50e1e10f
TT
192 ../libext2fs.a ../libext2fs_p.a ../libext2fs_chk.a
193
194mostlyclean:: clean
195distclean:: clean
196 $(RM) -f .depend ext2_err.c ext2_err.h Makefile
197
198# +++ Dependency line eater +++
199#
200# Makefile dependencies follow. This must be the last section in
201# the Makefile.in file
202#
203ext2_err.o: ext2_err.c
bc210074 204alloc.o: $(srcdir)/alloc.c \
21c84b71 205 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
bc210074
TT
206 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
207 $(srcdir)/bitops.h
208alloc_tables.o: $(srcdir)/alloc_tables.c \
209 $(srcdir)/ext2fs.h \
21c84b71 210 $(top_srcdir)/lib/et/com_err.h \
bc210074 211 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
21c84b71 212 $(srcdir)/bitops.h
bc210074
TT
213badblocks.o: $(srcdir)/badblocks.c \
214 $(srcdir)/ext2fsP.h \
a29f4d30 215 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
21c84b71
TT
216 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
217 $(srcdir)/bitops.h
bc210074
TT
218bb_compat.o: $(srcdir)/bb_compat.c \
219 $(srcdir)/ext2fsP.h \
21c84b71
TT
220 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
221 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
222 $(srcdir)/bitops.h
bc210074
TT
223bb_inode.o: $(srcdir)/bb_inode.c \
224 $(srcdir)/ext2fs.h \
225 $(top_srcdir)/lib/et/com_err.h \
226 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
227 $(srcdir)/bitops.h
228bitmaps.o: $(srcdir)/bitmaps.c \
229 $(srcdir)/ext2fs.h \
230 $(top_srcdir)/lib/et/com_err.h \
231 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
232 $(srcdir)/bitops.h
233bitops.o: $(srcdir)/bitops.c \
234 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
235 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
236 $(srcdir)/bitops.h
237block.o: $(srcdir)/block.c \
238 $(srcdir)/ext2fs.h \
239 $(top_srcdir)/lib/et/com_err.h \
240 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
241 $(srcdir)/bitops.h
242brel_ma.o: $(srcdir)/brel_ma.c \
243 $(srcdir)/ext2fs.h \
244 $(top_srcdir)/lib/et/com_err.h \
245 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
246 $(srcdir)/bitops.h $(srcdir)/brel.h
247bmove.o: $(srcdir)/bmove.c \
248 $(srcdir)/ext2fs.h \
249 $(top_srcdir)/lib/et/com_err.h \
250 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
251 $(srcdir)/bitops.h
252check_desc.o: $(srcdir)/check_desc.c \
253 $(srcdir)/ext2fs.h \
254 $(top_srcdir)/lib/et/com_err.h \
255 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
256 $(srcdir)/bitops.h
257closefs.o: $(srcdir)/closefs.c \
258 $(srcdir)/ext2fsP.h \
259 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
260 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
261 $(srcdir)/bitops.h
262cmp_bitmaps.o: $(srcdir)/cmp_bitmaps.c \
263 $(srcdir)/ext2fs.h \
264 $(top_srcdir)/lib/et/com_err.h \
265 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
266 $(srcdir)/bitops.h
267dblist.o: $(srcdir)/dblist.c \
268 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
269 $(top_srcdir)/lib/et/com_err.h \
270 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
271 $(srcdir)/bitops.h
272dblist_dir.o: $(srcdir)/dblist_dir.c \
273 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
274 $(top_srcdir)/lib/et/com_err.h \
275 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
276 $(srcdir)/bitops.h
277dirblock.o: $(srcdir)/dirblock.c \
278 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
279 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
280 $(srcdir)/bitops.h
281dir_iterate.o: $(srcdir)/dir_iterate.c \
282 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
283 $(top_srcdir)/lib/et/com_err.h \
284 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
285 $(srcdir)/bitops.h
286dupfs.o: $(srcdir)/dupfs.c \
287 $(srcdir)/ext2fsP.h \
288 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
289 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
290 $(srcdir)/bitops.h
291expanddir.o: $(srcdir)/expanddir.c \
292 $(srcdir)/ext2fs.h \
293 $(top_srcdir)/lib/et/com_err.h \
294 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
295 $(srcdir)/bitops.h
296freefs.o: $(srcdir)/freefs.c \
297 $(srcdir)/ext2fsP.h \
298 $(srcdir)/ext2fs.h \
299 $(top_srcdir)/lib/et/com_err.h \
300 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
301 $(srcdir)/bitops.h
302get_pathname.o: $(srcdir)/get_pathname.c \
303 $(srcdir)/ext2fs.h \
304 $(top_srcdir)/lib/et/com_err.h \
305 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
306 $(srcdir)/bitops.h
307getsize.o: $(srcdir)/getsize.c \
308 $(srcdir)/ext2fs.h \
309 $(top_srcdir)/lib/et/com_err.h \
310 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
311 $(srcdir)/bitops.h
312icount.o: $(srcdir)/icount.c $(top_srcdir)/lib/et/com_err.h \
313 $(srcdir)/ext2fs.h \
314 $(srcdir)/io.h \
a29f4d30 315 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
bc210074
TT
316initialize.o: $(srcdir)/initialize.c \
317 $(srcdir)/ext2fs.h \
318 $(top_srcdir)/lib/et/com_err.h \
319 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
320 $(srcdir)/bitops.h
321inline.o: $(srcdir)/inline.c \
322 $(srcdir)/ext2fs.h \
323 $(top_srcdir)/lib/et/com_err.h \
324 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
325 $(srcdir)/bitops.h
326inode.o: $(srcdir)/inode.c \
327 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
328 $(top_srcdir)/lib/et/com_err.h \
329 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
330 $(srcdir)/bitops.h
331irel_ma.o: $(srcdir)/irel_ma.c \
332 $(srcdir)/ext2fs.h \
333 $(top_srcdir)/lib/et/com_err.h \
334 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
335 $(srcdir)/bitops.h $(srcdir)/irel.h
336ismounted.o: $(srcdir)/ismounted.c \
337 $(srcdir)/ext2fs.h \
338 $(top_srcdir)/lib/et/com_err.h \
339 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
340 $(srcdir)/bitops.h
341link.o: $(srcdir)/link.c \
342 $(srcdir)/ext2fs.h \
343 $(top_srcdir)/lib/et/com_err.h \
344 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
345 $(srcdir)/bitops.h
346llseek.o: $(srcdir)/llseek.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h
2ecc6fef 347lookup.o: $(srcdir)/lookup.c $(srcdir)/ext2fs.h \
bc210074
TT
348 $(top_srcdir)/lib/et/com_err.h \
349 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
350mkdir.o: $(srcdir)/mkdir.c $(srcdir)/ext2fs.h \
351 $(top_srcdir)/lib/et/com_err.h \
2ecc6fef
TT
352 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
353namei.o: $(srcdir)/namei.c $(srcdir)/ext2fs.h \
bc210074
TT
354 $(top_srcdir)/lib/et/com_err.h \
355 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 356native.o: $(srcdir)/native.c $(srcdir)/ext2fs.h \
bc210074
TT
357 $(top_srcdir)/lib/et/com_err.h \
358 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
359 $(srcdir)/bitops.h
2ecc6fef 360newdir.o: $(srcdir)/newdir.c $(srcdir)/ext2fs.h \
bc210074
TT
361 $(top_srcdir)/lib/et/com_err.h \
362 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 363openfs.o: $(srcdir)/openfs.c $(srcdir)/ext2fs.h \
bc210074
TT
364 $(top_srcdir)/lib/et/com_err.h \
365 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 366read_bb.o: $(srcdir)/read_bb.c $(srcdir)/ext2fs.h \
a29f4d30
TT
367 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
368 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 369read_bb_file.o: $(srcdir)/read_bb_file.c $(srcdir)/ext2fs.h \
bc210074
TT
370 $(top_srcdir)/lib/et/com_err.h \
371 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 372rs_bitmap.o: $(srcdir)/rs_bitmap.c $(srcdir)/ext2fs.h \
bc210074
TT
373 $(top_srcdir)/lib/et/com_err.h \
374 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 375rw_bitmaps.o: $(srcdir)/rw_bitmaps.c $(srcdir)/ext2fs.h \
bc210074
TT
376 $(top_srcdir)/lib/et/com_err.h \
377 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 378swapfs.o: $(srcdir)/swapfs.c $(srcdir)/ext2fs.h \
a29f4d30
TT
379 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
380 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
2ecc6fef 381test_io.o: $(srcdir)/test_io.c $(top_srcdir)/lib/et/com_err.h \
62c06f79 382 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/io.h
2ecc6fef 383unix_io.o: $(srcdir)/unix_io.c $(top_srcdir)/lib/et/com_err.h \
21c84b71 384 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/io.h
2ecc6fef 385unlink.o: $(srcdir)/unlink.c $(srcdir)/ext2fs.h \
bc210074
TT
386 $(top_srcdir)/lib/et/com_err.h \
387 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
388 $(srcdir)/bitops.h
389valid_blk.o: $(srcdir)/valid_blk.c \
390 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
391 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
392 $(srcdir)/bitops.h
2ecc6fef 393version.o: $(srcdir)/version.c $(top_srcdir)/lib/et/com_err.h \
bc210074
TT
394 $(srcdir)/ext2fs.h $(srcdir)/io.h \
395 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h \
396 $(srcdir)/../../version.h
397