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@ # Q = @ 39@ifGNUmake@ E = @E@ 40@ifGNUmake@ Q = @Q@ 41@ifGNUmake@ else 42@ifGNUmake@ E = @\# 43@ifGNUmake@ Q = 44@ifGNUmake@ endif 45 46@ifNotGNUmake@ E = @E@ 47@ifNotGNUmake@ Q = @Q@ 48 49CC = @CC@ 50BUILD_CC = @BUILD_CC@ 51DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@ 52CFLAGS = @CFLAGS@ 53CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@ 54INTL_FLAGS = @INTL_FLAGS@ 55ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \ 56 $(INTL_FLAGS) $(LINUX_INCLUDE) 57LDFLAGS = @LDFLAGS@ 58ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@ 59LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@ 60BUILD_CFLAGS = @BUILD_CFLAGS@ 61BUILD_LDFLAGS = @BUILD_LDFLAGS@ 62LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@ 63LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@ 64RM = @RM@ 65LN = @LN@ 66LN_S = @LN_S@ 67MV = @MV@ 68CP = @CP@ 69CHMOD = @CHMOD@ 70AR = @AR@ 71AWK = @AWK@ 72SED = @SED@ 73PERL = @PERL@ 74RANLIB = @RANLIB@ 75STRIP = @STRIP@ 76LD = $(PURE) @CC@ 77ARUPD = $(AR) r 78ARGEN = $(AR) rc 79LDCONFIG = @LDCONFIG@ 80INSTALL_PROGRAM = @INSTALL_PROGRAM@ 81INSTALL_DATA = @INSTALL_DATA@ 82INSTALL_SCRIPT = @INSTALL_SCRIPT@ 83MKINSTALLDIRS = @MKINSTALLDIRS@ 84 85# 86# Library definitions 87# 88LIB = $(top_builddir)/lib 89LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@ 90LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@ 91LIBE2P = $(LIB)/libe2p@LIB_EXT@ 92LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ 93LIBUUID = @LIBUUID@ @SOCKET_LIB@ 94LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID) 95LIBINTL = @LIBINTL@ 96DEPLIBSS = $(LIB)/libss@LIB_EXT@ 97DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ 98DEPLIBUUID = @DEPLIBUUID@ 99DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID) 100 101STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@ 102STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@ 103STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ 104STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ 105STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@ 106STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID) 107DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ 108DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ 109DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@ 110DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID) 111 112PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@ 113PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@ 114PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@ 115PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@ 116PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@ 117PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID) 118DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ 119DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ 120DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@ 121DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID) 122 123# An include directive pointing to a directory holding enough linux-like 124# include files to satisfy some programs here 125LINUX_INCLUDE=@LINUX_INCLUDE@ 126 127# 128# A fast substitution command for fixing up man pages, shell scripts, etc. 129# 130SUBST_CONF=$(top_builddir)/util/subst.conf 131SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF) 132SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF) 133DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF) 134 135$(top_builddir)/util/subst: 136 cd $(top_builddir)/util ; $(MAKE) subst 137 138# 139# Warning flags 140# 141# Run make gcc-wall to do a build with warning messages. 142# 143# 144WFLAGS= -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \ 145 -pedantic $(WFLAGS_EXTRA) \ 146 -Wall -W -Wwrite-strings -Wpointer-arith \ 147 -Wcast-qual -Wcast-align -Wno-variadic-macros \ 148 -Wstrict-prototypes -Wmissing-prototypes \ 149 -Wformat-security -Wformat-nonliteral \ 150 -Wmissing-format-attribute -O2 -Wstrict-aliasing \ 151 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \ 152 -UENABLE_NLS 153 154gcc-wall-new: 155 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 156 157gcc-wall: 158 make clean > /dev/null 159 make gcc-wall-new 160 161# 162# Installation user and groups 163# 164BINGRP= bin 165BINOWN= bin 166BINMODE= 555 167INCGRP= bin 168INCOWN= bin 169INCMODE= 444 170LIBOWN= bin 171LIBGRP= bin 172LIBMODE= 444 173MANGRP= bin 174MANOWN= bin 175MANMODE= 444 176 177# 178# Autoconf magic... 179# 180 181DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \ 182 $(top_srcdir)/lib/Makefile.elf-lib \ 183 $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \ 184 $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \ 185 $(top_srcdir)/lib/Makefile.profile 186 187$(top_builddir)/config.status: $(top_srcdir)/configure 188 cd $(top_builddir); ./config.status --recheck 189 190$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status 191 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status 192 193$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \ 194 $(top_builddir)/config.status 195 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status 196 197$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \ 198 $(top_builddir)/config.status 199 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status 200 201Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \ 202 $(DEP_MAKEFILE) $(top_builddir)/config.status 203 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status 204 205@MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in 206@MAINTAINER_CMT@ cd $(top_srcdir) && autoconf 207 208# 209# Make depend magic... 210# 211 212.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl 213 if test -n "$(SRCS)" ; then \ 214 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \ 215 $(SED) -f $(top_srcdir)/depfix.sed \ 216 -e 's; $(srcdir)/; $$(srcdir)/;g' \ 217 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \ 218 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \ 219 -e 's; \./; ;g' \ 220 -e '/^#/d' \ 221 -e '/^ *\\$$/d' | \ 222 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \ 223 else :; fi 224 225depend:: .depend 226 if test -n "$(SRCS)" ; then \ 227 sed -e '/^# +++ Dependency line eater +++/,$$d' \ 228 < $(srcdir)/Makefile.in | cat - .depend \ 229 > $(srcdir)/Makefile.in.new; \ 230 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \ 231 $(RM) $(srcdir)/Makefile.in.new ; \ 232 else \ 233 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \ 234 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \ 235 fi ; else :; fi 236 237# End of file MCONFIG 238