1997-04-26 17:58:21 +04:00
|
|
|
#
|
|
|
|
# Standard e2fsprogs prologue....
|
|
|
|
#
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
top_builddir = ..
|
1997-04-29 18:51:31 +04:00
|
|
|
my_dir = debugfs
|
1997-04-26 17:58:21 +04:00
|
|
|
INSTALL = @INSTALL@
|
2003-03-16 14:26:25 +03:00
|
|
|
DLOPEN_LIB = @DLOPEN_LIB@
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
@MCONFIG@
|
|
|
|
|
|
|
|
PROGS= debugfs
|
|
|
|
MANPAGES= debugfs.8
|
|
|
|
|
2000-07-04 16:37:55 +04:00
|
|
|
MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
|
1997-04-26 17:58:21 +04:00
|
|
|
|
2000-08-15 00:37:09 +04:00
|
|
|
DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
|
2003-05-22 01:58:36 +04:00
|
|
|
lsdel.o dump.o setsuper.o logdump.o htree.o unused.o
|
1997-04-26 17:58:21 +04:00
|
|
|
|
1997-04-29 21:48:10 +04:00
|
|
|
SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
|
1997-04-26 17:58:21 +04:00
|
|
|
$(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
|
2002-02-25 12:28:45 +03:00
|
|
|
$(srcdir)/dump.c $(srcdir)/setsuper.c ${srcdir}/logdump.c \
|
2003-05-22 01:58:36 +04:00
|
|
|
$(srcdir)/htree.c $(srcdir)/unused.c
|
1997-04-26 17:58:21 +04:00
|
|
|
|
2003-03-16 14:26:25 +03:00
|
|
|
LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
|
|
|
|
$(LIBUUID) $(DLOPEN_LIB)
|
2003-03-02 03:47:44 +03:00
|
|
|
DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) $(DEPLIBUUID)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
.c.o:
|
2004-11-30 18:52:27 +03:00
|
|
|
@echo " CC $<"
|
|
|
|
@$(CC) -c $(ALL_CFLAGS) $< -o $@
|
1997-04-26 17:58:21 +04:00
|
|
|
|
1997-04-29 18:34:47 +04:00
|
|
|
all:: $(PROGS) $(MANPAGES)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
debugfs: $(DEBUG_OBJS) $(DEPLIBS)
|
2004-11-30 18:52:27 +03:00
|
|
|
@echo " LD $@"
|
|
|
|
@$(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
debug_cmds.c debug_cmds.h: debug_cmds.ct
|
2004-11-30 18:52:27 +03:00
|
|
|
@echo " MK_CMDS $@"
|
|
|
|
@$(MK_CMDS) $(srcdir)/debug_cmds.ct
|
1997-04-26 17:58:21 +04:00
|
|
|
|
1997-10-15 06:47:20 +04:00
|
|
|
debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
|
2004-11-30 18:52:27 +03:00
|
|
|
@echo " SUBST $@"
|
|
|
|
@$(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
|
1997-04-29 18:34:47 +04:00
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
installdirs:
|
2004-12-15 19:28:55 +03:00
|
|
|
@echo " MKINSTALLDIRS $(root_sbindir) $(man8dir)"
|
|
|
|
@$(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
|
1998-04-01 07:16:29 +04:00
|
|
|
$(DESTDIR)$(man8dir)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
install: $(PROGS) $(MANPAGES) installdirs
|
2004-12-15 19:28:55 +03:00
|
|
|
@for i in $(PROGS); do \
|
|
|
|
echo " INSTALL $(root_sbindir)/$$i"; \
|
1998-04-01 07:16:29 +04:00
|
|
|
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
|
1997-04-26 17:58:21 +04:00
|
|
|
done
|
2004-12-15 19:28:55 +03:00
|
|
|
@for i in $(MANPAGES); do \
|
2002-10-31 11:32:34 +03:00
|
|
|
for j in $(COMPRESS_EXT); do \
|
|
|
|
$(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
|
|
|
|
done; \
|
2004-12-15 19:28:55 +03:00
|
|
|
echo " INSTALL_DATA $(man8dir)/$$i"; \
|
1997-04-26 18:37:06 +04:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
|
1997-04-26 17:58:21 +04:00
|
|
|
done
|
|
|
|
|
2004-12-15 19:28:55 +03:00
|
|
|
install-strip: install
|
|
|
|
@for i in $(PROGS); do \
|
|
|
|
echo " STRIP $(root_sbindir)/$$i"; \
|
|
|
|
$(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
|
|
|
|
done
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
uninstall:
|
|
|
|
for i in $(PROGS); do \
|
1998-04-01 07:16:29 +04:00
|
|
|
$(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
|
1997-04-26 17:58:21 +04:00
|
|
|
done
|
|
|
|
for i in $(MANPAGES); do \
|
1998-04-01 07:16:29 +04:00
|
|
|
$(RM) -f $(DESTDIR)$(man8dir)/$$i; \
|
1997-04-26 17:58:21 +04:00
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
1997-04-29 18:34:47 +04:00
|
|
|
$(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
mostlyclean: clean
|
|
|
|
distclean: clean
|
1999-11-19 21:42:30 +03:00
|
|
|
$(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
|
|
|
|
$(srcdir)/Makefile.in.old
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
# +++ Dependency line eater +++
|
|
|
|
#
|
|
|
|
# Makefile dependencies follow. This must be the last section in
|
|
|
|
# the Makefile.in file
|
|
|
|
#
|
2001-12-24 23:33:49 +03:00
|
|
|
debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
|
2003-04-18 07:37:28 +04:00
|
|
|
$(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
|
1997-04-29 18:34:47 +04:00
|
|
|
debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
|
1999-09-15 00:55:37 +04:00
|
|
|
$(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2image.c, findsuper.c, lsattr.c,
mke2fs.c, mklost+found.c, tune2fs.c, util.c: Change location of
ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, resize2fs.h:
resize2fs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, debugfs.h:
debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, e2fsck.h, scantest.c:
e2fsck.h, scantest.c: Change location of ext2_fs.h to be
ext2fs/ext2_fs.h
ChangeLog, Makefile.in, tst_uuid.c, uuid_time.c:
tst_uuid.c, uuid_time.c: Remove unneeded #include of ext2_fs.h
ChangeLog, Makefile.in, e2p.h:
e2p.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, test_icount.c, test_rel.c:
test_icount.c, test_rel.c: Change location of ext2_fs.h to be
ext2fs/ext2_fs.h
2001-05-14 15:45:38 +04:00
|
|
|
$(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
|
|
|
|
$(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h
|
1998-12-04 09:15:12 +03:00
|
|
|
util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2image.c, findsuper.c, lsattr.c,
mke2fs.c, mklost+found.c, tune2fs.c, util.c: Change location of
ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, resize2fs.h:
resize2fs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, debugfs.h:
debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, e2fsck.h, scantest.c:
e2fsck.h, scantest.c: Change location of ext2_fs.h to be
ext2fs/ext2_fs.h
ChangeLog, Makefile.in, tst_uuid.c, uuid_time.c:
tst_uuid.c, uuid_time.c: Remove unneeded #include of ext2_fs.h
ChangeLog, Makefile.in, e2p.h:
e2p.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, test_icount.c, test_rel.c:
test_icount.c, test_rel.c: Change location of ext2_fs.h to be
ext2fs/ext2_fs.h
2001-05-14 15:45:38 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
2001-06-02 03:49:46 +04:00
|
|
|
ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
|
2000-12-09 09:41:25 +03:00
|
|
|
$(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
|
|
|
|
$(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
|
2001-06-02 03:49:46 +04:00
|
|
|
ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 18:34:47 +04:00
|
|
|
icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 18:34:47 +04:00
|
|
|
lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 18:34:47 +04:00
|
|
|
dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
2000-12-09 09:41:25 +03:00
|
|
|
setsuper.o: $(srcdir)/setsuper.c $(srcdir)/debugfs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
2002-11-08 22:31:03 +03:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
|
|
|
|
$(top_srcdir)/lib/e2p/e2p.h
|
2001-12-24 23:33:49 +03:00
|
|
|
logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
2003-03-17 04:21:16 +03:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/blkid/blkid.h \
|
|
|
|
$(top_builddir)/lib/blkid/blkid_types.h $(srcdir)/jfs_user.h \
|
2001-12-24 23:33:49 +03:00
|
|
|
$(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h
|
2002-03-05 09:57:53 +03:00
|
|
|
htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|