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 man8dir = $(mandir)/man8
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34 INSTALL_DATA = @INSTALL_DATA@
37 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
40 INTL_FLAGS = @INTL_FLAGS@
41 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
42 $(INTL_FLAGS) -I$(top_builddir)/lib -I$(top_srcdir)/lib \
45 ALL_LDFLAGS = $(LDFLAGS)
65 LIB = $(top_builddir)/lib
66 LIBSS = $(LIB)/libss@LIB_EXT@
67 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
68 LIBE2P = $(LIB)/libe2p@LIB_EXT@
69 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
70 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
71 LIBBLKID = $(LIB)/libblkid@LIB_EXT@
73 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
75 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
76 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
77 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
78 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
79 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
80 STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@
81 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
83 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
84 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
85 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
86 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
87 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
88 PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
89 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
92 # Use these definitions is you use tools 2.x, x < 16
95 #JUMP_PREFIX=/usr/dll/jump/
98 # Use these definitions if you use tools 2.16 or above
101 JUMP_PREFIX=/usr/bin/jump
103 # An include directive pointing to a directory holding enough linux-like
104 # include files to satisfy some programs here
105 LINUX_INCLUDE=@LINUX_INCLUDE@
108 # A fast substitution command for fixing up man pages, shell scripts, etc.
110 SUBST_CONF=$(top_builddir)/util/subst.conf
111 SUBSTITUTE= $(top_builddir)/util/subst -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= -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \
124 -Wall -Wwrite-strings -Wpointer-arith \
125 -Wcast-qual -Wcast-align \
126 -Wstrict-prototypes -Wmissing-prototypes \
127 -Wformat-security -Wformat-nonliteral \
128 -Wmissing-format-attribute \
129 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
132 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
135 make clean > /dev/null
139 # Installation user and groups
158 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
159 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
160 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
162 $(top_builddir)/config.status: $(top_srcdir)/configure
163 cd $(top_builddir); ./config.status --recheck
165 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
166 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
168 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
169 $(top_builddir)/config.status
170 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
172 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
173 $(top_builddir)/config.status
174 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
176 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
177 $(DEP_MAKEFILE) $(top_builddir)/config.status
178 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
180 $(top_srcdir)/configure: $(top_srcdir)/configure.in
181 cd $(top_srcdir) && autoconf
184 # Make depend magic...
187 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
188 if test -n "$(SRCS)" ; then \
189 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
190 $(SED) -f $(top_srcdir)/depfix.sed \
191 -e 's; $(srcdir)/; $$(srcdir)/;g' \
192 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
193 -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