1 # Beginning of file MCONFIG
10 root_prefix = @root_prefix@
11 exec_prefix = @exec_prefix@
12 root_bindir = $(root_prefix)/bin
13 root_sbindir = $(root_prefix)/sbin
14 root_libdir = $(root_prefix)/lib
18 includedir = @includedir@
20 man1dir = $(mandir)/man1
21 man3dir = $(mandir)/man3
22 man8dir = $(mandir)/man8
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@
29 INSTALL_DATA = @INSTALL_DATA@
35 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
36 -I$(top_builddir)/lib -I$(top_srcdir)/lib \
37 -I$(top_srcdir)/include $(LINUX_INCLUDE)
39 ALL_LDFLAGS = $(LDFLAGS)
58 LIB = $(top_builddir)/lib
59 LIBSS = $(LIB)/libss@LIB_EXT@
60 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
61 LIBE2P = $(LIB)/libe2p@LIB_EXT@
62 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
63 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
64 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
66 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
67 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
68 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
69 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
70 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
71 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
73 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
74 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
75 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
76 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
77 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
78 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
81 # Use these definitions is you use tools 2.x, x < 16
84 #JUMP_PREFIX=/usr/dll/jump/
87 # Use these definitions if you use tools 2.16 or above
90 JUMP_PREFIX=/usr/bin/jump
92 # An include directive pointing to a directory holding enough linux-like
93 # include files to satisfy some programs here
94 LINUX_INCLUDE=@LINUX_INCLUDE@
97 # A fast substitution command for fixing up man pages, shell scripts, etc.
99 SUBST_CONF=$(top_builddir)/util/subst.conf
100 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
101 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
103 $(top_builddir)/util/subst:
104 cd $(top_builddir)/util ; $(MAKE) subst
109 # Run make gcc-wall to do a build with warning messages.
112 WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
113 -Wall -Wwrite-strings -Wpointer-arith \
114 -Wcast-qual -Wcast-align -Wtraditional \
115 -Wstrict-prototypes -Wmissing-prototypes \
116 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
119 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
122 make clean > /dev/null
126 # Installation user and groups
145 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
146 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
147 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
149 $(top_builddir)/config.status: $(top_srcdir)/configure
150 cd $(top_builddir); ./config.status --recheck
152 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
153 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
155 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
156 $(top_builddir)/config.status
157 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
159 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
160 $(top_builddir)/config.status
161 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
163 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
164 $(DEP_MAKEFILE) $(top_builddir)/config.status
165 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
167 $(top_srcdir)/configure: $(top_srcdir)/configure.in
168 cd $(top_srcdir) && autoconf
171 # Make depend magic...
174 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
175 if test -n "$(SRCS)" ; then \
176 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
177 $(SED) -f $(top_srcdir)/depfix.sed \
178 -e 's; $(srcdir)/; $$(srcdir)/;g' \
179 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
180 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
183 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
187 if test -n "$(SRCS)" ; then \
188 sed -e '/^# +++ Dependency line eater +++/,$$d' \
189 < $(srcdir)/Makefile.in | cat - .depend \
190 > $(srcdir)/Makefile.in.new; \
191 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
192 $(RM) $(srcdir)/Makefile.in.new ; \
194 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
195 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
198 # End of file MCONFIG