2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
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 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
23 $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
24 $(srcdir)/dump.c $(srcdir)/set_fields.c ${srcdir}/logdump.c \
25 $(srcdir)/htree.c $(srcdir)/unused.c
27 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
29 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(DEPLIBBLKID) $(DEPLIBUUID)
33 @$(CC) -c $(ALL_CFLAGS) $< -o $@
35 all:: $(PROGS) $(MANPAGES)
37 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
39 @$(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
41 debug_cmds.c debug_cmds.h: debug_cmds.ct
43 @$(MK_CMDS) $(srcdir)/debug_cmds.ct
45 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
47 @$(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
50 @echo " MKINSTALLDIRS $(root_sbindir) $(man8dir)"
51 @$(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
54 install: $(PROGS) $(MANPAGES) installdirs
55 @for i in $(PROGS); do \
56 echo " INSTALL $(root_sbindir)/$$i"; \
57 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
59 @for i in $(MANPAGES); do \
60 for j in $(COMPRESS_EXT); do \
61 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
63 echo " INSTALL_DATA $(man8dir)/$$i"; \
64 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
67 install-strip: install
68 @for i in $(PROGS); do \
69 echo " STRIP $(root_sbindir)/$$i"; \
70 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
74 for i in $(PROGS); do \
75 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
77 for i in $(MANPAGES); do \
78 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
82 $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
86 $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
87 $(srcdir)/Makefile.in.old
89 # +++ Dependency line eater +++
91 # Makefile dependencies follow. This must be the last section in
92 # the Makefile.in file
94 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
95 $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
96 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
97 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
98 $(top_srcdir)/lib/et/com_err.h $(srcdir)/debugfs.h \
99 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
100 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
101 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
102 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
103 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h \
104 $(top_srcdir)/version.h
105 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
106 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
107 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
108 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
109 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
110 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
111 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
112 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/et/com_err.h \
113 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
114 $(top_srcdir)/lib/ext2fs/bitops.h
115 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
116 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
117 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
118 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
119 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
120 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
121 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
122 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
123 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
124 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
125 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
126 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
127 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
128 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
129 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
130 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
131 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
132 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
133 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
134 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
135 set_fields.o: $(srcdir)/set_fields.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/ext2fs/ext2_fs.h \
138 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
139 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
140 $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h
141 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
142 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
143 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
144 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
145 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
146 $(top_srcdir)/lib/blkid/blkid.h $(top_builddir)/lib/blkid/blkid_types.h \
147 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
148 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h \
149 $(top_srcdir)/lib/uuid/uuid.h
150 htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
151 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
152 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
153 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
154 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
155 unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \
156 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
157 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
158 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
159 $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h