Imported Upstream version 1.42.4
[platform/upstream/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
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 e2freefrag.o \
21         filefrag.o
22
23 RO_DEBUG_OBJS= ro_debug_cmds.o ro_debugfs.o util.o ncheck.o icheck.o ls.o \
24         lsdel.o logdump.o htree.o e2freefrag.o filefrag.o
25
26 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
27         $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
28         $(srcdir)/dump.c $(srcdir)/set_fields.c ${srcdir}/logdump.c \
29         $(srcdir)/htree.c $(srcdir)/unused.c ${srcdir}/../misc/e2freefrag.c \
30         $(srcdir)/filefrag.c
31
32 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
33         $(LIBUUID)
34 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(DEPLIBSS) $(DEPLIBCOM_ERR) \
35         $(DEPLIBBLKID) $(DEPLIBUUID)
36
37 .c.o:
38         $(E) "  CC $<"
39         $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
40
41 all:: $(PROGS) $(MANPAGES)
42
43 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
44         $(E) "  LD $@"
45         $(Q) $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
46
47 rdebugfs: $(RO_DEBUG_OBJS) $(DEPLIBS)
48         $(E) "  LD $@"
49         $(Q) $(CC) $(ALL_LDFLAGS) -o rdebugfs $(RO_DEBUG_OBJS) $(LIBS)
50
51 debug_cmds.c debug_cmds.h: debug_cmds.ct
52         $(E) "  MK_CMDS $@"
53         $(Q) $(MK_CMDS) $(srcdir)/debug_cmds.ct
54
55 ro_debug_cmds.c ro_debug_cmds.h: ro_debug_cmds.ct
56         $(E) "  MK_CMDS $@"
57         $(Q) $(MK_CMDS) $(srcdir)/ro_debug_cmds.ct
58
59 ro_debugfs.o: debugfs.c
60         $(E) "  CC $@"
61         $(Q) $(CC) -c $(ALL_CFLAGS) $< -DREAD_ONLY -o $@
62
63 e2freefrag.o: $(srcdir)/../misc/e2freefrag.c
64         $(E) "  CC $@"
65         $(Q) $(CC) -c $(ALL_CFLAGS) -I$(srcdir) $< -DDEBUGFS -o $@
66
67 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
68         $(E) "  SUBST $@"
69         $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
70
71 installdirs:
72         $(E) "  MKINSTALLDIRS $(root_sbindir) $(man8dir)"
73         $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
74                 $(DESTDIR)$(man8dir)
75
76 install: $(PROGS) $(MANPAGES) installdirs
77         $(Q) for i in $(PROGS); do \
78                 echo "  INSTALL $(root_sbindir)/$$i"; \
79                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
80         done
81         $(Q) for i in $(MANPAGES); do \
82                 for j in $(COMPRESS_EXT); do \
83                         $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
84                 done; \
85                 echo "  INSTALL_DATA $(man8dir)/$$i"; \
86                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
87         done
88
89 install-strip: install
90         $(Q) for i in $(PROGS); do \
91                 echo "  STRIP $(root_sbindir)/$$i"; \
92                 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
93         done
94
95 uninstall:
96         for i in $(PROGS); do \
97                 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
98         done
99         for i in $(MANPAGES); do \
100                 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
101         done
102
103 clean:
104         $(RM) -f $(PROGS) debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c \
105                 ro_debug_cmds.c core rdebugfs
106
107 mostlyclean: clean
108 distclean: clean
109         $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
110                 $(srcdir)/Makefile.in.old
111
112 # +++ Dependency line eater +++
113
114 # Makefile dependencies follow.  This must be the last section in
115 # the Makefile.in file
116 #
117 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
118  $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
119 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
120  $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
121  $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
122  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
123  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
124  $(top_builddir)/lib/ext2fs/ext2_err.h \
125  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
126  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/jfs_user.h \
127  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
128  $(top_srcdir)/lib/ext2fs/kernel-list.h
129 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
130  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
131  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
132  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
133  $(top_builddir)/lib/ext2fs/ext2_err.h \
134  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
135 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
136  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
137  $(top_srcdir)/lib/ext2fs/ext3_extents.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/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
140 ncheck.o: $(srcdir)/ncheck.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 icheck.o: $(srcdir)/icheck.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 lsdel.o: $(srcdir)/lsdel.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 dump.o: $(srcdir)/dump.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 set_fields.o: $(srcdir)/set_fields.c $(srcdir)/debugfs.h \
165  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
166  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
167  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
168  $(top_builddir)/lib/ext2fs/ext2_err.h \
169  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
170  $(top_srcdir)/lib/e2p/e2p.h
171 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
172  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
173  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
174  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
175  $(top_builddir)/lib/ext2fs/ext2_err.h \
176  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
177  $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
178  $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
179 htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
180  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
181  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
182  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
183  $(top_builddir)/lib/ext2fs/ext2_err.h \
184  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
185  $(top_srcdir)/lib/e2p/e2p.h
186 unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \
187  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
188  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
189  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
190  $(top_builddir)/lib/ext2fs/ext2_err.h \
191  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h