1 # Beginning of file MCONFIG
8 root_prefix = @root_prefix@
9 exec_prefix = @exec_prefix@
10 root_bindir = $(root_prefix)/bin
11 root_sbindir = $(root_prefix)/sbin
12 root_libdir = $(root_prefix)/lib
16 includedir = @includedir@
18 man1dir = $(mandir)/man1
19 man3dir = $(mandir)/man3
20 man8dir = $(mandir)/man8
26 INSTALL_PROGRAM = @INSTALL_PROGRAM@
27 INSTALL_DATA = @INSTALL_DATA@
33 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
34 -I$(top_builddir)/lib -I$(top_srcdir)/lib \
35 -I$(top_srcdir)/include $(LINUX_INCLUDE)
37 ALL_LDFLAGS = $(LDFLAGS)
56 LIB = $(top_builddir)/lib
57 LIBSS = $(LIB)/libss@LIB_EXT@
58 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
59 LIBE2P = $(LIB)/libe2p@LIB_EXT@
60 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
61 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
62 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
64 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
65 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
66 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
67 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
68 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
69 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
71 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
72 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
73 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
74 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
75 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
76 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
79 # Use these definitions is you use tools 2.x, x < 16
82 #JUMP_PREFIX=/usr/dll/jump/
85 # Use these definitions if you use tools 2.16 or above
88 JUMP_PREFIX=/usr/bin/jump
90 # An include directive pointing to a directory holding enough linux-like
91 # include files to satisfy some programs here
92 LINUX_INCLUDE=@LINUX_INCLUDE@
95 # A fast substitution command for fixing up man pages, shell scripts, etc.
97 SUBST_CONF=$(top_builddir)/util/subst.conf
98 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
99 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
101 $(top_builddir)/util/subst:
102 cd $(top_builddir)/util ; $(MAKE) subst
107 # Uncomment WFLAGS if you want really anal GCC warning messages
110 @W@WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
111 @W@ -Wall -Wwrite-strings -Wpointer-arith \
112 @W@ -Wcast-qual -Wcast-align -Wtraditional \
113 @W@ -Wstrict-prototypes -Wmissing-prototypes \
114 @W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
117 # Installation user and groups
136 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
137 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
138 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
140 $(top_builddir)/config.status: $(top_srcdir)/configure
141 cd $(top_builddir); ./config.status --recheck
143 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
144 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
146 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
147 $(top_builddir)/config.status
148 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
150 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
151 $(top_builddir)/config.status
152 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
154 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
155 $(DEP_MAKEFILE) $(top_builddir)/config.status
156 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
158 $(top_srcdir)/configure: $(top_srcdir)/configure.in
159 cd $(top_srcdir) && autoconf
162 # Make depend magic...
165 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
166 if test -n "$(SRCS)" ; then \
167 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
168 $(SED) -f $(top_srcdir)/depfix.sed \
169 -e 's; $(srcdir)/; $$(srcdir)/;g' \
170 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
171 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
174 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
178 if test -n "$(SRCS)" ; then \
179 sed -e '/^# +++ Dependency line eater +++/,$$d' \
180 < $(srcdir)/Makefile.in | cat - .depend \
181 > $(srcdir)/Makefile.in.new; \
182 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
183 $(RM) $(srcdir)/Makefile.in.new ; \
185 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
186 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
189 # End of file MCONFIG