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: $(SUBSTITUTE) $(srcdir)/debugfs.8.in
40 -$(CHMOD) +x $(SUBSTITUTE)
41 $(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
44 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(usbindir) \
45 $(DESTDIR)$(man8dir) $(DESTDIR)$(cat8dir)
47 install: $(PROGS) $(MANPAGES) installdirs
48 for i in $(PROGS); do \
49 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(usbindir)/$$i; \
50 $(STRIP) $(DESTDIR)$(usbindir)/$$i; \
52 for i in $(MANPAGES); do \
53 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
57 for i in $(PROGS); do \
58 $(RM) -f $(usbindir)/$$i; \
60 for i in $(MANPAGES); do \
61 $(RM) -f $(man8dir)/$$i; \
65 $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
69 $(RM) -f debug_cmds.c .depend Makefile
71 # +++ Dependency line eater +++
73 # Makefile dependencies follow. This must be the last section in
74 # the Makefile.in file
76 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
77 $(top_srcdir)/lib/ss/copyright.h $(top_builddir)/lib/ss/ss_err.h
78 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
79 $(top_srcdir)/lib/ss/ss.h $(top_srcdir)/lib/ss/copyright.h \
80 $(top_builddir)/lib/ss/ss_err.h $(srcdir)/debugfs.h \
81 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/io.h \
82 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
83 $(top_srcdir)/lib/uuid/uuid.h
84 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
85 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
86 $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
87 $(top_srcdir)/lib/ext2fs/bitops.h
88 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
89 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
90 $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
91 $(top_srcdir)/lib/ext2fs/bitops.h
92 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
93 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
94 $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
95 $(top_srcdir)/lib/ext2fs/bitops.h
96 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
97 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
98 $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
99 $(top_srcdir)/lib/ext2fs/bitops.h
100 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
101 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
102 $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
103 $(top_srcdir)/lib/ext2fs/bitops.h