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
37 DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@
39 CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
40 INTL_FLAGS = @INTL_FLAGS@
41 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
42 $(INTL_FLAGS) $(LINUX_INCLUDE)
44 ALL_LDFLAGS = $(LDFLAGS)
45 BUILD_CFLAGS = @BUILD_CFLAGS@
46 BUILD_LDFLAGS = @BUILD_LDFLAGS@
63 INSTALL_PROGRAM = @INSTALL_PROGRAM@
64 INSTALL_DATA = @INSTALL_DATA@
65 INSTALL_SCRIPT = @INSTALL_SCRIPT@
66 MKINSTALLDIRS = @MKINSTALLDIRS@
71 LIB = $(top_builddir)/lib
72 LIBSS = $(LIB)/libss@LIB_EXT@ @DLOPEN_LIB@
73 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
74 LIBE2P = $(LIB)/libe2p@LIB_EXT@
75 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
76 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
77 LIBBLKID = $(LIB)/libblkid@LIB_EXT@
79 DEPLIBSS = $(LIB)/libss@LIB_EXT@
80 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
81 DEPLIBBLKID = $(LIB)/libblkid@LIB_EXT@
83 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
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@
89 DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
90 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
91 DEPSTATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@
93 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
94 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
95 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
96 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
97 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
98 PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
99 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
100 DEPPROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
102 # An include directive pointing to a directory holding enough linux-like
103 # include files to satisfy some programs here
104 LINUX_INCLUDE=@LINUX_INCLUDE@
107 # A fast substitution command for fixing up man pages, shell scripts, etc.
109 SUBST_CONF=$(top_builddir)/util/subst.conf
110 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
111 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
112 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
114 $(top_builddir)/util/subst:
115 cd $(top_builddir)/util ; $(MAKE) subst
120 # Run make gcc-wall to do a build with warning messages.
123 WFLAGS= -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
124 -pedantic $(WFLAGS_EXTRA) \
125 -Wall -W -Wwrite-strings -Wpointer-arith \
126 -Wcast-qual -Wcast-align -Wno-variadic-macros \
127 -Wstrict-prototypes -Wmissing-prototypes \
128 -Wformat-security -Wformat-nonliteral \
129 -Wmissing-format-attribute -O2 -Wstrict-aliasing \
130 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
134 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
137 make clean > /dev/null
141 # Installation user and groups
160 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
161 $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
162 $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
163 $(top_srcdir)/lib/Makefile.profile
165 $(top_builddir)/config.status: $(top_srcdir)/configure
166 cd $(top_builddir); ./config.status --recheck
168 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
169 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
171 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
172 $(top_builddir)/config.status
173 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
175 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
176 $(top_builddir)/config.status
177 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
179 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
180 $(DEP_MAKEFILE) $(top_builddir)/config.status
181 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
183 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
184 @MAINTAINER_CMT@ cd $(top_srcdir) && autoconf
187 # Make depend magic...
190 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
191 if test -n "$(SRCS)" ; then \
192 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
193 $(SED) -f $(top_srcdir)/depfix.sed \
194 -e 's; $(srcdir)/; $$(srcdir)/;g' \
195 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
196 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
200 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
204 if test -n "$(SRCS)" ; then \
205 sed -e '/^# +++ Dependency line eater +++/,$$d' \
206 < $(srcdir)/Makefile.in | cat - .depend \
207 > $(srcdir)/Makefile.in.new; \
208 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
209 $(RM) $(srcdir)/Makefile.in.new ; \
211 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
212 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
215 # End of file MCONFIG