1 # Beginning of file MCONFIG
10 root_prefix = @root_prefix@
11 exec_prefix = @exec_prefix@
12 root_bindir = @root_bindir@
13 root_sbindir = @root_sbindir@
14 root_libdir = @root_libdir@
19 root_sysconfdir= @root_sysconfdir@
20 includedir = @includedir@
22 man1dir = $(mandir)/man1
23 man3dir = $(mandir)/man3
24 man8dir = $(mandir)/man8
30 INSTALL_PROGRAM = @INSTALL_PROGRAM@
31 INSTALL_DATA = @INSTALL_DATA@
37 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
38 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
40 ALL_LDFLAGS = $(LDFLAGS)
60 LIB = $(top_builddir)/lib
61 LIBSS = $(LIB)/libss@LIB_EXT@
62 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
63 LIBE2P = $(LIB)/libe2p@LIB_EXT@
64 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
65 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
66 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
68 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
69 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
70 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
71 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
72 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
73 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
75 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
76 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
77 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
78 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
79 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
80 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
83 # Use these definitions is you use tools 2.x, x < 16
86 #JUMP_PREFIX=/usr/dll/jump/
89 # Use these definitions if you use tools 2.16 or above
92 JUMP_PREFIX=/usr/bin/jump
94 # An include directive pointing to a directory holding enough linux-like
95 # include files to satisfy some programs here
96 LINUX_INCLUDE=@LINUX_INCLUDE@
99 # A fast substitution command for fixing up man pages, shell scripts, etc.
101 SUBST_CONF=$(top_builddir)/util/subst.conf
102 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
103 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
105 $(top_builddir)/util/subst:
106 cd $(top_builddir)/util ; $(MAKE) subst
111 # Run make gcc-wall to do a build with warning messages.
114 WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
115 -Wall -Wwrite-strings -Wpointer-arith \
116 -Wcast-qual -Wcast-align -Wtraditional \
117 -Wstrict-prototypes -Wmissing-prototypes \
118 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
121 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
124 make clean > /dev/null
128 # Installation user and groups
147 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
148 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
149 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
151 $(top_builddir)/config.status: $(top_srcdir)/configure
152 cd $(top_builddir); ./config.status --recheck
154 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
155 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
157 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
158 $(top_builddir)/config.status
159 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
161 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
162 $(top_builddir)/config.status
163 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
165 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
166 $(DEP_MAKEFILE) $(top_builddir)/config.status
167 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
169 $(top_srcdir)/configure: $(top_srcdir)/configure.in
170 cd $(top_srcdir) && autoconf
173 # Make depend magic...
176 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
177 if test -n "$(SRCS)" ; then \
178 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
179 $(SED) -f $(top_srcdir)/depfix.sed \
180 -e 's; $(srcdir)/; $$(srcdir)/;g' \
181 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
182 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
185 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
189 if test -n "$(SRCS)" ; then \
190 sed -e '/^# +++ Dependency line eater +++/,$$d' \
191 < $(srcdir)/Makefile.in | cat - .depend \
192 > $(srcdir)/Makefile.in.new; \
193 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
194 $(RM) $(srcdir)/Makefile.in.new ; \
196 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
197 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
200 # End of file MCONFIG