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