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