]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - MCONFIG.in
Merge remote-tracking branch 'origin/maint' into next
[thirdparty/e2fsprogs.git] / MCONFIG.in
1 # Beginning of file MCONFIG
2
3 all::
4
5 check::
6
7 SHELL = /bin/sh
8
9 COMPRESS_EXT = gz bz2 bz Z
10
11 prefix = @prefix@
12 root_prefix = @root_prefix@
13 exec_prefix = @exec_prefix@
14 root_bindir = @root_bindir@
15 root_sbindir = @root_sbindir@
16 root_libdir = @root_libdir@
17 datarootdir = @datarootdir@
18 bindir = @bindir@
19 sbindir = @sbindir@
20 libdir = @libdir@
21 datadir= @datadir@
22 localedir = $(datadir)/locale
23 root_sysconfdir= @root_sysconfdir@
24 includedir = @includedir@
25 mandir = @mandir@
26 man1dir = $(mandir)/man1
27 man3dir = $(mandir)/man3
28 man5dir = $(mandir)/man5
29 man8dir = $(mandir)/man8
30 infodir = @infodir@
31 datadir = @datadir@
32 pkgconfigdir = $(libdir)/pkgconfig
33
34 @SET_MAKE@
35
36 @ifGNUmake@ V =
37 @ifGNUmake@ ifeq ($(strip $(V)),)
38 @ifGNUmake@ # E = @echo
39 @ifGNUmake@ # ES = echo
40 @ifGNUmake@ # Q = @
41 @ifGNUmake@ E = @E@
42 @ifGNUmake@ ES = @ES@
43 @ifGNUmake@ Q = @Q@
44 @ifGNUmake@ else
45 @ifGNUmake@ E = @\#
46 @ifGNUmake@ ES = \#
47 @ifGNUmake@ Q =
48 @ifGNUmake@ endif
49
50 @ifNotGNUmake@ E = @E@
51 @ifNotGNUmake@ ES = @ES@
52 @ifNotGNUmake@ Q = @Q@
53
54 @ifGNUmake@ CHECK=sparse
55 @ifGNUmake@ CHECK_OPTS=-Wsparse-all -Wno-transparent-union -Wno-return-void -Wno-undef -Wno-non-pointer-null
56 @ifGNUmake@ CPPCHECK=cppcheck
57 @ifGNUmake@ CPPCHECK_OPTS=--force --enable=all --quiet
58 @ifGNUmake@ ifeq ("$(C)", "2")
59 @ifGNUmake@ CHECK_CMD=$(CHECK) $(CHECK_OPTS) -Wbitwise -D__CHECK_ENDIAN__
60 @ifGNUmake@ CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
61 @ifGNUmake@ else
62 @ifGNUmake@ ifeq ("$(C)", "1")
63 @ifGNUmake@ CHECK_CMD=$(CHECK) $(CHECK_OPTS)
64 @ifGNUmake@ CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
65 @ifGNUmake@ else
66 @ifGNUmake@ CHECK_CMD=@true
67 @ifGNUmake@ CPPCHECK_CMD=@true
68 @ifGNUmake@ endif
69 @ifGNUmake@ endif
70
71 @ifNotGNUmake@ CHECK_CMD=@true
72 @ifNotGNUmake@ CPPHECK_CMD=@true
73
74 CC = @CC@
75 BUILD_CC = @BUILD_CC@
76 CFLAGS = @CFLAGS@
77 CPPFLAGS = @INCLUDES@
78 ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) @DEFS@ $(LOCAL_CFLAGS)
79 LDFLAGS = @LDFLAGS@
80 ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@
81 LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@
82 BUILD_CFLAGS = @BUILD_CFLAGS@
83 BUILD_LDFLAGS = @BUILD_LDFLAGS@
84 RDYNAMIC = @RDYNAMIC@
85 LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@
86 LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@
87 RM = @RM@
88 LN = @LN@
89 LN_S = @LN_S@
90 MV = @MV@
91 CP = @CP@
92 CHMOD = @CHMOD@
93 AR = @AR@
94 AWK = @AWK@
95 SED = @SED@
96 PERL = @PERL@
97 RANLIB = @RANLIB@
98 STRIP = @STRIP@
99 LD = $(PURE) @CC@
100 ARUPD = $(AR) r
101 ARGEN = $(AR) rc
102 LDCONFIG = @LDCONFIG@
103 INSTALL_PROGRAM = @INSTALL_PROGRAM@
104 INSTALL_DATA = @INSTALL_DATA@
105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
106 MKINSTALLDIRS = @MKINSTALLDIRS@
107
108 #
109 # Library definitions
110 #
111 LIB = $(top_builddir)/lib
112 LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
113 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
114 LIBE2P = $(LIB)/libe2p@LIB_EXT@
115 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
116 LIBUUID = @LIBUUID@ @SOCKET_LIB@
117 LIBMAGIC = @MAGIC_LIB@
118 LIBFUSE = @FUSE_LIB@
119 LIBSUPPORT = $(LIB)/libsupport@STATIC_LIB_EXT@
120 LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
121 LIBINTL = @LIBINTL@
122 SYSLIBS = @LIBS@
123 DEPLIBSS = $(LIB)/libss@LIB_EXT@
124 DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
125 DEPLIBUUID = @DEPLIBUUID@
126 DEPLIBSUPPORT = $(LIBSUPPORT)
127 DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
128 TESTENV = LD_LIBRARY_PATH="$(LIB):$${LD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="$(LIB):$${DYLD_LIBRARY_PATH}"
129
130 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
131 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
132 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
133 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
134 STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
135 STATIC_LIBSUPPORT = $(LIBSUPPORT)
136 STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
137 DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
138 DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
139 DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
140 DEPSTATIC_LIBSUPPORT = $(DEPLIBSUPPORT)
141 DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID)
142
143 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
144 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
145 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
146 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
147 PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
148 PROFILED_LIBSUPPORT = $(LIB)/libsupport@PROFILED_LIB_EXT@
149 PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
150 DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
151 DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
152 DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
153 DEPPROFILED_LIBSUPPORT = $(PROFILED_LIBSUPPORT)
154 DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID)
155
156 #
157 # A fast substitution command for fixing up man pages, shell scripts, etc.
158 #
159 SUBST_CONF=$(top_builddir)/util/subst.conf
160 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
161 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
162 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
163
164 $(top_builddir)/util/subst:
165 cd $(top_builddir)/util ; $(MAKE) subst
166
167 #
168 # Script for installing symlinks (for shared libraries)
169 #
170 $(top_builddir)/util/install-symlink: $(top_srcdir)/util/install-symlink.in \
171 $(top_builddir)/config.status
172 cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status
173 chmod +x $(top_builddir)/util/install-symlink
174
175 $(top_builddir)/util/symlinks:
176 cd $(top_builddir)/util ; $(MAKE) symlinks
177
178 INSTALL_SYMLINK = /bin/sh $(top_builddir)/util/install-symlink \
179 @SYMLINK_RELATIVE@ \
180 --symlinks=$(top_builddir)/util/symlinks
181 DEP_INSTALL_SYMLINK = $(top_builddir)/util/install-symlink \
182 $(top_builddir)/util/symlinks
183
184 #
185 # Warning flags
186 #
187 # Run make gcc-wall to do a build with warning messages.
188 #
189 #
190 WFLAGS= -std=gnu99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
191 -pedantic $(WFLAGS_EXTRA) \
192 -Wall -W -Wwrite-strings -Wpointer-arith \
193 -Wcast-qual -Wcast-align -Wno-variadic-macros \
194 -Wstrict-prototypes -Wmissing-prototypes \
195 -Wformat-security -Wformat-nonliteral \
196 -Wmissing-format-attribute -O2 -Wstrict-aliasing \
197 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
198 -UENABLE_NLS
199
200 gcc-wall-new:
201 ($(MAKE) CFLAGS="$(ALL_CFLAGS) $(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
202
203 gcc-wall:
204 $(MAKE) clean > /dev/null
205 $(MAKE) gcc-wall-new
206
207 static-check:
208 ($(MAKE) C=1 V=1 CFLAGS="$(ALL_CFLAGS) $(WFLAGS)") 2>&1 | sed -f $(top_srcdir)/util/static-analysis-cleanup
209
210 static-check-all:
211 $(MAKE) clean > /dev/null
212 $(MAKE) static-check
213
214 #
215 # Installation user and groups
216 #
217 BINGRP= bin
218 BINOWN= bin
219 BINMODE= 555
220 INCGRP= bin
221 INCOWN= bin
222 INCMODE= 444
223 LIBOWN= bin
224 LIBGRP= bin
225 LIBMODE= 444
226 MANGRP= bin
227 MANOWN= bin
228 MANMODE= 444
229
230 #
231 # Autoconf magic...
232 #
233
234 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \
235 $(top_srcdir)/lib/Makefile.elf-lib \
236 $(top_srcdir)/lib/Makefile.bsd-lib \
237 $(top_srcdir)/lib/Makefile.darwin-lib \
238 $(top_srcdir)/lib/Makefile.solaris-lib \
239 $(top_srcdir)/lib/Makefile.profile
240
241 $(top_builddir)/config.status: $(top_srcdir)/configure
242 cd $(top_builddir); ./config.status --recheck
243
244 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
245 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
246
247 $(top_builddir)/lib/config.h: $(top_srcdir)/lib/config.h.in \
248 $(top_builddir)/config.status
249 cd $(top_builddir); CONFIG_FILES=lib/config.h ./config.status
250
251 $(top_builddir)/lib/dirpaths.h: $(DEP_SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in
252 $(E) " SUBST $@"
253 $(Q) $(SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in $@
254
255 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
256 $(top_builddir)/config.status
257 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
258
259 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
260 $(top_builddir)/config.status
261 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
262
263 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
264 $(DEP_MAKEFILE) $(top_builddir)/config.status
265 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
266
267 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.ac
268 @MAINTAINER_CMT@ cd $(top_srcdir) && autoheader && autoconf
269
270 coverage.txt: Makefile $(SRCS)
271 if test -n "$(SRCS)"; then \
272 gcov -s $(top_srcdir) -o . $(SRCS) > coverage.txt 2>&1 ; \
273 fi
274
275 clean::
276 $(RM) -f *.gcda *.gcov *.gcno coverage.txt
277
278 #
279 # Make depend magic...
280 #
281
282 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
283 if test -n "$(SRCS)" ; then \
284 $(CC) -M $(ALL_CFLAGS) $(DEPEND_CFLAGS) $(SRCS) | \
285 $(SED) -f $(top_srcdir)/depfix.sed \
286 -e 's; $(srcdir)/; $$(srcdir)/;g' \
287 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
288 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
289 -e 's; \./; ;g' \
290 -e '/^#/d' \
291 -e '/^ *\\$$/d' | \
292 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
293 else :; fi
294
295 depend:: .depend
296 if test -n "$(SRCS)" ; then \
297 sed -e '/^# +++ Dependency line eater +++/,$$d' \
298 < $(srcdir)/Makefile.in | cat - .depend \
299 > $(srcdir)/Makefile.in.new; \
300 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
301 $(RM) $(srcdir)/Makefile.in.new ; \
302 else \
303 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
304 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
305 fi ; else :; fi
306
307 # End of file MCONFIG