2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
11 DLOPEN_LIB = @DLOPEN_LIB@
18 MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
20 DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
21 lsdel.o dump.o setsuper.o logdump.o htree.o
23 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
24 $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
25 $(srcdir)/dump.c $(srcdir)/setsuper.c ${srcdir}/logdump.c \
28 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
29 $(LIBUUID) $(DLOPEN_LIB)
30 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) $(DEPLIBUUID)
33 $(CC) -c $(ALL_CFLAGS) $< -o $@
35 all:: $(PROGS) $(MANPAGES)
37 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
38 $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
40 debug_cmds.c debug_cmds.h: debug_cmds.ct
41 $(MK_CMDS) $(srcdir)/debug_cmds.ct
43 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
44 $(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
47 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \
50 install: $(PROGS) $(MANPAGES) installdirs
51 for i in $(PROGS); do \
52 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
53 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
55 for i in $(MANPAGES); do \
56 for j in $(COMPRESS_EXT); do \
57 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
59 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
63 for i in $(PROGS); do \
64 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
66 for i in $(MANPAGES); do \
67 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
71 $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
75 $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
76 $(srcdir)/Makefile.in.old
78 # +++ Dependency line eater +++
80 # Makefile dependencies follow. This must be the last section in
81 # the Makefile.in file
83 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
84 $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
85 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
86 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
87 $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
88 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
89 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
90 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
91 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h
92 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
93 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
94 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
95 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
96 $(top_srcdir)/lib/ext2fs/bitops.h
97 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
98 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
99 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
100 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
101 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
102 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.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
106 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
107 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
108 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
109 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
110 $(top_srcdir)/lib/ext2fs/bitops.h
111 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
112 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
113 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
114 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
115 $(top_srcdir)/lib/ext2fs/bitops.h
116 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
117 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
118 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
119 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
120 $(top_srcdir)/lib/ext2fs/bitops.h
121 setsuper.o: $(srcdir)/setsuper.c $(srcdir)/debugfs.h \
122 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
123 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
124 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
125 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
126 $(top_srcdir)/lib/e2p/e2p.h
127 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
128 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
129 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
130 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
131 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/blkid/blkid.h \
132 $(top_builddir)/lib/blkid/blkid_types.h $(srcdir)/jfs_user.h \
133 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
134 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h
135 htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
136 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
137 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
138 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
139 $(top_srcdir)/lib/ext2fs/bitops.h