]>
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 TT |
10 | INSTALL = @INSTALL@ |
11 | ||
12 | @MCONFIG@ | |
13 | ||
14 | PROGS= debugfs | |
15 | MANPAGES= debugfs.8 | |
16 | ||
17 | MK_CMDS= ../lib/ss/mk_cmds | |
18 | ||
521e3685 | 19 | DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o lsdel.o dump.o |
50e1e10f | 20 | |
521e3685 | 21 | SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \ |
50e1e10f TT |
22 | $(srcdir)/ncheck.c $(srcdir)/icheck.c $(srcdir)/lsdel.c \ |
23 | $(srcdir)/dump.c | |
24 | ||
d3aea7dc TT |
25 | LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID) |
26 | DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBUUID) | |
50e1e10f TT |
27 | |
28 | .c.o: | |
74becf3c | 29 | $(CC) -c $(ALL_CFLAGS) $< -o $@ |
50e1e10f | 30 | |
62c06f79 | 31 | all:: $(PROGS) $(MANPAGES) |
50e1e10f TT |
32 | |
33 | debugfs: $(DEBUG_OBJS) $(DEPLIBS) | |
74becf3c | 34 | $(CC) $(ALL_LDFLAGS) -o debugfs $(DEBUG_OBJS) $(LIBS) |
50e1e10f TT |
35 | |
36 | debug_cmds.c debug_cmds.h: debug_cmds.ct | |
37 | $(MK_CMDS) $(srcdir)/debug_cmds.ct | |
38 | ||
44339bdf | 39 | debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in |
62c06f79 TT |
40 | $(SUBSTITUTE) $(srcdir)/debugfs.8.in debugfs.8 |
41 | ||
50e1e10f | 42 | installdirs: |
7e44f242 TT |
43 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(root_sbindir) \ |
44 | $(DESTDIR)$(man8dir) | |
50e1e10f TT |
45 | |
46 | install: $(PROGS) $(MANPAGES) installdirs | |
47 | for i in $(PROGS); do \ | |
7e44f242 TT |
48 | $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \ |
49 | $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \ | |
50e1e10f TT |
50 | done |
51 | for i in $(MANPAGES); do \ | |
74becf3c | 52 | $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \ |
50e1e10f TT |
53 | done |
54 | ||
55 | uninstall: | |
56 | for i in $(PROGS); do \ | |
7e44f242 | 57 | $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \ |
50e1e10f TT |
58 | done |
59 | for i in $(MANPAGES); do \ | |
7e44f242 | 60 | $(RM) -f $(DESTDIR)$(man8dir)/$$i; \ |
50e1e10f TT |
61 | done |
62 | ||
63 | clean: | |
62c06f79 TT |
64 | $(RM) -f debugfs debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c core |
65 | ||
50e1e10f TT |
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 | # | |
21c84b71 | 75 | debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \ |
d3aea7dc | 76 | $(top_builddir)/lib/ss/ss_err.h |
62c06f79 | 77 | debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \ |
d3aea7dc TT |
78 | $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ |
79 | $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ | |
80 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
81 | $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \ | |
9094f284 | 82 | $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/../version.h |
dba838b0 | 83 | util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \ |
62c06f79 | 84 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ |
d40259fd | 85 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
62c06f79 | 86 | $(top_srcdir)/lib/ext2fs/bitops.h |
6c133523 TT |
87 | ls.o: $(srcdir)/ls.c $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
88 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
89 | $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h | |
dba838b0 TT |
90 | ncheck.o: $(srcdir)/ncheck.c $(srcdir)/debugfs.h \ |
91 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
d40259fd | 92 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
2ecc6fef | 93 | $(top_srcdir)/lib/ext2fs/bitops.h |
62c06f79 TT |
94 | icheck.o: $(srcdir)/icheck.c $(srcdir)/debugfs.h \ |
95 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
d40259fd | 96 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
62c06f79 TT |
97 | $(top_srcdir)/lib/ext2fs/bitops.h |
98 | lsdel.o: $(srcdir)/lsdel.c $(srcdir)/debugfs.h \ | |
99 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
d40259fd | 100 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
62c06f79 TT |
101 | $(top_srcdir)/lib/ext2fs/bitops.h |
102 | dump.o: $(srcdir)/dump.c $(srcdir)/debugfs.h \ | |
103 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \ | |
d40259fd | 104 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ |
62c06f79 | 105 | $(top_srcdir)/lib/ext2fs/bitops.h |