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@
|
|
|
|
|
|
|
|
@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 \
|
2004-12-22 04:37:36 +03:00
|
|
|
lsdel.o dump.o set_fields.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 \
|
2004-12-22 04:37:36 +03:00
|
|
|
$(srcdir)/dump.c $(srcdir)/set_fields.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) \
|
2008-04-18 00:54:24 +04:00
|
|
|
$(LIBUUID)
|
2006-10-02 06:18:08 +04:00
|
|
|
DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(DEPLIBBLKID) $(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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/et/com_err.h $(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/ext2fs/ext2_fs.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_ext_attr.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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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
|
2005-05-06 17:37:58 +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 \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/et/com_err.h \
|
2001-06-02 03:49:46 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
2005-05-06 17:37:58 +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/ext2fs/ext2_fs.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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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
|
2004-12-22 04:37:36 +03:00
|
|
|
set_fields.o: $(srcdir)/set_fields.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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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 \
|
|
|
|
$(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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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 \
|
|
|
|
$(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
|
|
|
|
$(srcdir)/jfs_user.h $(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 \
|
2005-05-06 17:37:58 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.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
|
|
|
|
unused.o: $(srcdir)/unused.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/ext2fs/ext2_fs.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
|