1# 2# Standard e2fsprogs prologue.... 3# 4 5srcdir = @srcdir@ 6top_srcdir = @top_srcdir@ 7VPATH = @srcdir@ 8top_builddir = .. 9my_dir = debugfs 10INSTALL = @INSTALL@ 11DLOPEN_LIB = @DLOPEN_LIB@ 12 13@MCONFIG@ 14 15PROGS= debugfs 16MANPAGES= debugfs.8 17 18MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds 19 20DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \ 21 lsdel.o dump.o set_fields.o logdump.o htree.o unused.o 22 23SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \ 24 $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \ 25 $(srcdir)/dump.c $(srcdir)/set_fields.c ${srcdir}/logdump.c \ 26 $(srcdir)/htree.c $(srcdir)/unused.c 27 28LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \ 29 $(LIBUUID) $(DLOPEN_LIB) 30DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(DEPLIBBLKID) $(DEPLIBUUID) 31 32.c.o: 33 @echo " CC $<" 34 @$(CC) -c $(ALL_CFLAGS) $< -o $@ 35 36all:: $(PROGS) $(MANPAGES) 37 38debugfs: $(DEBUG_OBJS) $(DEPLIBS) 39 @echo " LD $@" 40 @$(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS) 41 42debug_cmds.c debug_cmds.h: debug_cmds.ct 43 @echo " MK_CMDS $@" 44 @$(MK_CMDS) $(srcdir)/debug_cmds.ct 45 46debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in 47 @echo " SUBST $@" 48 @$(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8 49 50installdirs: 51 @echo " MKINSTALLDIRS $(root_sbindir) $(man8dir)" 52 @$(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \ 53 $(DESTDIR)$(man8dir) 54 55install: $(PROGS) $(MANPAGES) installdirs 56 @for i in $(PROGS); do \ 57 echo " INSTALL $(root_sbindir)/$$i"; \ 58 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \ 59 done 60 @for i in $(MANPAGES); do \ 61 for j in $(COMPRESS_EXT); do \ 62 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \ 63 done; \ 64 echo " INSTALL_DATA $(man8dir)/$$i"; \ 65 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \ 66 done 67 68install-strip: install 69 @for i in $(PROGS); do \ 70 echo " STRIP $(root_sbindir)/$$i"; \ 71 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \ 72 done 73 74uninstall: 75 for i in $(PROGS); do \ 76 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ 77 done 78 for i in $(MANPAGES); do \ 79 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \ 80 done 81 82clean: 83 $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core 84 85mostlyclean: clean 86distclean: clean 87 $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \ 88 $(srcdir)/Makefile.in.old 89 90# +++ Dependency line eater +++ 91# 92# Makefile dependencies follow. This must be the last section in 93# the Makefile.in file 94# 95debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \ 96 $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h 97debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \ 98 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ 99 $(top_srcdir)/lib/et/com_err.h $(srcdir)/debugfs.h \ 100 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 101 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 102 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 103 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \ 104 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h \ 105 $(top_srcdir)/version.h 106util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \ 107 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 108 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 109 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 110 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 111ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 112 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ 113 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/et/com_err.h \ 114 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 115 $(top_srcdir)/lib/ext2fs/bitops.h 116ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \ 117 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 118 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 119 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 120 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 121icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \ 122 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 123 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 124 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 125 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 126lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \ 127 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 128 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 129 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 130 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 131dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \ 132 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 133 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 134 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 135 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 136set_fields.o: $(srcdir)/set_fields.c $(srcdir)/debugfs.h \ 137 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 138 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 139 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 140 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ 141 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h 142logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \ 143 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 144 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 145 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 146 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ 147 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \ 148 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \ 149 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \ 150 $(top_srcdir)/lib/uuid/uuid.h 151htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \ 152 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 153 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 154 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 155 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 156unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \ 157 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 158 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ 159 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 160 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h 161