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@
21 localedir = $(datadir)/locale
22 root_sysconfdir= @root_sysconfdir@
23 includedir = @includedir@
25 man1dir = $(mandir)/man1
26 man3dir = $(mandir)/man3
27 man5dir = $(mandir)/man5
28 man8dir = $(mandir)/man8
36 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
38 CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
39 INTL_FLAGS = @INTL_FLAGS@
40 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
41 $(INTL_FLAGS) $(LINUX_INCLUDE)
43 ALL_LDFLAGS = $(LDFLAGS)
44 BUILD_CFLAGS = @BUILD_CFLAGS@
45 BUILD_LDFLAGS = @BUILD_LDFLAGS@
62 INSTALL_PROGRAM = @INSTALL_PROGRAM@
63 INSTALL_DATA = @INSTALL_DATA@
64 INSTALL_SCRIPT = @INSTALL_SCRIPT@
65 MKINSTALLDIRS = @MKINSTALLDIRS@
70 DEVMAPPER_LIBS = @DEVMAPPER_LIBS@
71 STATIC_DEVMAPPER_LIBS = @STATIC_DEVMAPPER_LIBS@
73 LIB = $(top_builddir)/lib
74 LIBSS = $(LIB)/libss@LIB_EXT@
75 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
76 LIBE2P = $(LIB)/libe2p@LIB_EXT@
77 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
78 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
79 LIBBLKID = $(LIB)/libblkid@LIB_EXT@ $(DEVMAPPER_LIBS)
81 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
83 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
84 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
85 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
86 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
87 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
88 STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@ $(STATIC_DEVMAPPER_LIBS)
89 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
91 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
92 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
93 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
94 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
95 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
96 PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
97 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
99 # An include directive pointing to a directory holding enough linux-like
100 # include files to satisfy some programs here
101 LINUX_INCLUDE=@LINUX_INCLUDE@
104 # A fast substitution command for fixing up man pages, shell scripts, etc.
106 SUBST_CONF=$(top_builddir)/util/subst.conf
107 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
108 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
109 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
111 $(top_builddir)/util/subst:
112 cd $(top_builddir)/util ; $(MAKE) subst
117 # Run make gcc-wall to do a build with warning messages.
120 WFLAGS= -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \
121 -Wall -W -Wwrite-strings -Wpointer-arith \
122 -Wcast-qual -Wcast-align \
123 -Wstrict-prototypes -Wmissing-prototypes \
124 -Wformat-security -Wformat-nonliteral \
125 -Wmissing-format-attribute \
126 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
130 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
133 make clean > /dev/null
137 # Installation user and groups
156 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
157 $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
158 $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
159 $(top_srcdir)/lib/Makefile.profile
161 $(top_builddir)/config.status: $(top_srcdir)/configure
162 cd $(top_builddir); ./config.status --recheck
164 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
165 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
167 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
168 $(top_builddir)/config.status
169 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
171 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
172 $(top_builddir)/config.status
173 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
175 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
176 $(DEP_MAKEFILE) $(top_builddir)/config.status
177 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
179 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
180 @MAINTAINER_CMT@ cd $(top_srcdir) && autoconf
183 # Make depend magic...
186 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
187 if test -n "$(SRCS)" ; then \
188 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
189 $(SED) -f $(top_srcdir)/depfix.sed \
190 -e 's; $(srcdir)/; $$(srcdir)/;g' \
191 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
192 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
196 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
200 if test -n "$(SRCS)" ; then \
201 sed -e '/^# +++ Dependency line eater +++/,$$d' \
202 < $(srcdir)/Makefile.in | cat - .depend \
203 > $(srcdir)/Makefile.in.new; \
204 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
205 $(RM) $(srcdir)/Makefile.in.new ; \
207 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
208 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
211 # End of file MCONFIG