Home | History | Annotate | Download | only in debugfs
      1 #
      2 # Standard e2fsprogs prologue....
      3 #
      4 
      5 srcdir = @srcdir@
      6 top_srcdir = @top_srcdir@
      7 VPATH = @srcdir@
      8 top_builddir = ..
      9 my_dir = debugfs
     10 INSTALL = @INSTALL@
     11 
     12 @MCONFIG@
     13 
     14 PROGS=		debugfs
     15 MANPAGES=	debugfs.8
     16 
     17 MK_CMDS=	_SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
     18 
     19 DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
     20 	lsdel.o dump.o set_fields.o logdump.o htree.o unused.o
     21 
     22 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
     23 	$(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
     24 	$(srcdir)/dump.c $(srcdir)/set_fields.c ${srcdir}/logdump.c \
     25 	$(srcdir)/htree.c $(srcdir)/unused.c
     26 
     27 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
     28 	$(LIBUUID)
     29 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(DEPLIBSS) $(DEPLIBCOM_ERR) \
     30 	$(DEPLIBBLKID) $(DEPLIBUUID)
     31 
     32 .c.o:
     33 	$(E) "	CC $<"
     34 	$(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
     35 
     36 all:: $(PROGS) $(MANPAGES)
     37 
     38 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
     39 	$(E) "	LD $@"
     40 	$(Q) $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
     41 
     42 debug_cmds.c debug_cmds.h: debug_cmds.ct
     43 	$(E) "	MK_CMDS $@"
     44 	$(Q) $(MK_CMDS) $(srcdir)/debug_cmds.ct
     45 
     46 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
     47 	$(E) "	SUBST $@"
     48 	$(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
     49 
     50 installdirs:
     51 	$(E) "	MKINSTALLDIRS $(root_sbindir) $(man8dir)"
     52 	$(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
     53 		$(DESTDIR)$(man8dir)
     54 
     55 install: $(PROGS) $(MANPAGES) installdirs
     56 	$(Q) for i in $(PROGS); do \
     57 		echo "	INSTALL $(root_sbindir)/$$i"; \
     58 		$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
     59 	done
     60 	$(Q) 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 
     68 install-strip: install
     69 	$(Q) for i in $(PROGS); do \
     70 		echo "	STRIP $(root_sbindir)/$$i"; \
     71 		$(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
     72 	done
     73 
     74 uninstall:
     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 
     82 clean:
     83 	$(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
     84 
     85 mostlyclean: clean
     86 distclean: 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 #
     95 debug_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
     97 debugfs.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  $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
    100  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
    101  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    102  $(top_builddir)/lib/ext2fs/ext2_err.h \
    103  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    104  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/jfs_user.h \
    105  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
    106  $(top_srcdir)/lib/ext2fs/kernel-list.h
    107 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
    108  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    109  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    110  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    111  $(top_builddir)/lib/ext2fs/ext2_err.h \
    112  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    113 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
    114  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
    115  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
    116  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
    117  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    118 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
    119  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    120  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    121  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    122  $(top_builddir)/lib/ext2fs/ext2_err.h \
    123  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    124 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
    125  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    126  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    127  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    128  $(top_builddir)/lib/ext2fs/ext2_err.h \
    129  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    130 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
    131  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    132  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    133  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    134  $(top_builddir)/lib/ext2fs/ext2_err.h \
    135  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    136 dump.o: $(srcdir)/dump.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/ext3_extents.h \
    139  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    140  $(top_builddir)/lib/ext2fs/ext2_err.h \
    141  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    142 set_fields.o: $(srcdir)/set_fields.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/ext3_extents.h \
    145  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    146  $(top_builddir)/lib/ext2fs/ext2_err.h \
    147  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    148  $(top_srcdir)/lib/e2p/e2p.h
    149 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
    150  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    151  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    152  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    153  $(top_builddir)/lib/ext2fs/ext2_err.h \
    154  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    155  $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
    156  $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
    157 htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
    158  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    159  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    160  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    161  $(top_builddir)/lib/ext2fs/ext2_err.h \
    162  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    163  $(top_srcdir)/lib/e2p/e2p.h
    164 unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \
    165  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    166  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    167  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    168  $(top_builddir)/lib/ext2fs/ext2_err.h \
    169  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
    170