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