Whamcloud - gitweb
Two bug fixes to debugfs, courtesy of Jaroslav Drzik <jdrzik@host.sk> for suggesting...
[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
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 setsuper.o logdump.o htree.o
21
22 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
23         $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
24         $(srcdir)/dump.c $(srcdir)/setsuper.c ${srcdir}/logdump.c \
25         $(srcdir)/htree.c
26
27 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR)  $(LIBUUID)
28 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR)  $(DEPLIBUUID)
29
30 .c.o:
31         $(CC) -c $(ALL_CFLAGS) $< -o $@
32
33 all:: $(PROGS) $(MANPAGES)
34
35 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
36         $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
37
38 debug_cmds.c debug_cmds.h: debug_cmds.ct
39         $(MK_CMDS) $(srcdir)/debug_cmds.ct
40
41 debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in
42         $(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
43
44 installdirs:
45         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \
46                 $(DESTDIR)$(man8dir)
47
48 install: $(PROGS) $(MANPAGES) installdirs
49         for i in $(PROGS); do \
50                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
51                 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
52         done
53         for i in $(MANPAGES); do \
54                 $(RM) -f $(DESTDIR)$(man8dir)/$$i.gz; \
55                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
56         done
57
58 uninstall:
59         for i in $(PROGS); do \
60                 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
61         done
62         for i in $(MANPAGES); do \
63                 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
64         done
65
66 clean:
67         $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
68
69 mostlyclean: clean
70 distclean: clean
71         $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
72                 $(srcdir)/Makefile.in.old
73
74 # +++ Dependency line eater +++
75
76 # Makefile dependencies follow.  This must be the last section in
77 # the Makefile.in file
78 #
79 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
80  $(top_builddir)/lib/ss/ss_err.h
81 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
82  $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
83  $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
84  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
85  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
86  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
87  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h
88 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
89  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
90  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
91  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
92  $(top_srcdir)/lib/ext2fs/bitops.h
93 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
94  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
95  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
96  $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
97 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
98  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
99  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
100  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
101  $(top_srcdir)/lib/ext2fs/bitops.h
102 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
103  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
104  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
105  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
106  $(top_srcdir)/lib/ext2fs/bitops.h
107 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
108  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
109  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
110  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
111  $(top_srcdir)/lib/ext2fs/bitops.h
112 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
113  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
114  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
115  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
116  $(top_srcdir)/lib/ext2fs/bitops.h
117 setsuper.o: $(srcdir)/setsuper.c $(srcdir)/debugfs.h \
118  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
119  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
120  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
121  $(top_srcdir)/lib/ext2fs/bitops.h
122 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
123  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
124  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
125  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
126  $(top_srcdir)/lib/ext2fs/bitops.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 $(top_srcdir)/lib/uuid/uuid.h
129 htree.o: $(srcdir)/htree.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/et/com_err.h \
132  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
133  $(top_srcdir)/lib/ext2fs/bitops.h