]>
Commit | Line | Data |
---|---|---|
50e1e10f TT |
1 | # Beginning of file MCONFIG |
2 | ||
ef8901be TT |
3 | all:: |
4 | ||
50e1e10f TT |
5 | SHELL = /bin/sh |
6 | ||
7 | prefix = @prefix@ | |
a4b2d3ce | 8 | root_prefix = @root_prefix@ |
50e1e10f | 9 | exec_prefix = @exec_prefix@ |
a4b2d3ce TT |
10 | root_bindir = $(root_prefix)/bin |
11 | root_sbindir = $(root_prefix)/sbin | |
12 | root_libdir = $(root_prefix)/lib | |
13 | bindir = @bindir@ | |
14 | sbindir = @sbindir@ | |
15 | libdir = @libdir@ | |
16 | includedir = @includedir@ | |
17 | mandir = @mandir@ | |
a4bf69d9 TT |
18 | man1dir = $(mandir)/man1 |
19 | man3dir = $(mandir)/man3 | |
20 | man8dir = $(mandir)/man8 | |
a4b2d3ce TT |
21 | infodir = @infodir@ |
22 | datadir = @datadir@ | |
50e1e10f TT |
23 | |
24 | @SET_MAKE@ | |
25 | ||
26 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
27 | INSTALL_DATA = @INSTALL_DATA@ | |
28 | CC = @CC@ | |
6c133523 | 29 | BUILD_CC = @BUILD_CC@ |
50e1e10f | 30 | DEFS = @DEFS@ |
74becf3c TT |
31 | CFLAGS = @CFLAGS@ |
32 | ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \ | |
50e1e10f TT |
33 | -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE) |
34 | LDFLAGS = @LDFLAGS@ | |
74becf3c | 35 | ALL_LDFLAGS = $(LDFLAGS) |
50e1e10f TT |
36 | RM = @RM@ |
37 | LN = @LN@ | |
fc6d9d51 | 38 | LN_S = @LN_S@ |
50e1e10f TT |
39 | MV = @MV@ |
40 | CP = @CP@ | |
41 | CHMOD = @CHMOD@ | |
42 | AR = @AR@ | |
43 | AWK = @AWK@ | |
44 | SED = @SED@ | |
9d564f73 | 45 | PERL = @PERL@ |
50e1e10f TT |
46 | RANLIB = @RANLIB@ |
47 | STRIP = @STRIP@ | |
48 | LD = $(PURE) @CC@ | |
49 | ARUPD = $(AR) r | |
50 | ||
a4d09610 TT |
51 | # |
52 | # Library definitions | |
53 | # | |
54 | LIB = $(top_builddir)/lib | |
55 | LIBSS = $(LIB)/libss@LIB_EXT@ | |
56 | LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ | |
57 | LIBE2P = $(LIB)/libe2p@LIB_EXT@ | |
58 | LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ | |
fc6d9d51 | 59 | LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ |
a4d09610 TT |
60 | |
61 | STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ | |
62 | STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ | |
63 | STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ | |
64 | STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ | |
fc6d9d51 | 65 | STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ |
a4d09610 TT |
66 | |
67 | PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ | |
68 | PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ | |
69 | PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@ | |
70 | PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@ | |
fc6d9d51 | 71 | PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ |
a4d09610 | 72 | |
50e1e10f TT |
73 | # |
74 | # Use these definitions is you use tools 2.x, x < 16 | |
75 | # | |
76 | #DLL_BIN=/usr/dll/bin | |
77 | #JUMP_PREFIX=/usr/dll/jump/ | |
78 | ||
79 | # | |
80 | # Use these definitions if you use tools 2.16 or above | |
81 | # | |
82 | DLL_BIN=/usr/bin | |
83 | JUMP_PREFIX=/usr/bin/jump | |
84 | ||
85 | # An include directive pointing to a directory holding enough linux-like | |
86 | # include files to satisfy some programs here | |
87 | LINUX_INCLUDE=@LINUX_INCLUDE@ | |
88 | ||
a4d09610 TT |
89 | # |
90 | # A fast substitution command for fixing up man pages, shell scripts, etc. | |
91 | # | |
44339bdf TT |
92 | SUBST_CONF=$(top_builddir)/util/subst.conf |
93 | SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF) | |
94 | DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF) | |
a4d09610 | 95 | |
ef8901be TT |
96 | $(top_builddir)/util/subst: |
97 | $(MAKE) -C $(top_builddir)/util subst | |
98 | ||
50e1e10f TT |
99 | # |
100 | # Warning flags | |
101 | # | |
102 | # Uncomment WFLAGS if you want really anal GCC warning messages | |
103 | # | |
104 | # | |
105 | @W@WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \ | |
106 | @W@ -Wall -Wwrite-strings -Wpointer-arith \ | |
fc6d9d51 | 107 | @W@ -Wcast-qual -Wcast-align -Wtraditional \ |
50e1e10f TT |
108 | @W@ -Wstrict-prototypes -Wmissing-prototypes \ |
109 | @W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow | |
110 | ||
111 | # | |
112 | # Installation user and groups | |
113 | # | |
114 | BINGRP= bin | |
115 | BINOWN= bin | |
116 | BINMODE= 555 | |
117 | INCGRP= bin | |
118 | INCOWN= bin | |
119 | INCMODE= 444 | |
120 | LIBOWN= bin | |
121 | LIBGRP= bin | |
122 | LIBMODE= 444 | |
123 | MANGRP= bin | |
124 | MANOWN= bin | |
125 | MANMODE= 444 | |
126 | ||
fc6d9d51 TT |
127 | # |
128 | # Autoconf magic... | |
129 | # | |
130 | ||
a4b2d3ce TT |
131 | DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \ |
132 | $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \ | |
133 | $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile | |
134 | ||
fc6d9d51 TT |
135 | $(top_builddir)/config.status: $(top_srcdir)/configure |
136 | (cd $(top_builddir); ./config.status --recheck) | |
137 | ||
138 | $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status | |
139 | (cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status) | |
140 | ||
141 | $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \ | |
142 | $(top_builddir)/config.status | |
143 | (cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status) | |
144 | ||
bf2602be TT |
145 | $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \ |
146 | $(top_builddir)/config.status | |
147 | (cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status) | |
148 | ||
fc6d9d51 | 149 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \ |
a4b2d3ce | 150 | $(DEP_MAKEFILE) $(top_builddir)/config.status |
fc6d9d51 TT |
151 | (cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status) |
152 | ||
153 | $(top_srcdir)/configure: $(top_srcdir)/configure.in | |
154 | cd $(top_srcdir) && autoconf | |
155 | ||
50e1e10f TT |
156 | # |
157 | # Make depend magic... | |
158 | # | |
159 | ||
9d564f73 | 160 | .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl |
50e1e10f | 161 | if test -n "$(SRCS)" ; then \ |
74becf3c | 162 | $(CC) -M $(ALL_CFLAGS) $(SRCS) | \ |
9d564f73 | 163 | $(SED) -f $(top_srcdir)/depfix.sed \ |
fc6d9d51 TT |
164 | -e 's; $(srcdir)/; $$(srcdir)/;g' \ |
165 | -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \ | |
166 | -e 's; $(top_builddir)/; $$(top_builddir)/;g' \ | |
167 | -e 's; \./; ;g' \ | |
9d564f73 TT |
168 | -e '/^ *\\$$/d' | \ |
169 | $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \ | |
50e1e10f TT |
170 | else :; fi |
171 | ||
172 | depend:: .depend | |
173 | if test -n "$(SRCS)" ; then \ | |
174 | sed -e '/^# +++ Dependency line eater +++/,$$d' \ | |
175 | < $(srcdir)/Makefile.in | cat - .depend \ | |
176 | > $(srcdir)/Makefile.in.new; \ | |
9d564f73 TT |
177 | if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \ |
178 | $(RM) $(srcdir)/Makefile.in.new ; \ | |
179 | else \ | |
180 | $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \ | |
181 | $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \ | |
182 | fi ; else :; fi | |
50e1e10f | 183 | |
50e1e10f | 184 | # End of file MCONFIG |