Whamcloud - gitweb
264d04258a98297cc5ea4e43b443aada0a5242d0
[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 INSTALL = @INSTALL@
10
11 @MCONFIG@
12
13 PROGS=          debugfs
14 MANPAGES=       debugfs.8
15
16 MK_CMDS=        ../lib/ss/mk_cmds
17
18 DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o lsdel.o dump.o
19
20 SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c \
21         $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \
22         $(srcdir)/dump.c
23
24 LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) 
25 DEPLIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) 
26
27 .c.o:
28         $(CC) -c $(ALL_CFLAGS) $< -o $@
29
30 all:: $(PROGS) $(MANPAGES)
31
32 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
33         $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS)
34
35 debug_cmds.c debug_cmds.h: debug_cmds.ct
36         $(MK_CMDS) $(srcdir)/debug_cmds.ct
37
38 debugfs.8: $(SUBSTITUTE) $(srcdir)/debugfs.8.in
39         -$(CHMOD) +x $(SUBSTITUTE)
40         $(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8
41
42 installdirs:
43         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(usbindir) \
44                 $(DESTDIR)$(man8dir) $(DESTDIR)$(cat8dir)
45
46 install: $(PROGS) $(MANPAGES) installdirs
47         for i in $(PROGS); do \
48                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(usbindir)/$$i; \
49                 $(STRIP) $(DESTDIR)$(usbindir)/$$i; \
50         done
51         for i in $(MANPAGES); do \
52                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
53         done
54
55 uninstall:
56         for i in $(PROGS); do \
57                 $(RM) -f $(usbindir)/$$i; \
58         done
59         for i in $(MANPAGES); do \
60                 $(RM) -f $(man8dir)/$$i; \
61         done
62
63 clean:
64         $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core
65
66 mostlyclean: clean
67 distclean: clean
68         $(RM) -f debug_cmds.c .depend Makefile
69
70 # +++ Dependency line eater +++
71
72 # Makefile dependencies follow.  This must be the last section in
73 # the Makefile.in file
74 #
75 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h $(top_srcdir)/lib/ss/copyright.h \
76  $(top_builddir)/lib/ss/ss_err.h
77 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
78  $(top_srcdir)/lib/ss/ss.h $(top_srcdir)/lib/ss/copyright.h \
79  $(top_builddir)/lib/ss/ss_err.h $(srcdir)/debugfs.h \
80  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/bitops.h \
81  $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h
82 util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
83  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
84  $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
85  $(top_srcdir)/lib/ext2fs/bitops.h
86 ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \
87  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
88  $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
89  $(top_srcdir)/lib/ext2fs/bitops.h
90 icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \
91  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
92  $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
93  $(top_srcdir)/lib/ext2fs/bitops.h
94 lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \
95  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
96  $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
97  $(top_srcdir)/lib/ext2fs/bitops.h
98 dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \
99  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
100  $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
101  $(top_srcdir)/lib/ext2fs/bitops.h
102