]> git.wh0rd.org - dump.git/blob - MCONFIG.in
Added version in usage text.
[dump.git] / MCONFIG.in
1 # $Id: MCONFIG.in,v 1.5 1999/10/13 09:57:12 stelian Exp $
2
3 VPATH= $(srcdir)
4
5 top_builddir= @top_builddir@
6
7 VERSION= 0.4b7
8 DATE= October 8, 1999
9
10 AR= @AR@
11 CC= @CC@
12 INSTALL= @INSTALL@
13 LD= @LD@
14 LN_S= @LN_S@
15 MV= @MV@
16 RANLIB= @RANLIB@
17 RM= @RM@
18
19 BINOWNER= @BINOWNER@
20 BINGRP= @BINGRP@
21 BINMODE= @BINMODE@
22 MANOWNER= @MANOWNER@
23 MANGRP= @MANGRP@
24 MANMODE= @MANMODE@
25
26 INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
27 INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
28
29 BINDIR= /sbin
30 MANDIR= /usr/man/man8
31
32 DUMPDATESPATH= @DUMPDATESPATH@
33 #
34 # Global include directories
35 #
36 GINC= -I$(top_builddir) -I$(top_srcdir)/compat/include
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
47 GLIBS= $(GLIBDIR) -L../compat/lib -lcompat -lext2fs -lcom_err
48
49 #
50 # Definitions (don't change them unless you know what you are doing)
51 #
52 DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG -D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\"
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