2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
17 MK_CMDS= ../lib/ss/mk_cmds
19 DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o lsdel.o dump.o
21 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
22 $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
25 LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID)
26 DEPLIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID)
29 $(CC) -c $(ALL_CFLAGS) $< -o $@
31 all:: $(PROGS) $(MANPAGES)
33 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
34 $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
36 debug_cmds.c debug_cmds.h: debug_cmds.ct
37 $(MK_CMDS) $(srcdir)/debug_cmds.ct
39 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
40 $(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
43 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \
46 install: $(PROGS) $(MANPAGES) installdirs
47 for i in $(PROGS); do \
48 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
49 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
51 for i in $(MANPAGES); do \
52 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
56 for i in $(PROGS); do \
57 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
59 for i in $(MANPAGES); do \
60 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
64 $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
68 $(RM) -f debug_cmds.c .depend Makefile
70 # +++ Dependency line eater +++
72 # Makefile dependencies follow. This must be the last section in
73 # the Makefile.in file
75 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
76 $(top_srcdir)/lib/ss/copyright.h $(top_builddir)/lib/ss/ss_err.h
77 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
78 $(top_srcdir)/lib/ss/ss.h $(top_srcdir)/lib/ss/copyright.h \
79 $(top_builddir)/lib/ss/ss_err.h $(srcdir)/debugfs.h \
80 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
81 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
82 $(top_srcdir)/lib/uuid/uuid.h $(srcdir)/../version.h
83 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
84 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
85 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
86 $(top_srcdir)/lib/ext2fs/bitops.h
87 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
88 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
89 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
90 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
91 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
92 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
93 $(top_srcdir)/lib/ext2fs/bitops.h
94 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
95 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
96 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
97 $(top_srcdir)/lib/ext2fs/bitops.h
98 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
99 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
100 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
101 $(top_srcdir)/lib/ext2fs/bitops.h
102 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
103 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
104 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
105 $(top_srcdir)/lib/ext2fs/bitops.h