Whamcloud - gitweb
Many files:
[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= -L../lib -lss -lcom_err -lext2fs
25 DEPLIBS= ../lib/libss.a ../lib/libcom_err.a ../lib/libext2fs.a
26
27 .c.o:
28         $(CC) -c $(CFLAGS) $< -o $@
29
30 all:: $(PROGS)
31
32 debugfs: $(DEBUG_OBJS) $(DEPLIBS)
33         $(CC) $(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 installdirs:
39         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(usbindir) \
40                 $(DESTDIR)$(man8dir) $(DESTDIR)$(cat8dir)
41
42 install: $(PROGS) $(MANPAGES) installdirs
43         for i in $(PROGS); do \
44                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(usbindir)/$$i; \
45                 $(STRIP) $(DESTDIR)$(usbindir)/$$i; \
46         done
47         for i in $(MANPAGES); do \
48                 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(man8dir)/$$i; \
49         done
50
51 uninstall:
52         for i in $(PROGS); do \
53                 $(RM) -f $(usbindir)/$$i; \
54         done
55         for i in $(MANPAGES); do \
56                 $(RM) -f $(man8dir)/$$i; \
57         done
58
59 clean:
60         $(RM) -f debugfs \#* *.s *.o *.a *~ debug_cmds.c core
61 mostlyclean: clean
62 distclean: clean
63         $(RM) -f debug_cmds.c .depend Makefile
64
65 # +++ Dependency line eater +++
66
67 # Makefile dependencies follow.  This must be the last section in
68 # the Makefile.in file
69 #
70 debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
71   $(top_srcdir)/lib/ss/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h
72 debugfs.o: $(srcdir)/debugfs.c \
73   $(top_srcdir)/lib/et/com_err.h \
74   $(top_srcdir)/lib/ss/ss.h $(top_srcdir)/lib/ss/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h \
75   $(srcdir)/debugfs.h \
76   $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
77   $(top_srcdir)/lib/ext2fs/bitops.h
78 util.o: $(srcdir)/util.c \
79   $(srcdir)/debugfs.h \
80   $(top_srcdir)/lib/ext2fs/ext2fs.h \
81   $(top_srcdir)/lib/et/com_err.h \
82   $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
83 ncheck.o: $(srcdir)/ncheck.c \
84   $(srcdir)/debugfs.h \
85   $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
86   $(top_srcdir)/lib/ext2fs/io.h \
87   $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
88 icheck.o: $(srcdir)/icheck.c \
89   $(srcdir)/debugfs.h \
90   $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
91   $(top_srcdir)/lib/ext2fs/io.h \
92   $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
93 lsdel.o: $(srcdir)/lsdel.c \
94   $(srcdir)/debugfs.h \
95   $(top_srcdir)/lib/ext2fs/ext2fs.h \
96   $(top_srcdir)/lib/et/com_err.h \
97   $(top_srcdir)/lib/ext2fs/io.h $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
98 dump.o: $(srcdir)/dump.c \
99   $(srcdir)/debugfs.h \
100   $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
101   $(top_srcdir)/lib/ext2fs/io.h \
102   $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h
103