]>
Commit | Line | Data |
---|---|---|
50e1e10f TT |
1 | # Beginning of file MCONFIG |
2 | ||
ef8901be TT |
3 | all:: |
4 | ||
3e377db2 TT |
5 | check:: |
6 | ||
50e1e10f TT |
7 | SHELL = /bin/sh |
8 | ||
482afc44 TT |
9 | COMPRESS_EXT = gz bz2 bz Z |
10 | ||
50e1e10f | 11 | prefix = @prefix@ |
a4b2d3ce | 12 | root_prefix = @root_prefix@ |
50e1e10f | 13 | exec_prefix = @exec_prefix@ |
b5ffeade TT |
14 | root_bindir = @root_bindir@ |
15 | root_sbindir = @root_sbindir@ | |
16 | root_libdir = @root_libdir@ | |
b6b65c3d | 17 | datarootdir = @datarootdir@ |
a4b2d3ce TT |
18 | bindir = @bindir@ |
19 | sbindir = @sbindir@ | |
20 | libdir = @libdir@ | |
b5ffeade | 21 | datadir= @datadir@ |
a04eba3f | 22 | localedir = $(datadir)/locale |
b5ffeade | 23 | root_sysconfdir= @root_sysconfdir@ |
a4b2d3ce TT |
24 | includedir = @includedir@ |
25 | mandir = @mandir@ | |
a4bf69d9 TT |
26 | man1dir = $(mandir)/man1 |
27 | man3dir = $(mandir)/man3 | |
9dc6ad1e | 28 | man5dir = $(mandir)/man5 |
a4bf69d9 | 29 | man8dir = $(mandir)/man8 |
a4b2d3ce TT |
30 | infodir = @infodir@ |
31 | datadir = @datadir@ | |
50e1e10f TT |
32 | |
33 | @SET_MAKE@ | |
34 | ||
bcb915b0 TT |
35 | @ifGNUmake@ V = |
36 | @ifGNUmake@ ifeq ($(strip $(V)),) | |
37 | @ifGNUmake@ # E = @echo | |
38 | @ifGNUmake@ # Q = @ | |
39 | @ifGNUmake@ E = @E@ | |
40 | @ifGNUmake@ Q = @Q@ | |
41 | @ifGNUmake@ else | |
42 | @ifGNUmake@ E = @\# | |
43 | @ifGNUmake@ Q = | |
44 | @ifGNUmake@ endif | |
c13351f6 | 45 | |
bcb915b0 TT |
46 | @ifNotGNUmake@ E = @E@ |
47 | @ifNotGNUmake@ Q = @Q@ | |
c13351f6 | 48 | |
50e1e10f | 49 | CC = @CC@ |
6c133523 | 50 | BUILD_CC = @BUILD_CC@ |
abcfdfda | 51 | DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@ |
74becf3c | 52 | CFLAGS = @CFLAGS@ |
290806ab | 53 | CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@ |
c6f35b8a | 54 | INTL_FLAGS = @INTL_FLAGS@ |
4d0f3e17 | 55 | ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \ |
290806ab | 56 | $(INTL_FLAGS) $(LINUX_INCLUDE) |
50e1e10f | 57 | LDFLAGS = @LDFLAGS@ |
55da9876 TT |
58 | ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@ |
59 | LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@ | |
dd947da2 TT |
60 | BUILD_CFLAGS = @BUILD_CFLAGS@ |
61 | BUILD_LDFLAGS = @BUILD_LDFLAGS@ | |
9b3018a8 | 62 | RDYNAMIC = @RDYNAMIC@ |
5aa6c3f6 TT |
63 | LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@ |
64 | LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@ | |
50e1e10f TT |
65 | RM = @RM@ |
66 | LN = @LN@ | |
fc6d9d51 | 67 | LN_S = @LN_S@ |
50e1e10f TT |
68 | MV = @MV@ |
69 | CP = @CP@ | |
70 | CHMOD = @CHMOD@ | |
71 | AR = @AR@ | |
72 | AWK = @AWK@ | |
73 | SED = @SED@ | |
9d564f73 | 74 | PERL = @PERL@ |
50e1e10f TT |
75 | RANLIB = @RANLIB@ |
76 | STRIP = @STRIP@ | |
77 | LD = $(PURE) @CC@ | |
78 | ARUPD = $(AR) r | |
47204ff9 | 79 | ARGEN = $(AR) rc |
250f79f0 | 80 | LDCONFIG = @LDCONFIG@ |
6d402278 TT |
81 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
82 | INSTALL_DATA = @INSTALL_DATA@ | |
83 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
84 | MKINSTALLDIRS = @MKINSTALLDIRS@ | |
50e1e10f | 85 | |
a4d09610 TT |
86 | # |
87 | # Library definitions | |
88 | # | |
89 | LIB = $(top_builddir)/lib | |
55da9876 | 90 | LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@ |
d7f45af8 | 91 | LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@ |
a4d09610 TT |
92 | LIBE2P = $(LIB)/libe2p@LIB_EXT@ |
93 | LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ | |
39fd3d4f | 94 | LIBUUID = @LIBUUID@ @SOCKET_LIB@ |
f239fefc | 95 | LIBQUOTA = @LIBQUOTA@ |
14b596d4 | 96 | LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID) |
a04eba3f | 97 | LIBINTL = @LIBINTL@ |
9d99416e | 98 | DEPLIBSS = $(LIB)/libss@LIB_EXT@ |
a6a1c081 | 99 | DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ |
39fd3d4f | 100 | DEPLIBUUID = @DEPLIBUUID@ |
f239fefc | 101 | DEPLIBQUOTA = @DEPLIBQUOTA@ |
4a1e15a8 | 102 | DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID) |
a4d09610 | 103 | |
daf7a6e5 | 104 | STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@ |
d7f45af8 | 105 | STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@ |
a4d09610 TT |
106 | STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ |
107 | STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ | |
39fd3d4f | 108 | STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@ |
f239fefc | 109 | STATIC_LIBQUOTA = @STATIC_LIBQUOTA@ |
14b596d4 | 110 | STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID) |
9d99416e | 111 | DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ |
a6a1c081 | 112 | DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ |
39fd3d4f | 113 | DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@ |
f239fefc | 114 | DEPSTATIC_LIBQUOTA = @DEPSTATIC_LIBQUOTA@ |
5f70f2e6 | 115 | DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID) |
a4d09610 | 116 | |
daf7a6e5 | 117 | PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@ |
992a2f7f | 118 | PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@ |
a4d09610 TT |
119 | PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@ |
120 | PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@ | |
39fd3d4f | 121 | PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@ |
f239fefc | 122 | PROFILED_LIBQUOTA = @PROFILED_LIBQUOTA@ |
14b596d4 | 123 | PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID) |
a6a1c081 TT |
124 | DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ |
125 | DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ | |
39fd3d4f | 126 | DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@ |
f239fefc | 127 | DEPPROFILED_LIBQUOTA = @PROFILED_LIBQUOTA@ |
5f70f2e6 | 128 | DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID) |
a4d09610 | 129 | |
50e1e10f TT |
130 | # An include directive pointing to a directory holding enough linux-like |
131 | # include files to satisfy some programs here | |
132 | LINUX_INCLUDE=@LINUX_INCLUDE@ | |
133 | ||
a4d09610 TT |
134 | # |
135 | # A fast substitution command for fixing up man pages, shell scripts, etc. | |
136 | # | |
44339bdf TT |
137 | SUBST_CONF=$(top_builddir)/util/subst.conf |
138 | SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF) | |
dd607056 | 139 | SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF) |
44339bdf | 140 | DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF) |
a4d09610 | 141 | |
ef8901be | 142 | $(top_builddir)/util/subst: |
e8aed8c8 | 143 | cd $(top_builddir)/util ; $(MAKE) subst |
ef8901be | 144 | |
50e1e10f TT |
145 | # |
146 | # Warning flags | |
147 | # | |
4d0f3e17 | 148 | # Run make gcc-wall to do a build with warning messages. |
50e1e10f TT |
149 | # |
150 | # | |
19c000e8 TT |
151 | WFLAGS= -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \ |
152 | -pedantic $(WFLAGS_EXTRA) \ | |
032a763f | 153 | -Wall -W -Wwrite-strings -Wpointer-arith \ |
19c000e8 | 154 | -Wcast-qual -Wcast-align -Wno-variadic-macros \ |
4d0f3e17 | 155 | -Wstrict-prototypes -Wmissing-prototypes \ |
48e6e813 | 156 | -Wformat-security -Wformat-nonliteral \ |
19c000e8 | 157 | -Wmissing-format-attribute -O2 -Wstrict-aliasing \ |
032a763f TT |
158 | -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \ |
159 | -UENABLE_NLS | |
4d0f3e17 | 160 | |
c8c071a0 TT |
161 | gcc-wall-new: |
162 | (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup | |
163 | ||
4d0f3e17 TT |
164 | gcc-wall: |
165 | make clean > /dev/null | |
c8c071a0 | 166 | make gcc-wall-new |
50e1e10f TT |
167 | |
168 | # | |
169 | # Installation user and groups | |
170 | # | |
171 | BINGRP= bin | |
172 | BINOWN= bin | |
173 | BINMODE= 555 | |
174 | INCGRP= bin | |
175 | INCOWN= bin | |
176 | INCMODE= 444 | |
177 | LIBOWN= bin | |
178 | LIBGRP= bin | |
179 | LIBMODE= 444 | |
180 | MANGRP= bin | |
181 | MANOWN= bin | |
182 | MANMODE= 444 | |
183 | ||
fc6d9d51 TT |
184 | # |
185 | # Autoconf magic... | |
186 | # | |
187 | ||
5aa6c3f6 TT |
188 | DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \ |
189 | $(top_srcdir)/lib/Makefile.elf-lib \ | |
2b5901d9 TT |
190 | $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \ |
191 | $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \ | |
192 | $(top_srcdir)/lib/Makefile.profile | |
a4b2d3ce | 193 | |
fc6d9d51 | 194 | $(top_builddir)/config.status: $(top_srcdir)/configure |
e8aed8c8 | 195 | cd $(top_builddir); ./config.status --recheck |
fc6d9d51 TT |
196 | |
197 | $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status | |
e8aed8c8 | 198 | cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status |
fc6d9d51 TT |
199 | |
200 | $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \ | |
201 | $(top_builddir)/config.status | |
e8aed8c8 | 202 | cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status |
fc6d9d51 | 203 | |
bf2602be TT |
204 | $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \ |
205 | $(top_builddir)/config.status | |
e8aed8c8 | 206 | cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status |
bf2602be | 207 | |
fc6d9d51 | 208 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \ |
a4b2d3ce | 209 | $(DEP_MAKEFILE) $(top_builddir)/config.status |
e8aed8c8 | 210 | cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status |
fc6d9d51 | 211 | |
98919bdb TT |
212 | @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in |
213 | @MAINTAINER_CMT@ cd $(top_srcdir) && autoconf | |
fc6d9d51 | 214 | |
50e1e10f TT |
215 | # |
216 | # Make depend magic... | |
217 | # | |
218 | ||
9d564f73 | 219 | .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl |
50e1e10f | 220 | if test -n "$(SRCS)" ; then \ |
74becf3c | 221 | $(CC) -M $(ALL_CFLAGS) $(SRCS) | \ |
9d564f73 | 222 | $(SED) -f $(top_srcdir)/depfix.sed \ |
fc6d9d51 TT |
223 | -e 's; $(srcdir)/; $$(srcdir)/;g' \ |
224 | -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \ | |
225 | -e 's; $(top_builddir)/; $$(top_builddir)/;g' \ | |
226 | -e 's; \./; ;g' \ | |
6d402278 | 227 | -e '/^#/d' \ |
9d564f73 TT |
228 | -e '/^ *\\$$/d' | \ |
229 | $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \ | |
50e1e10f TT |
230 | else :; fi |
231 | ||
232 | depend:: .depend | |
233 | if test -n "$(SRCS)" ; then \ | |
234 | sed -e '/^# +++ Dependency line eater +++/,$$d' \ | |
235 | < $(srcdir)/Makefile.in | cat - .depend \ | |
236 | > $(srcdir)/Makefile.in.new; \ | |
9d564f73 TT |
237 | if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \ |
238 | $(RM) $(srcdir)/Makefile.in.new ; \ | |
239 | else \ | |
240 | $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \ | |
241 | $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \ | |
242 | fi ; else :; fi | |
50e1e10f | 243 | |
50e1e10f | 244 | # End of file MCONFIG |