]> git.wh0rd.org - dump.git/blob - MCONFIG.in
Initial revision
[dump.git] / MCONFIG.in
1 VPATH= $(srcdir)
2
3 top_builddir= @top_builddir@
4
5 AR= @AR@
6 CC= @CC@
7 INSTALL= @INSTALL@
8 LD= @LD@
9 LN_S= @LN_S@
10 MV= @MV@
11 RANLIB= @RANLIB@
12 RM= @RM@
13
14 BINOWNER= @BINOWNER@
15 BINGRP= @BINGRP@
16 BINMODE= @BINMODE@
17 MANOWNER= @MANOWNER@
18 MANGRP= @MANGRP@
19 MANMODE= @MANMODE@
20
21 INSTALLBIN= $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
22 INSTALLMAN= $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
23
24 BINDIR= /sbin
25 MANDIR= /usr/man/man8
26
27 #
28 # Global include directories
29 #
30 GINC= -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
41 GLIBS= -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 #
46 DEFS= -DRDUMP -DRRESTORE -D_BSD_SOURCE -D_USE_BSD_SIGNAL -DLINUX_FORK_BUG
47
48 all::
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
65 Makefile: $(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
90 depend:: .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