]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - debugfs/Makefile.in
debugfs: build read-only variant of debugfs
[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 \
7dec050a 20 lsdel.o dump.o set_fields.o logdump.o htree.o unused.o
50e1e10f 21
e88c5a33
TT
22RO_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
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
44339bdf 61debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
c13351f6
TT
62 $(E) " SUBST $@"
63 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8
62c06f79 64
50e1e10f 65installdirs:
c13351f6
TT
66 $(E) " MKINSTALLDIRS $(root_sbindir) $(man8dir)"
67 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \
7e44f242 68 $(DESTDIR)$(man8dir)
50e1e10f
TT
69
70install: $(PROGS) $(MANPAGES) installdirs
c13351f6 71 $(Q) for i in $(PROGS); do \
522798d3 72 echo " INSTALL $(root_sbindir)/$$i"; \
7e44f242 73 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
50e1e10f 74 done
c13351f6 75 $(Q) for i in $(MANPAGES); do \
482afc44
TT
76 for j in $(COMPRESS_EXT); do \
77 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
78 done; \
522798d3 79 echo " INSTALL_DATA $(man8dir)/$$i"; \
74becf3c 80 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
50e1e10f
TT
81 done
82
522798d3 83install-strip: install
c13351f6 84 $(Q) for i in $(PROGS); do \
522798d3
TT
85 echo " STRIP $(root_sbindir)/$$i"; \
86 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
87 done
88
50e1e10f
TT
89uninstall:
90 for i in $(PROGS); do \
7e44f242 91 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
50e1e10f
TT
92 done
93 for i in $(MANPAGES); do \
7e44f242 94 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
50e1e10f
TT
95 done
96
97clean:
e88c5a33
TT
98 $(RM) -f $(PROGS) debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c \
99 ro_debug_cmds.c core
62c06f79 100
50e1e10f
TT
101mostlyclean: clean
102distclean: clean
5c36a2f8
TT
103 $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
104 $(srcdir)/Makefile.in.old
50e1e10f
TT
105
106# +++ Dependency line eater +++
107#
108# Makefile dependencies follow. This must be the last section in
109# the Makefile.in file
110#
96b5cacc 111debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
a2146af2 112 $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h
62c06f79 113debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
d3aea7dc 114 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
e1f08507
TT
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
dba838b0 123util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
797f5ef1 124 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 125 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
0e8a9560 126 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
127 $(top_builddir)/lib/ext2fs/ext2_err.h \
128 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
75e93ab0
TT
129ls.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 \
e1f08507 131 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
797f5ef1 132 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
e1f08507 133 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
75e93ab0
TT
134ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
135 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 136 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 137 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
138 $(top_builddir)/lib/ext2fs/ext2_err.h \
139 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
62c06f79 140icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
797f5ef1 141 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 142 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 143 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
144 $(top_builddir)/lib/ext2fs/ext2_err.h \
145 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
62c06f79 146lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
797f5ef1 147 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 148 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 149 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
150 $(top_builddir)/lib/ext2fs/ext2_err.h \
151 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
62c06f79 152dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
797f5ef1 153 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 154 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 155 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
156 $(top_builddir)/lib/ext2fs/ext2_err.h \
157 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
7dec050a 158set_fields.o: $(srcdir)/set_fields.c $(srcdir)/debugfs.h \
797f5ef1 159 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 160 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 161 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
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
96b5cacc
TT
165logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
166 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 167 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 168 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
169 $(top_builddir)/lib/ext2fs/ext2_err.h \
170 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
75e93ab0 171 $(srcdir)/jfs_user.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
e1f08507 172 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
7380ac90
TT
173htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
174 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 175 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 176 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
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
75e93ab0
TT
180unused.o: $(srcdir)/unused.c $(srcdir)/debugfs.h \
181 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
e1f08507 182 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
75e93ab0 183 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
e1f08507
TT
184 $(top_builddir)/lib/ext2fs/ext2_err.h \
185 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h