| srcdir = @srcdir@ |
| top_srcdir = @top_srcdir@ |
| VPATH = @srcdir@ |
| top_builddir = ../.. |
| my_dir = lib/ext2fs |
| INSTALL = @INSTALL@ |
| |
| @MCONFIG@ |
| |
| OBJS= ext2_err.o \ |
| alloc.o \ |
| alloc_tables.o \ |
| badblocks.o \ |
| bb_compat.o \ |
| bb_inode.o \ |
| bitmaps.o \ |
| bitops.o \ |
| block.o \ |
| bmap.o \ |
| bmove.o \ |
| check_desc.o \ |
| closefs.o \ |
| cmp_bitmaps.o \ |
| dblist.o \ |
| dblist_dir.o \ |
| dirblock.o \ |
| dir_iterate.o \ |
| dupfs.o \ |
| expanddir.o \ |
| fileio.o \ |
| freefs.o \ |
| get_pathname.o \ |
| getsize.o \ |
| icount.o \ |
| initialize.o \ |
| inline.o \ |
| inode.o \ |
| ismounted.o \ |
| link.o \ |
| llseek.o \ |
| lookup.o \ |
| mkdir.o \ |
| namei.o \ |
| native.o \ |
| newdir.o \ |
| openfs.o \ |
| read_bb.o \ |
| read_bb_file.o \ |
| rs_bitmap.o \ |
| rw_bitmaps.o \ |
| swapfs.o \ |
| test_io.o \ |
| unix_io.o \ |
| unlink.o \ |
| valid_blk.o \ |
| version.o |
| |
| SRCS= ext2_err.c \ |
| $(srcdir)/alloc.c \ |
| $(srcdir)/alloc_tables.c \ |
| $(srcdir)/badblocks.c \ |
| $(srcdir)/bb_compat.c \ |
| $(srcdir)/bb_inode.c \ |
| $(srcdir)/bitmaps.c \ |
| $(srcdir)/bitops.c \ |
| $(srcdir)/block.c \ |
| # $(srcdir)/brel_ma.c \ |
| $(srcdir)/bmap.c \ |
| $(srcdir)/bmove.c \ |
| $(srcdir)/check_desc.c \ |
| $(srcdir)/closefs.c \ |
| $(srcdir)/cmp_bitmaps.c \ |
| $(srcdir)/dblist.c \ |
| $(srcdir)/dblist_dir.c \ |
| $(srcdir)/dirblock.c \ |
| $(srcdir)/dir_iterate.c \ |
| $(srcdir)/dupfs.c \ |
| $(srcdir)/expanddir.c \ |
| $(srcdir)/fileio.c \ |
| $(srcdir)/freefs.c \ |
| $(srcdir)/get_pathname.c \ |
| $(srcdir)/getsize.c \ |
| $(srcdir)/icount.c \ |
| $(srcdir)/initialize.c \ |
| $(srcdir)/inline.c \ |
| $(srcdir)/inode.c \ |
| # $(srcdir)/irel_ma.c \ |
| $(srcdir)/ismounted.c \ |
| $(srcdir)/link.c \ |
| $(srcdir)/llseek.c \ |
| $(srcdir)/lookup.c \ |
| $(srcdir)/mkdir.c \ |
| $(srcdir)/namei.c \ |
| $(srcdir)/native.c \ |
| $(srcdir)/newdir.c \ |
| $(srcdir)/openfs.c \ |
| $(srcdir)/read_bb.c \ |
| $(srcdir)/read_bb_file.c \ |
| $(srcdir)/rs_bitmap.c \ |
| $(srcdir)/rw_bitmaps.c \ |
| $(srcdir)/swapfs.c \ |
| $(srcdir)/test_io.c \ |
| $(srcdir)/unix_io.c \ |
| $(srcdir)/unlink.c \ |
| $(srcdir)/valid_blk.c \ |
| $(srcdir)/version.c |
| |
| HFILES= bitops.h ext2fs.h ext2_io.h |
| |
| LIBRARY= libext2fs |
| LIBDIR= ext2fs |
| |
| DLL_ADDRESS = 0x66900000 |
| DLL_JUMPSIZE = 0x1000 |
| DLL_GOTSIZE = 0x1000 |
| DLL_VERSION = 1.2 |
| DLL_IMAGE = libe2fs |
| DLL_STUB = libext2fs |
| DLL_LIBS = -L../.. -lcom_err |
| DLL_MYDIR = ext2fs |
| DLL_INSTALL_DIR = $(libdir) |
| |
| ELF_VERSION = 2.4 |
| ELF_SO_VERSION = 2 |
| ELF_IMAGE = libext2fs |
| ELF_MYDIR = ext2fs |
| ELF_INSTALL_DIR = $(libdir) |
| ELF_OTHER_LIBS = -lc -L../.. -lcom_err |
| |
| BSDLIB_VERSION = 2.1 |
| BSDLIB_IMAGE = libext2fs |
| BSDLIB_MYDIR = ext2fs |
| BSDLIB_INSTALL_DIR = $(libdir) |
| |
| @MAKEFILE_LIBRARY@ |
| @MAKEFILE_DLL@ |
| @MAKEFILE_ELF@ |
| @MAKEFILE_BSDLIB@ |
| @MAKEFILE_PROFILE@ |
| @MAKEFILE_CHECKER@ |
| |
| .c.o: |
| $(CC) $(ALL_CFLAGS) -c $< -o $@ |
| @PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
| @CHECKER_CMT@ $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $< |
| @DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \ |
| @DLL_CMT@ -o jump/$*.o -c $<) |
| @ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< |
| @BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $< |
| |
| COMPILE_ET=../et/compile_et |
| |
| DISTFILES= Makefile *.c *.h image |
| |
| ext2_err.et: $(DEP_SUBSTITUTE) $(srcdir)/ext2_err.et.in |
| $(SUBSTITUTE) $(srcdir)/ext2_err.et.in ext2_err.et |
| |
| ext2_err.c ext2_err.h: ext2_err.et |
| $(COMPILE_ET) ext2_err.et |
| |
| tst_badblocks: tst_badblocks.o badblocks.o |
| $(CC) -o tst_badblocks tst_badblocks.o badblocks.o $(LIBCOM_ERR) |
| |
| tst_iscan: tst_iscan.o inode.o $(STATIC_LIBEXT2FS) |
| $(CC) -o tst_iscan tst_iscan.o inode.o $(STATIC_LIBEXT2FS) \ |
| $(LIBCOM_ERR) |
| |
| tst_getsize: tst_getsize.o getsize.o $(STATIC_LIBEXT2FS) |
| $(CC) -o tst_getsize tst_getsize.o getsize.o $(STATIC_LIBEXT2FS) \ |
| $(LIBCOM_ERR) |
| |
| check:: tst_badblocks tst_iscan |
| ./tst_badblocks |
| ./tst_iscan |
| |
| installdirs:: |
| $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \ |
| $(DESTDIR)$(includedir)/ext2fs |
| |
| install:: all $(HFILES) installdirs |
| $(INSTALL_DATA) libext2fs.a $(DESTDIR)$(ulibdir)/libext2fs.a |
| $(CHMOD) 644 $(DESTDIR)$(ulibdir)/libext2fs.a |
| -$(RANLIB) $(DESTDIR)$(ulibdir)/libext2fs.a |
| $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libext2fs.a |
| for i in $(HFILES); do \ |
| $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/ext2fs/$$i; \ |
| done |
| $(INSTALL_DATA) ext2_err.h $(DESTDIR)$(includedir)/ext2fs/ext2_err.h |
| |
| uninstall:: |
| $(RM) -f $(ulibdir)/libext2fs.a |
| $(RM) -rf $(includedir)/ext2fs |
| |
| clean:: |
| $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* \ |
| ext2_err.et ext2_err.c ext2_err.h \ |
| ../libext2fs.a ../libext2fs_p.a ../libext2fs_chk.a |
| |
| mostlyclean:: clean |
| distclean:: clean |
| $(RM) -f .depend ext2_err.c ext2_err.h Makefile |
| |
| # +++ Dependency line eater +++ |
| # |
| # Makefile dependencies follow. This must be the last section in |
| # the Makefile.in file |
| # |
| ext2_err.o: ext2_err.c |
| alloc.o: $(srcdir)/alloc.c \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| alloc_tables.o: $(srcdir)/alloc_tables.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| badblocks.o: $(srcdir)/badblocks.c \ |
| $(srcdir)/ext2fsP.h \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| bb_compat.o: $(srcdir)/bb_compat.c \ |
| $(srcdir)/ext2fsP.h \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| bb_inode.o: $(srcdir)/bb_inode.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| bitmaps.o: $(srcdir)/bitmaps.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| bitops.o: $(srcdir)/bitops.c \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| block.o: $(srcdir)/block.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| brel_ma.o: $(srcdir)/brel_ma.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h $(srcdir)/brel.h |
| bmove.o: $(srcdir)/bmove.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| check_desc.o: $(srcdir)/check_desc.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| closefs.o: $(srcdir)/closefs.c \ |
| $(srcdir)/ext2fsP.h \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| cmp_bitmaps.o: $(srcdir)/cmp_bitmaps.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| dblist.o: $(srcdir)/dblist.c \ |
| $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| dblist_dir.o: $(srcdir)/dblist_dir.c \ |
| $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| dirblock.o: $(srcdir)/dirblock.c \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| dir_iterate.o: $(srcdir)/dir_iterate.c \ |
| $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| dupfs.o: $(srcdir)/dupfs.c \ |
| $(srcdir)/ext2fsP.h \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| expanddir.o: $(srcdir)/expanddir.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| freefs.o: $(srcdir)/freefs.c \ |
| $(srcdir)/ext2fsP.h \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| get_pathname.o: $(srcdir)/get_pathname.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| getsize.o: $(srcdir)/getsize.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| icount.o: $(srcdir)/icount.c $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2fs.h \ |
| $(srcdir)/ext2_io.h \ |
| $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| initialize.o: $(srcdir)/initialize.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| inline.o: $(srcdir)/inline.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| inode.o: $(srcdir)/inode.c \ |
| $(srcdir)/ext2fsP.h $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| irel_ma.o: $(srcdir)/irel_ma.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h $(srcdir)/irel.h |
| ismounted.o: $(srcdir)/ismounted.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| link.o: $(srcdir)/link.c \ |
| $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| llseek.o: $(srcdir)/llseek.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h |
| lookup.o: $(srcdir)/lookup.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| mkdir.o: $(srcdir)/mkdir.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| namei.o: $(srcdir)/namei.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| native.o: $(srcdir)/native.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| newdir.o: $(srcdir)/newdir.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| openfs.o: $(srcdir)/openfs.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| read_bb.o: $(srcdir)/read_bb.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \ |
| $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| read_bb_file.o: $(srcdir)/read_bb_file.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| rs_bitmap.o: $(srcdir)/rs_bitmap.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| rw_bitmaps.o: $(srcdir)/rw_bitmaps.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| swapfs.o: $(srcdir)/swapfs.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \ |
| $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h |
| test_io.o: $(srcdir)/test_io.c $(top_srcdir)/lib/et/com_err.h \ |
| $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/ext2_io.h |
| unix_io.o: $(srcdir)/unix_io.c $(top_srcdir)/lib/et/com_err.h \ |
| $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/ext2_io.h |
| unlink.o: $(srcdir)/unlink.c $(srcdir)/ext2fs.h \ |
| $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| valid_blk.o: $(srcdir)/valid_blk.c \ |
| $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
| $(srcdir)/bitops.h |
| version.o: $(srcdir)/version.c $(top_srcdir)/lib/et/com_err.h \ |
| $(srcdir)/ext2fs.h $(srcdir)/ext2_io.h \ |
| $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h \ |
| $(srcdir)/../../version.h |
| |