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