]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - debugfs/Makefile.in
debugfs: add the freefrag command
[thirdparty/e2fsprogs.git] / debugfs / Makefile.in
CommitLineData
50e1e10f
TT
1#
2# Standard e2fsprogs prologue....
3#
4
5srcdir = @srcdir@
6top_srcdir = @top_srcdir@
7VPATH = @srcdir@
8top_builddir = ..
fc6d9d51 9my_dir = debugfs
50e1e10f
TT
10INSTALL = @INSTALL@
11
12@MCONFIG@
13
e88c5a33 14PROGS= debugfs rdebugfs
50e1e10f
TT
15MANPAGES= debugfs.8
16
619dd191 17MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
50e1e10f 18
c6bd0c97 19DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
5e96c572 20 lsdel.o dump.o set_fields.o logdump.o htree.o unused.o e2freefrag.o
50e1e10f 21
e88c5a33 22RO_DEBUG_OBJS= ro_debug_cmds.o ro_debugfs.o util.o ncheck.o icheck.o ls.o \
5e96c572 23 lsdel.o logdump.o htree.o e2freefrag.o
e88c5a33 24
521e3685 25SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
50e1e10f 26 $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
7dec050a 27 $(srcdir)/dump.c $(srcdir)/set_fields.c ${srcdir}/logdump.c \
a5fdcd59 28 $(srcdir)/htree.c $(srcdir)/unused.c
50e1e10f 29
3ae497ea 30LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
daf7a6e5 31 $(LIBUUID)
a6a1c081
TT
32DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(DEPLIBSS) $(DEPLIBCOM_ERR) \
33 $(DEPLIBBLKID) $(DEPLIBUUID)
50e1e10f
TT
34
35.c.o:
c13351f6
TT
36 $(E) " CC $<"
37 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
50e1e10f 38
62c06f79 39all:: $(PROGS) $(MANPAGES)
50e1e10f
TT
40
41debugfs: $(DEBUG_OBJS) $(DEPLIBS)
c13351f6
TT
42 $(E) " LD $@"
43 $(Q) $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
50e1e10f 44
e88c5a33
TT
45rdebugfs: $(RO_DEBUG_OBJS) $(DEPLIBS)
46 $(E) " LD $@"
47 $(Q) $(CC) $(ALL_LDFLAGS) -o rdebugfs $(RO_DEBUG_OBJS) $(LIBS)
48
50e1e10f 49debug_cmds.c debug_cmds.h: debug_cmds.ct
c13351f6
TT
50 $(E) " MK_CMDS $@"
51 $(Q) $(MK_CMDS) $(srcdir)/debug_cmds.ct
50e1e10f 52
e88c5a33
TT
53ro_debug_cmds.c ro_debug_cmds.h: ro_debug_cmds.ct
54 $(E) " MK_CMDS $@"
55 $(Q) $(MK_CMDS) $(srcdir)/ro_debug_cmds.ct
56
57ro_debugfs.o: debugfs.c
58 $(E) " CC $@"
59 $(Q) $(CC) -c $(ALL_CFLAGS) $< -DREAD_ONLY -o $@
60
5e96c572
TT
61e2freefrag.o: $(srcdir)/../misc/e2freefrag.c
62 $(E) " CC $@"
63 $(Q) $(CC) -c $(ALL_CFLAGS) -I$(srcdir) $< -DDEBUGFS -o $@
64
44339bdf 65debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
c13351f6
TT
66 $(E) " SUBST $@"
67 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
62c06f79 68
50e1e10f 69installdirs:
c13351f6
TT
70 $(E) " MKINSTALLDIRS $(root_sbindir) $(man8dir)"
71 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
7e44f242 72 $(DESTDIR)$(man8dir)
50e1e10f
TT
73
74install: $(PROGS) $(MANPAGES) installdirs
c13351f6 75 $(Q) for i in $(PROGS); do \
522798d3 76 echo " INSTALL $(root_sbindir)/$$i"; \
7e44f242 77 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
50e1e10f 78 done
c13351f6 79 $(Q) for i in $(MANPAGES); do \
482afc44
TT
80 for j in $(COMPRESS_EXT); do \
81 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
82 done; \
522798d3 83 echo " INSTALL_DATA $(man8dir)/$$i"; \
74becf3c 84 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
50e1e10f
TT
85 done
86
522798d3 87install-strip: install
c13351f6 88 $(Q) for i in $(PROGS); do \
522798d3
TT
89 echo " STRIP $(root_sbindir)/$$i"; \
90 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
91 done
92
50e1e10f
TT
93uninstall:
94 for i in $(PROGS); do \
7e44f242 95 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
50e1e10f
TT
96 done
97 for i in $(MANPAGES); do \
7e44f242 98 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
50e1e10f
TT
99 done
100
101clean:
e88c5a33
TT
102 $(RM) -f $(PROGS) debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c \
103 ro_debug_cmds.c core
62c06f79 104
50e1e10f
TT
105mostlyclean: clean
106distclean: clean
5c36a2f8
TT
107 $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
108 $(srcdir)/Makefile.in.old
50e1e10f
TT
109
110# +++ Dependency line eater +++
111#
112# Makefile dependencies follow. This must be the last section in
113# the Makefile.in file
114#
96b5cacc 115debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
a2146af2 116 $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
62c06f79 117debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
d3aea7dc 118 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
e1f08507
TT
119 $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
120 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
121 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
122 $(top_builddir)/lib/ext2fs/ext2_err.h \
123 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
124 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/jfs_user.h \
125 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
126 $(top_srcdir)/lib/ext2fs/kernel-list.h
dba838b0 127util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
797f5ef1 128 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 129 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
0e8a9560 130 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
131 $(top_builddir)/lib/ext2fs/ext2_err.h \
132 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
75e93ab0
TT
133ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
134 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
e1f08507 135 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
797f5ef1 136 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
e1f08507 137 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
75e93ab0
TT
138ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
139 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 140 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 141 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
142 $(top_builddir)/lib/ext2fs/ext2_err.h \
143 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
62c06f79 144icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
797f5ef1 145 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 146 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 147 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
148 $(top_builddir)/lib/ext2fs/ext2_err.h \
149 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
62c06f79 150lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
797f5ef1 151 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 152 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 153 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
154 $(top_builddir)/lib/ext2fs/ext2_err.h \
155 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
62c06f79 156dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
797f5ef1 157 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 158 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 159 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
160 $(top_builddir)/lib/ext2fs/ext2_err.h \
161 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
7dec050a 162set_fields.o: $(srcdir)/set_fields.c $(srcdir)/debugfs.h \
797f5ef1 163 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 164 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 165 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
166 $(top_builddir)/lib/ext2fs/ext2_err.h \
167 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
168 $(top_srcdir)/lib/e2p/e2p.h
96b5cacc
TT
169logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
170 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 171 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 172 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
173 $(top_builddir)/lib/ext2fs/ext2_err.h \
174 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
75e93ab0 175 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
e1f08507 176 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
7380ac90
TT
177htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
178 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 179 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 180 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
181 $(top_builddir)/lib/ext2fs/ext2_err.h \
182 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
183 $(top_srcdir)/lib/e2p/e2p.h
75e93ab0
TT
184unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \
185 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 186 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 187 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
188 $(top_builddir)/lib/ext2fs/ext2_err.h \
189 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h