2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
14 PROGS= debugfs rdebugfs
17 MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
19 DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
20 lsdel.o dump.o set_fields.o logdump.o htree.o unused.o
22 RO_DEBUG_OBJS= ro_debug_cmds.o ro_debugfs.o util.o ncheck.o icheck.o ls.o \
23 lsdel.o logdump.o htree.o
25 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
26 $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
27 $(srcdir)/dump.c $(srcdir)/set_fields.c ${srcdir}/logdump.c \
28 $(srcdir)/htree.c $(srcdir)/unused.c
30 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
32 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(DEPLIBSS) $(DEPLIBCOM_ERR) \
33 $(DEPLIBBLKID) $(DEPLIBUUID)
37 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
39 all:: $(PROGS) $(MANPAGES)
41 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
43 $(Q) $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
45 rdebugfs: $(RO_DEBUG_OBJS) $(DEPLIBS)
47 $(Q) $(CC) $(ALL_LDFLAGS) -o rdebugfs $(RO_DEBUG_OBJS) $(LIBS)
49 debug_cmds.c debug_cmds.h: debug_cmds.ct
51 $(Q) $(MK_CMDS) $(srcdir)/debug_cmds.ct
53 ro_debug_cmds.c ro_debug_cmds.h: ro_debug_cmds.ct
55 $(Q) $(MK_CMDS) $(srcdir)/ro_debug_cmds.ct
57 ro_debugfs.o: debugfs.c
59 $(Q) $(CC) -c $(ALL_CFLAGS) $< -DREAD_ONLY -o $@
61 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
63 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
66 $(E) " MKINSTALLDIRS $(root_sbindir) $(man8dir)"
67 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
70 install: $(PROGS) $(MANPAGES) installdirs
71 $(Q) for i in $(PROGS); do \
72 echo " INSTALL $(root_sbindir)/$$i"; \
73 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
75 $(Q) for i in $(MANPAGES); do \
76 for j in $(COMPRESS_EXT); do \
77 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
79 echo " INSTALL_DATA $(man8dir)/$$i"; \
80 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
83 install-strip: install
84 $(Q) for i in $(PROGS); do \
85 echo " STRIP $(root_sbindir)/$$i"; \
86 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
90 for i in $(PROGS); do \
91 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
93 for i in $(MANPAGES); do \
94 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
98 $(RM) -f $(PROGS) debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c \
103 $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
104 $(srcdir)/Makefile.in.old
106 # +++ Dependency line eater +++
108 # Makefile dependencies follow. This must be the last section in
109 # the Makefile.in file
111 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
112 $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
113 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
114 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
115 $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
116 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
117 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
118 $(top_builddir)/lib/ext2fs/ext2_err.h \
119 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
120 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/jfs_user.h \
121 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
122 $(top_srcdir)/lib/ext2fs/kernel-list.h
123 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
124 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
125 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
126 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
127 $(top_builddir)/lib/ext2fs/ext2_err.h \
128 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
129 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
130 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
131 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
132 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
133 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
134 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
135 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
136 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
137 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
138 $(top_builddir)/lib/ext2fs/ext2_err.h \
139 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
140 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
141 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
142 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
143 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
144 $(top_builddir)/lib/ext2fs/ext2_err.h \
145 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
146 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
147 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
148 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
149 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
150 $(top_builddir)/lib/ext2fs/ext2_err.h \
151 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
152 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
153 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
154 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
155 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
156 $(top_builddir)/lib/ext2fs/ext2_err.h \
157 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
158 set_fields.o: $(srcdir)/set_fields.c $(srcdir)/debugfs.h \
159 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
160 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
161 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
162 $(top_builddir)/lib/ext2fs/ext2_err.h \
163 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
164 $(top_srcdir)/lib/e2p/e2p.h
165 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
166 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
167 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
168 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
169 $(top_builddir)/lib/ext2fs/ext2_err.h \
170 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
171 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
172 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
173 htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
174 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
175 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
176 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
177 $(top_builddir)/lib/ext2fs/ext2_err.h \
178 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
179 $(top_srcdir)/lib/e2p/e2p.h
180 unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \
181 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
182 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
183 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
184 $(top_builddir)/lib/ext2fs/ext2_err.h \
185 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h