2 top_srcdir = @top_srcdir@
60 $(srcdir)/alloc_tables.c \
61 $(srcdir)/badblocks.c \
62 $(srcdir)/bb_compat.c \
63 $(srcdir)/bb_inode.c \
69 $(srcdir)/check_desc.c \
71 $(srcdir)/cmp_bitmaps.c \
73 $(srcdir)/dblist_dir.c \
74 $(srcdir)/dirblock.c \
75 $(srcdir)/dir_iterate.c \
77 $(srcdir)/expanddir.c \
79 $(srcdir)/get_pathname.c \
82 $(srcdir)/initialize.c \
86 $(srcdir)/ismounted.c \
96 $(srcdir)/read_bb_file.c \
97 $(srcdir)/rs_bitmap.c \
98 $(srcdir)/rw_bitmaps.c \
100 $(srcdir)/test_io.c \
101 $(srcdir)/unix_io.c \
103 $(srcdir)/valid_blk.c \
106 HFILES= bitops.h ext2fs.h io.h
111 DLL_ADDRESS = 0x66900000
112 DLL_JUMPSIZE = 0x1000
117 DLL_LIBS = -L../.. -lcom_err
119 DLL_INSTALL_DIR = $(libdir)
123 ELF_IMAGE = libext2fs
125 ELF_INSTALL_DIR = $(libdir)
126 ELF_OTHER_LIBS = -lc -L../.. -lcom_err
129 BSDLIB_IMAGE = libext2fs
130 BSDLIB_MYDIR = ext2fs
131 BSDLIB_INSTALL_DIR = $(libdir)
141 $(CC) $(ALL_CFLAGS) -c $< -o $@
142 @PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
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) \
145 @DLL_CMT@ -o jump/$*.o -c $<)
146 @ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
147 @BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
149 COMPILE_ET=../et/compile_et
151 DISTFILES= Makefile *.c *.h image
153 ext2_err.et: $(DEP_SUBSTITUTE) $(srcdir)/ext2_err.et.in
154 $(SUBSTITUTE) $(srcdir)/ext2_err.et.in ext2_err.et
156 ext2_err.c ext2_err.h: ext2_err.et
157 $(COMPILE_ET) ext2_err.et
159 tst_badblocks: tst_badblocks.o badblocks.o
160 $(CC) -o tst_badblocks tst_badblocks.o badblocks.o $(LIBCOM_ERR)
162 tst_iscan: tst_iscan.o inode.o $(STATIC_LIBEXT2FS)
163 $(CC) -o tst_iscan tst_iscan.o inode.o $(STATIC_LIBEXT2FS) \
166 check:: tst_badblocks tst_iscan
171 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \
172 $(DESTDIR)$(includedir)/ext2fs
174 install:: all $(HFILES) installdirs
175 $(INSTALL_DATA) libext2fs.a $(DESTDIR)$(ulibdir)/libext2fs.a
176 $(CHMOD) 644 $(DESTDIR)$(ulibdir)/libext2fs.a
177 -$(RANLIB) $(DESTDIR)$(ulibdir)/libext2fs.a
178 $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libext2fs.a
179 for i in $(HFILES); do \
180 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/ext2fs/$$i; \
182 $(INSTALL_DATA) ext2_err.h $(DESTDIR)$(includedir)/ext2fs/ext2_err.h
185 $(RM) -f $(ulibdir)/libext2fs.a
186 $(RM) -rf $(includedir)/ext2fs
189 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* \
190 ext2_err.et ext2_err.c ext2_err.h \
191 ../libext2fs.a ../libext2fs_p.a ../libext2fs_chk.a
195 $(RM) -f .depend ext2_err.c ext2_err.h Makefile
197 # +++ Dependency line eater +++
199 # Makefile dependencies follow. This must be the last section in
200 # the Makefile.in file
202 ext2_err.o: ext2_err.c
203 alloc.o: $(srcdir)/alloc.c \
204 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
205 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
207 alloc_tables.o: $(srcdir)/alloc_tables.c \
209 $(top_srcdir)/lib/et/com_err.h \
210 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
212 badblocks.o: $(srcdir)/badblocks.c \
213 $(srcdir)/ext2fsP.h \
214 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
215 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
217 bb_compat.o: $(srcdir)/bb_compat.c \
218 $(srcdir)/ext2fsP.h \
219 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
220 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
222 bb_inode.o: $(srcdir)/bb_inode.c \
224 $(top_srcdir)/lib/et/com_err.h \
225 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
227 bitmaps.o: $(srcdir)/bitmaps.c \
229 $(top_srcdir)/lib/et/com_err.h \
230 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
232 bitops.o: $(srcdir)/bitops.c \
233 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
234 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
236 block.o: $(srcdir)/block.c \
238 $(top_srcdir)/lib/et/com_err.h \
239 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
241 brel_ma.o: $(srcdir)/brel_ma.c \
243 $(top_srcdir)/lib/et/com_err.h \
244 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
245 $(srcdir)/bitops.h $(srcdir)/brel.h
246 bmove.o: $(srcdir)/bmove.c \
248 $(top_srcdir)/lib/et/com_err.h \
249 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
251 check_desc.o: $(srcdir)/check_desc.c \
253 $(top_srcdir)/lib/et/com_err.h \
254 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
256 closefs.o: $(srcdir)/closefs.c \
257 $(srcdir)/ext2fsP.h \
258 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
259 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
261 cmp_bitmaps.o: $(srcdir)/cmp_bitmaps.c \
263 $(top_srcdir)/lib/et/com_err.h \
264 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
266 dblist.o: $(srcdir)/dblist.c \
267 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
268 $(top_srcdir)/lib/et/com_err.h \
269 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
271 dblist_dir.o: $(srcdir)/dblist_dir.c \
272 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
273 $(top_srcdir)/lib/et/com_err.h \
274 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
276 dirblock.o: $(srcdir)/dirblock.c \
277 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
278 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
280 dir_iterate.o: $(srcdir)/dir_iterate.c \
281 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
282 $(top_srcdir)/lib/et/com_err.h \
283 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
285 dupfs.o: $(srcdir)/dupfs.c \
286 $(srcdir)/ext2fsP.h \
287 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
288 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
290 expanddir.o: $(srcdir)/expanddir.c \
292 $(top_srcdir)/lib/et/com_err.h \
293 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
295 freefs.o: $(srcdir)/freefs.c \
296 $(srcdir)/ext2fsP.h \
298 $(top_srcdir)/lib/et/com_err.h \
299 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
301 get_pathname.o: $(srcdir)/get_pathname.c \
303 $(top_srcdir)/lib/et/com_err.h \
304 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
306 getsize.o: $(srcdir)/getsize.c \
308 $(top_srcdir)/lib/et/com_err.h \
309 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
311 icount.o: $(srcdir)/icount.c $(top_srcdir)/lib/et/com_err.h \
314 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
315 initialize.o: $(srcdir)/initialize.c \
317 $(top_srcdir)/lib/et/com_err.h \
318 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
320 inline.o: $(srcdir)/inline.c \
322 $(top_srcdir)/lib/et/com_err.h \
323 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
325 inode.o: $(srcdir)/inode.c \
326 $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \
327 $(top_srcdir)/lib/et/com_err.h \
328 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
330 irel_ma.o: $(srcdir)/irel_ma.c \
332 $(top_srcdir)/lib/et/com_err.h \
333 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
334 $(srcdir)/bitops.h $(srcdir)/irel.h
335 ismounted.o: $(srcdir)/ismounted.c \
337 $(top_srcdir)/lib/et/com_err.h \
338 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
340 link.o: $(srcdir)/link.c \
342 $(top_srcdir)/lib/et/com_err.h \
343 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
345 llseek.o: $(srcdir)/llseek.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h
346 lookup.o: $(srcdir)/lookup.c $(srcdir)/ext2fs.h \
347 $(top_srcdir)/lib/et/com_err.h \
348 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
349 mkdir.o: $(srcdir)/mkdir.c $(srcdir)/ext2fs.h \
350 $(top_srcdir)/lib/et/com_err.h \
351 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
352 namei.o: $(srcdir)/namei.c $(srcdir)/ext2fs.h \
353 $(top_srcdir)/lib/et/com_err.h \
354 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
355 native.o: $(srcdir)/native.c $(srcdir)/ext2fs.h \
356 $(top_srcdir)/lib/et/com_err.h \
357 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
359 newdir.o: $(srcdir)/newdir.c $(srcdir)/ext2fs.h \
360 $(top_srcdir)/lib/et/com_err.h \
361 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
362 openfs.o: $(srcdir)/openfs.c $(srcdir)/ext2fs.h \
363 $(top_srcdir)/lib/et/com_err.h \
364 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
365 read_bb.o: $(srcdir)/read_bb.c $(srcdir)/ext2fs.h \
366 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
367 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
368 read_bb_file.o: $(srcdir)/read_bb_file.c $(srcdir)/ext2fs.h \
369 $(top_srcdir)/lib/et/com_err.h \
370 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
371 rs_bitmap.o: $(srcdir)/rs_bitmap.c $(srcdir)/ext2fs.h \
372 $(top_srcdir)/lib/et/com_err.h \
373 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
374 rw_bitmaps.o: $(srcdir)/rw_bitmaps.c $(srcdir)/ext2fs.h \
375 $(top_srcdir)/lib/et/com_err.h \
376 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
377 swapfs.o: $(srcdir)/swapfs.c $(srcdir)/ext2fs.h \
378 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
379 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
380 test_io.o: $(srcdir)/test_io.c $(top_srcdir)/lib/et/com_err.h \
381 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/io.h
382 unix_io.o: $(srcdir)/unix_io.c $(top_srcdir)/lib/et/com_err.h \
383 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/io.h
384 unlink.o: $(srcdir)/unlink.c $(srcdir)/ext2fs.h \
385 $(top_srcdir)/lib/et/com_err.h \
386 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
388 valid_blk.o: $(srcdir)/valid_blk.c \
389 $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
390 $(srcdir)/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
392 version.o: $(srcdir)/version.c $(top_srcdir)/lib/et/com_err.h \
393 $(srcdir)/ext2fs.h $(srcdir)/io.h \
394 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h \
395 $(srcdir)/../../version.h