Whamcloud - gitweb
debugfs: build read-only variant of debugfs
[tools/e2fsprogs.git] / debugfs / Makefile.in
1 #
2 # Standard e2fsprogs prologue....
3 #
4
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7 VPATH = @srcdir@
8 top_builddir = ..
9 my_dir = debugfs
10 INSTALL = @INSTALL@
11
12 @MCONFIG@
13
14 PROGS=          debugfs rdebugfs
15 MANPAGES=       debugfs.8
16
17 MK_CMDS=        _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
18
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
21
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
24
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
29
30 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
31         $(LIBUUID)
32 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(DEPLIBSS) $(DEPLIBCOM_ERR) \
33         $(DEPLIBBLKID) $(DEPLIBUUID)
34
35 .c.o:
36         $(E) "  CC $<"
37         $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
38
39 all:: $(PROGS) $(MANPAGES)
40
41 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
42         $(E) "  LD $@"
43         $(Q) $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
44
45 rdebugfs: $(RO_DEBUG_OBJS) $(DEPLIBS)
46         $(E) "  LD $@"
47         $(Q) $(CC) $(ALL_LDFLAGS) -o rdebugfs $(RO_DEBUG_OBJS) $(LIBS)
48
49 debug_cmds.c debug_cmds.h: debug_cmds.ct
50         $(E) "  MK_CMDS $@"
51         $(Q) $(MK_CMDS) $(srcdir)/debug_cmds.ct
52
53 ro_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
57 ro_debugfs.o: debugfs.c
58         $(E) "  CC $@"
59         $(Q) $(CC) -c $(ALL_CFLAGS) $< -DREAD_ONLY -o $@
60
61 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
62         $(E) "  SUBST $@"
63         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
64
65 installdirs:
66         $(E) "  MKINSTALLDIRS $(root_sbindir) $(man8dir)"
67         $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
68                 $(DESTDIR)$(man8dir)
69
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; \
74         done
75         $(Q) for i in $(MANPAGES); do \
76                 for j in $(COMPRESS_EXT); do \
77                         $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
78                 done; \
79                 echo "  INSTALL_DATA $(man8dir)/$$i"; \
80                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
81         done
82
83 install-strip: install
84         $(Q) for i in $(PROGS); do \
85                 echo "  STRIP $(root_sbindir)/$$i"; \
86                 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
87         done
88
89 uninstall:
90         for i in $(PROGS); do \
91                 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
92         done
93         for i in $(MANPAGES); do \
94                 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
95         done
96
97 clean:
98         $(RM) -f $(PROGS) debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c \
99                 ro_debug_cmds.c core
100
101 mostlyclean: clean
102 distclean: clean
103         $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
104                 $(srcdir)/Makefile.in.old
105
106 # +++ Dependency line eater +++
107
108 # Makefile dependencies follow.  This must be the last section in
109 # the Makefile.in file
110 #
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