]>
Commit | Line | Data |
---|---|---|
1227625a SP |
1 | VPATH= $(srcdir) |
2 | ||
3 | top_builddir= @top_builddir@ | |
4 | ||
d56b7aa4 SP |
5 | VERSION= 0.4b19 |
6 | DATE= August 20, 2000 | |
8d4197bb | 7 | |
1227625a SP |
8 | AR= @AR@ |
9 | CC= @CC@ | |
10 | INSTALL= @INSTALL@ | |
11 | LD= @LD@ | |
12 | LN_S= @LN_S@ | |
13 | MV= @MV@ | |
14 | RANLIB= @RANLIB@ | |
15 | RM= @RM@ | |
16 | ||
17 | BINOWNER= @BINOWNER@ | |
18 | BINGRP= @BINGRP@ | |
19 | BINMODE= @BINMODE@ | |
20 | MANOWNER= @MANOWNER@ | |
21 | MANGRP= @MANGRP@ | |
22 | MANMODE= @MANMODE@ | |
23 | ||
24 | INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE) | |
25 | INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE) | |
26 | ||
27 | BINDIR= /sbin | |
28 | MANDIR= /usr/man/man8 | |
29 | ||
8d4197bb | 30 | DUMPDATESPATH= @DUMPDATESPATH@ |
1227625a SP |
31 | # |
32 | # Global include directories | |
33 | # | |
ddd2ef55 | 34 | GINC= -I$(top_builddir) -I$(top_srcdir)/compat/include |
1227625a SP |
35 | # indicate where the ext2fs library can be found (this is not needed if you |
36 | # have run `make install-libs' in the e2fsprogs source directory). | |
37 | #GINC+= -I/usr/src/e2fsprogs-0.5c/lib | |
38 | ||
39 | # | |
40 | # Global libraries | |
41 | # | |
42 | # indicate where the ext2fs library can be found (this is not needed if you | |
43 | # have run `make install-libs' in the e2fsprogs source directory). | |
44 | #GLIBDIR= -L/usr/src/e2fsprogs-0.5c/lib | |
ddd2ef55 | 45 | GLIBS= $(GLIBDIR) -L../compat/lib -lcompat -lext2fs -lcom_err |
1227625a SP |
46 | |
47 | # | |
48 | # Definitions (don't change them unless you know what you are doing) | |
49 | # | |
2ed89fda | 50 | DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG -D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\" @OPTDEFS@ |
1227625a SP |
51 | |
52 | all:: | |
53 | ||
54 | # | |
55 | # Autoconf magic | |
56 | # | |
57 | ||
58 | $(top_builddir)/config.status: $(top_srcdir)/configure | |
59 | (cd $(top_builddir); ./config.status --recheck) | |
60 | ||
61 | $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in \ | |
62 | $(top_builddir)/config.status | |
63 | (cd $(top_builddir); ./config.status) | |
64 | ||
65 | $(top_builddir)/config.h: $(top_srcdir)/config.h.in \ | |
66 | $(top_builddir)/config.status | |
67 | (cd $(top_builddir); ./config.status) | |
68 | ||
69 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \ | |
70 | $(top_builddir)/config.status | |
71 | (cd $(top_builddir); ./config.status) | |
72 | ||
73 | $(top_srcdir)/configure: $(top_srcdir)/configure.in | |
74 | cd $(top_srcdir) && autoconf | |
75 | ||
76 | $(top_srcdir)/config.h.in: $(top_srcdir)/configure.in | |
77 | cd $(top_srcdir) && autoheader | |
78 | ||
79 | # | |
80 | # Make depend magic | |
81 | # | |
82 | ||
83 | .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed | |
84 | if test -n "$(SRCS)" ; then \ | |
85 | $(CC) -M $(CFLAGS) $(SRCS) | \ | |
86 | sed -f $(top_srcdir)/depfix.sed \ | |
87 | -e 's; $(srcdir)/; $$(srcdir)/;g' \ | |
88 | -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \ | |
89 | -e 's; $(top_builddir)/; $$(top_builddir)/;g' \ | |
90 | -e 's; \./; ;g' \ | |
91 | -e '/^ *\\$$/d' > .depend; \ | |
92 | else :; fi | |
93 | ||
94 | depend:: .depend | |
95 | if test -n "$(SRCS)" ; then \ | |
96 | sed -e '/^# +++ Dependency line eater +++/,$$d' \ | |
97 | < Makefile | cat - .depend \ | |
98 | > Makefile.new; \ | |
99 | $(MV) Makefile Makefile.old; \ | |
100 | $(MV) Makefile.new Makefile; \ | |
101 | else :; fi |