]> git.wh0rd.org - dump.git/blame - MCONFIG.in
Added version in usage text.
[dump.git] / MCONFIG.in
CommitLineData
df9ae507 1# $Id: MCONFIG.in,v 1.5 1999/10/13 09:57:12 stelian Exp $
ec387a12 2
1227625a
SP
3VPATH= $(srcdir)
4
5top_builddir= @top_builddir@
6
df9ae507 7VERSION= 0.4b7
8d4197bb
SP
8DATE= October 8, 1999
9
1227625a
SP
10AR= @AR@
11CC= @CC@
12INSTALL= @INSTALL@
13LD= @LD@
14LN_S= @LN_S@
15MV= @MV@
16RANLIB= @RANLIB@
17RM= @RM@
18
19BINOWNER= @BINOWNER@
20BINGRP= @BINGRP@
21BINMODE= @BINMODE@
22MANOWNER= @MANOWNER@
23MANGRP= @MANGRP@
24MANMODE= @MANMODE@
25
26INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
27INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
28
29BINDIR= /sbin
30MANDIR= /usr/man/man8
31
8d4197bb 32DUMPDATESPATH= @DUMPDATESPATH@
1227625a
SP
33#
34# Global include directories
35#
ddd2ef55 36GINC= -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 47GLIBS= $(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#
df9ae507 52DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG -D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\"
1227625a
SP
53
54all::
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
71Makefile: $(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
96depend:: .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