1 # Beginning of file MCONFIG
9 COMPRESS_EXT = gz bz2 bz Z
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@
22 localedir = $(datadir)/locale
23 root_sysconfdir= @root_sysconfdir@
24 includedir = @includedir@
26 man1dir = $(mandir)/man1
27 man3dir = $(mandir)/man3
28 man5dir = $(mandir)/man5
29 man8dir = $(mandir)/man8
36 @ifGNUmake@ ifeq ($(strip $(V)),)
37 @ifGNUmake@ # E = @echo
46 @ifNotGNUmake@ E = @E@
47 @ifNotGNUmake@ Q = @Q@
51 DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@
53 CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
54 INTL_FLAGS = @INTL_FLAGS@
55 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
56 $(INTL_FLAGS) $(LINUX_INCLUDE)
58 ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@
59 LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@
60 BUILD_CFLAGS = @BUILD_CFLAGS@
61 BUILD_LDFLAGS = @BUILD_LDFLAGS@
78 INSTALL_PROGRAM = @INSTALL_PROGRAM@
79 INSTALL_DATA = @INSTALL_DATA@
80 INSTALL_SCRIPT = @INSTALL_SCRIPT@
81 MKINSTALLDIRS = @MKINSTALLDIRS@
86 LIB = $(top_builddir)/lib
87 LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
88 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
89 LIBE2P = $(LIB)/libe2p@LIB_EXT@
90 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
91 LIBUUID = @LIBUUID@ @SOCKET_LIB@
92 LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
94 DEPLIBSS = $(LIB)/libss@LIB_EXT@
95 DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
96 DEPLIBUUID = @DEPLIBUUID@
97 DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
99 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
100 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
101 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
102 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
103 STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
104 STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
105 DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
106 DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
107 DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
108 DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(STATIC_LIBUUID)
110 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
111 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
112 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
113 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
114 PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
115 PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
116 DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
117 DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
118 DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
119 DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
121 # An include directive pointing to a directory holding enough linux-like
122 # include files to satisfy some programs here
123 LINUX_INCLUDE=@LINUX_INCLUDE@
126 # A fast substitution command for fixing up man pages, shell scripts, etc.
128 SUBST_CONF=$(top_builddir)/util/subst.conf
129 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
130 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
131 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
133 $(top_builddir)/util/subst:
134 cd $(top_builddir)/util ; $(MAKE) subst
139 # Run make gcc-wall to do a build with warning messages.
142 WFLAGS= -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 \
153 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
156 make clean > /dev/null
160 # Installation user and groups
179 DEP_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
184 $(top_builddir)/config.status: $(top_srcdir)/configure
185 cd $(top_builddir); ./config.status --recheck
187 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
188 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
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
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
198 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
199 $(DEP_MAKEFILE) $(top_builddir)/config.status
200 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
202 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
203 @MAINTAINER_CMT@ cd $(top_srcdir) && autoconf
206 # Make depend magic...
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' \
219 $(PERL) $(top_srcdir)/wordwrap.pl > .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 ; \
230 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
231 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
234 # End of file MCONFIG