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