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
|
|
|
|
|
|
|
|
MK_CMDS= ../lib/ss/mk_cmds
|
|
|
|
|
1997-04-29 21:48:10 +04:00
|
|
|
DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o lsdel.o dump.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 \
|
|
|
|
$(srcdir)/dump.c
|
|
|
|
|
1997-04-29 18:51:31 +04:00
|
|
|
LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID)
|
|
|
|
DEPLIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID)
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
.c.o:
|
1997-04-26 18:37:06 +04:00
|
|
|
$(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)
|
1997-04-26 18:37:06 +04:00
|
|
|
$(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
|
|
|
|
$(MK_CMDS) $(srcdir)/debug_cmds.ct
|
|
|
|
|
1997-10-15 06:47:20 +04:00
|
|
|
debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
|
1997-04-29 18:34:47 +04:00
|
|
|
$(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
installdirs:
|
|
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(usbindir) \
|
|
|
|
$(DESTDIR)$(man8dir) $(DESTDIR)$(cat8dir)
|
|
|
|
|
|
|
|
install: $(PROGS) $(MANPAGES) installdirs
|
|
|
|
for i in $(PROGS); do \
|
Many files:
dblist.c (ext2fs_get_num_dirs): Make ext2fs_get_num_dirs more paranoid
about validating the directory counts from the block group
information.
all files: Don't include stdlib.h anymore; include it in ext2_fs.h,
since that file requires stdlib.h
ChangeLog, Makefile.in, dirinfo.c:
dirinfo.c (e2fsck_add_dir_info): Use ext2fs_get_num_dirs instead of
e2fsck_get_num_dirs, which has been removed.
Makefile.in (PROGS): Remove @EXTRA_PROGS@, since we don't want to
compile and install flushb.
ChangeLog, configure.in:
Remove @EXTRA_PROGS@, since we aren't using it in 2fsck/Makefile.in anymore
ChangeLog, Makefile.in:
Install debugfs in /sbin, instead of /usr/sbin.
libext2fs.texinfo:
Update version string to be 1.12
Makefile.in:
Fix bug in find script which made the exclusion list, where a '-' was
missing from an -name option.
1997-12-01 21:24:10 +03:00
|
|
|
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
|
|
|
|
$(STRIP) $(DESTDIR)$(sbindir)/$$i; \
|
1997-04-26 17:58:21 +04:00
|
|
|
done
|
|
|
|
for i in $(MANPAGES); do \
|
1997-04-26 18:37:06 +04:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
|
1997-04-26 17:58:21 +04:00
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
for i in $(PROGS); do \
|
|
|
|
$(RM) -f $(usbindir)/$$i; \
|
|
|
|
done
|
|
|
|
for i in $(MANPAGES); do \
|
|
|
|
$(RM) -f $(man8dir)/$$i; \
|
|
|
|
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
|
|
|
|
$(RM) -f debug_cmds.c .depend Makefile
|
|
|
|
|
|
|
|
# +++ Dependency line eater +++
|
|
|
|
#
|
|
|
|
# Makefile dependencies follow. This must be the last section in
|
|
|
|
# the Makefile.in file
|
|
|
|
#
|
1997-04-29 20:15:03 +04:00
|
|
|
debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
|
|
|
|
$(top_srcdir)/lib/ss/copyright.h $(top_builddir)/lib/ss/ss_err.h
|
1997-04-29 18:34:47 +04:00
|
|
|
debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
|
|
|
|
$(top_srcdir)/lib/ss/ss.h $(top_srcdir)/lib/ss/copyright.h \
|
|
|
|
$(top_builddir)/lib/ss/ss_err.h $(srcdir)/debugfs.h \
|
1997-10-20 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
|
1997-04-29 18:51:31 +04:00
|
|
|
$(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
|
|
|
|
$(top_srcdir)/lib/uuid/uuid.h
|
1997-04-29 18:34:47 +04:00
|
|
|
util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
|
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 18:34:47 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 21:57:00 +04:00
|
|
|
ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h \
|
1997-04-29 18:34:47 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
|
1997-10-20 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 18:34:47 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 21:57:00 +04: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 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 21:57:00 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 18:34:47 +04: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 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 18:34:47 +04: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 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 18:34:47 +04: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 04:44:26 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
|
1997-04-29 18:34:47 +04:00
|
|
|
$(top_srcdir)/lib/ext2fs/bitops.h
|
1997-04-29 20:15:03 +04:00
|
|
|
|