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