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