]>
Commit | Line | Data |
---|---|---|
50e1e10f TT |
1 | # |
2 | # Standard e2fsprogs prologue.... | |
3 | # | |
4 | ||
5 | srcdir = @srcdir@ | |
6 | top_srcdir = @top_srcdir@ | |
7 | VPATH = @srcdir@ | |
8 | top_builddir = .. | |
fc6d9d51 | 9 | my_dir = debugfs |
50e1e10f | 10 | INSTALL = @INSTALL@ |
3ae497ea | 11 | DLOPEN_LIB = @DLOPEN_LIB@ |
50e1e10f TT |
12 | |
13 | @MCONFIG@ | |
14 | ||
15 | PROGS= debugfs | |
16 | MANPAGES= debugfs.8 | |
17 | ||
619dd191 | 18 | MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds |
50e1e10f | 19 | |
c6bd0c97 | 20 | DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \ |
a5fdcd59 | 21 | lsdel.o dump.o setsuper.o logdump.o htree.o unused.o |
50e1e10f | 22 | |
521e3685 | 23 | SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \ |
50e1e10f | 24 | $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \ |
df614db6 | 25 | $(srcdir)/dump.c $(srcdir)/setsuper.c ${srcdir}/logdump.c \ |
a5fdcd59 | 26 | $(srcdir)/htree.c $(srcdir)/unused.c |
50e1e10f | 27 | |
3ae497ea TT |
28 | LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \ |
29 | $(LIBUUID) $(DLOPEN_LIB) | |
f364093b | 30 | DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) $(DEPLIBUUID) |
50e1e10f TT |
31 | |
32 | .c.o: | |
47204ff9 TT |
33 | @echo " CC $<" |
34 | @$(CC) -c $(ALL_CFLAGS) $< -o $@ | |
50e1e10f | 35 | |
62c06f79 | 36 | all:: $(PROGS) $(MANPAGES) |
50e1e10f TT |
37 | |
38 | debugfs: $(DEBUG_OBJS) $(DEPLIBS) | |
47204ff9 TT |
39 | @echo " LD $@" |
40 | @$(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS) | |
50e1e10f TT |
41 | |
42 | debug_cmds.c debug_cmds.h: debug_cmds.ct | |
47204ff9 TT |
43 | @echo " MK_CMDS $@" |
44 | @$(MK_CMDS) $(srcdir)/debug_cmds.ct | |
50e1e10f | 45 | |
44339bdf | 46 | debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in |
47204ff9 TT |
47 | @echo " SUBST $@" |
48 | @$(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8 | |
62c06f79 | 49 | |
50e1e10f | 50 | installdirs: |
522798d3 TT |
51 | @echo " MKINSTALLDIRS $(root_sbindir) $(man8dir)" |
52 | @$(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \ | |
7e44f242 | 53 | $(DESTDIR)$(man8dir) |
50e1e10f TT |
54 | |
55 | install: $(PROGS) $(MANPAGES) installdirs | |
522798d3 TT |
56 | @for i in $(PROGS); do \ |
57 | echo " INSTALL $(root_sbindir)/$$i"; \ | |
7e44f242 | 58 | $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \ |
50e1e10f | 59 | done |
522798d3 | 60 | @for i in $(MANPAGES); do \ |
482afc44 TT |
61 | for j in $(COMPRESS_EXT); do \ |
62 | $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \ | |
63 | done; \ | |
522798d3 | 64 | echo " INSTALL_DATA $(man8dir)/$$i"; \ |
74becf3c | 65 | $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \ |
50e1e10f TT |
66 | done |
67 | ||
522798d3 TT |
68 | install-strip: install |
69 | @for i in $(PROGS); do \ | |
70 | echo " STRIP $(root_sbindir)/$$i"; \ | |
71 | $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \ | |
72 | done | |
73 | ||
50e1e10f TT |
74 | uninstall: |
75 | for i in $(PROGS); do \ | |
7e44f242 | 76 | $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ |
50e1e10f TT |
77 | done |
78 | for i in $(MANPAGES); do \ | |
7e44f242 | 79 | $(RM) -f $(DESTDIR)$(man8dir)/$$i; \ |
50e1e10f TT |
80 | done |
81 | ||
82 | clean: | |
62c06f79 TT |
83 | $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core |
84 | ||
50e1e10f TT |
85 | mostlyclean: clean |
86 | distclean: clean | |
5c36a2f8 TT |
87 | $(RM) -f debug_cmds.c .depend Makefile $(srcdir)/TAGS \ |
88 | $(srcdir)/Makefile.in.old | |
50e1e10f TT |
89 | |
90 | # +++ Dependency line eater +++ | |
91 | # | |
92 | # Makefile dependencies follow. This must be the last section in | |
93 | # the Makefile.in file | |
94 | # | |
96b5cacc | 95 | debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \ |
a2146af2 | 96 | $(top_builddir)/lib/ss/ss_err.h $(top_srcdir)/lib/et/com_err.h |
62c06f79 | 97 | debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \ |
d3aea7dc | 98 | $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ |
54c637d4 | 99 | $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
797f5ef1 TT |
100 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
101 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
102 | $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \ | |
103 | $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h | |
dba838b0 | 104 | util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \ |
797f5ef1 | 105 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
54c637d4 TT |
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 | |
797f5ef1 TT |
109 | ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
110 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ | |
0e8a9560 TT |
111 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
112 | $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h | |
797f5ef1 TT |
113 | ncheck.o: $(srcdir)/ncheck.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 | |
62c06f79 | 118 | icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \ |
797f5ef1 TT |
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 | |
62c06f79 | 123 | lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \ |
797f5ef1 TT |
124 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
125 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
126 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
127 | $(top_srcdir)/lib/ext2fs/bitops.h | |
62c06f79 | 128 | dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \ |
797f5ef1 TT |
129 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
130 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
131 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
132 | $(top_srcdir)/lib/ext2fs/bitops.h | |
0e8a9560 | 133 | setsuper.o: $(srcdir)/setsuper.c $(srcdir)/debugfs.h \ |
797f5ef1 TT |
134 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
135 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
136 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
f606dd32 TT |
137 | $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \ |
138 | $(top_srcdir)/lib/e2p/e2p.h | |
96b5cacc TT |
139 | logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \ |
140 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ | |
141 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
142 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
6cca7ba9 TT |
143 | $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/blkid/blkid.h \ |
144 | $(top_builddir)/lib/blkid/blkid_types.h $(srcdir)/jfs_user.h \ | |
96b5cacc TT |
145 | $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \ |
146 | $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/lib/uuid/uuid.h | |
7380ac90 TT |
147 | htree.o: $(srcdir)/htree.c $(srcdir)/debugfs.h \ |
148 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ | |
149 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
150 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
151 | $(top_srcdir)/lib/ext2fs/bitops.h |