]> git.wh0rd.org - dump.git/blame - MCONFIG.in
Correction of block estimate.
[dump.git] / MCONFIG.in
CommitLineData
1227625a
SP
1VPATH= $(srcdir)
2
3top_builddir= @top_builddir@
4
35e850a4
SP
5VERSION= 0.4b21
6DATE= January 13, 2001
8d4197bb 7
1227625a
SP
8AR= @AR@
9CC= @CC@
10INSTALL= @INSTALL@
11LD= @LD@
12LN_S= @LN_S@
13MV= @MV@
14RANLIB= @RANLIB@
15RM= @RM@
16
17BINOWNER= @BINOWNER@
18BINGRP= @BINGRP@
19BINMODE= @BINMODE@
20MANOWNER= @MANOWNER@
21MANGRP= @MANGRP@
22MANMODE= @MANMODE@
23
24INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
25INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
26
27BINDIR= /sbin
28MANDIR= /usr/man/man8
29
8d4197bb 30DUMPDATESPATH= @DUMPDATESPATH@
1227625a
SP
31#
32# Global include directories
33#
ddd2ef55 34GINC= -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 45GLIBS= $(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 50DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG -D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\" @OPTDEFS@
1227625a
SP
51
52all::
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
69Makefile: $(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
94depend:: .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