Whamcloud - gitweb
Update debugfs and e2fsck to use the blkid library.
[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) $(LIBBLKID) $(LIBUUID)
28 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) $(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                 for j in $(COMPRESS_EXT); do \
55                         $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
56                 done; \
57                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
58         done
59
60 uninstall:
61         for i in $(PROGS); do \
62                 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
63         done
64         for i in $(MANPAGES); do \
65                 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
66         done
67
68 clean:
69         $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
70
71 mostlyclean: clean
72 distclean: clean
73         $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \
74                 $(srcdir)/Makefile.in.old
75
76 # +++ Dependency line eater +++
77
78 # Makefile dependencies follow.  This must be the last section in
79 # the Makefile.in file
80 #
81 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
82  $(top_builddir)/lib/ss/ss_err.h
83 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
84  $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
85  $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
86  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
87  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
88  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
89  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h
90 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
91  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
92  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
93  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
94  $(top_srcdir)/lib/ext2fs/bitops.h
95 ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
96  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
97  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
98  $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
99 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
100  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
101  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
102  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
103  $(top_srcdir)/lib/ext2fs/bitops.h
104 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
105  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
106  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
107  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
108  $(top_srcdir)/lib/ext2fs/bitops.h
109 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
110  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
111  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
112  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
113  $(top_srcdir)/lib/ext2fs/bitops.h
114 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
115  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
116  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
117  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
118  $(top_srcdir)/lib/ext2fs/bitops.h
119 setsuper.o: $(srcdir)/setsuper.c $(srcdir)/debugfs.h \
120  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
121  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
122  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
123  $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
124  $(top_srcdir)/lib/e2p/e2p.h
125 logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
126  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
127  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
128  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
129  $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/jfs_user.h \
130  $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
131  $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h
132 htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \
133  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
134  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
135  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
136  $(top_srcdir)/lib/ext2fs/bitops.h