1997-04-26 21:58:21 +08:00
|
|
|
#
|
|
|
|
# Standard e2fsprogs prologue....
|
|
|
|
#
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
top_builddir = ..
|
1997-04-29 22:51:31 +08:00
|
|
|
my_dir = debugfs
|
1997-04-26 21:58:21 +08:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
|
|
|
@MCONFIG@
|
|
|
|
|
|
|
|
PROGS= debugfs
|
|
|
|
MANPAGES= debugfs.8
|
|
|
|
|
2000-07-04 20:37:55 +08:00
|
|
|
MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2000-08-15 04:37:09 +08:00
|
|
|
DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
|
|
|
|
lsdel.o dump.o setsuper.o
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1997-04-30 01:48:10 +08:00
|
|
|
SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
|
1997-04-26 21:58:21 +08:00
|
|
|
$(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
|
2000-08-15 04:37:09 +08:00
|
|
|
$(srcdir)/dump.c $(srcdir)/setsuper.c
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1999-09-15 04:55:37 +08:00
|
|
|
LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID)
|
2000-01-19 01:53:27 +08:00
|
|
|
DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(DEPLIBUUID)
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
.c.o:
|
1997-04-26 22:37:06 +08:00
|
|
|
$(CC) -c $(ALL_CFLAGS) $< -o $@
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1997-04-29 22:34:47 +08:00
|
|
|
all:: $(PROGS) $(MANPAGES)
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
debugfs: $(DEBUG_OBJS) $(DEPLIBS)
|
1997-04-26 22:37:06 +08:00
|
|
|
$(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
debug_cmds.c debug_cmds.h: debug_cmds.ct
|
|
|
|
$(MK_CMDS) $(srcdir)/debug_cmds.ct
|
|
|
|
|
1997-10-15 10:47:20 +08:00
|
|
|
debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
|
1997-04-29 22:34:47 +08:00
|
|
|
$(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
installdirs:
|
1998-04-01 11:16:29 +08:00
|
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \
|
|
|
|
$(DESTDIR)$(man8dir)
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
install: $(PROGS) $(MANPAGES) installdirs
|
|
|
|
for i in $(PROGS); do \
|
1998-04-01 11:16:29 +08:00
|
|
|
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
|
|
|
|
$(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
for i in $(MANPAGES); do \
|
1997-04-26 22:37:06 +08:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
for i in $(PROGS); do \
|
1998-04-01 11:16:29 +08:00
|
|
|
$(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
for i in $(MANPAGES); do \
|
1998-04-01 11:16:29 +08:00
|
|
|
$(RM) -f $(DESTDIR)$(man8dir)/$$i; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
1997-04-29 22:34:47 +08:00
|
|
|
$(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
mostlyclean: clean
|
|
|
|
distclean: clean
|
1999-11-20 02:42:30 +08:00
|
|
|
$(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
|
|
|
|
$(srcdir)/Makefile.in.old
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
# +++ Dependency line eater +++
|
|
|
|
#
|
|
|
|
# Makefile dependencies follow. This must be the last section in
|
|
|
|
# the Makefile.in file
|
|
|
|
#
|
1997-04-30 00:15:03 +08:00
|
|
|
debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
|
1999-09-15 04:55:37 +08:00
|
|
|
$(top_builddir)/lib/ss/ss_err.h
|
1997-04-29 22:34:47 +08:00
|
|
|
debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
|
1999-09-15 04:55:37 +08:00
|
|
|
$(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
|
|
|
|
$(srcdir)/debugfs.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 \
|
1999-10-27 00:42:50 +08:00
|
|
|
$(top_srcdir)/lib/e2p/e2p.h $(srcdir)/../version.h
|
1998-12-04 14:15:12 +08:00
|
|
|
util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
|
1997-04-29 22:34:47 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 08:44:26 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 22:34:47 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1999-07-04 04:37:03 +08:00
|
|
|
ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.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
|
1998-12-04 14:15:12 +08:00
|
|
|
ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 08:44:26 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-30 01:57:00 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 22:34:47 +08:00
|
|
|
icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 08:44:26 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 22:34:47 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
|
|
|
lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 08:44:26 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 22:34:47 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
|
|
|
dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 08:44:26 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 22:34:47 +08:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|