Whamcloud - gitweb
e2fsck: allow for bigger disks when printing verbose statistics
[tools/e2fsprogs.git] / MCONFIG.in
1 # Beginning of file MCONFIG
2
3 all::
4
5 check::
6
7 SHELL = /bin/sh
8
9 COMPRESS_EXT = gz bz2 bz Z
10
11 prefix = @prefix@
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@
18 bindir = @bindir@
19 sbindir = @sbindir@
20 libdir = @libdir@
21 datadir= @datadir@
22 localedir = $(datadir)/locale
23 root_sysconfdir= @root_sysconfdir@
24 includedir = @includedir@
25 mandir = @mandir@
26 man1dir = $(mandir)/man1
27 man3dir = $(mandir)/man3
28 man5dir = $(mandir)/man5
29 man8dir = $(mandir)/man8
30 infodir = @infodir@
31 datadir = @datadir@
32
33 @SET_MAKE@
34
35 @ifGNUmake@ V =
36 @ifGNUmake@ ifeq ($(strip $(V)),)
37 @ifGNUmake@ #  E = @echo
38 @ifGNUmake@ #  ES = echo
39 @ifGNUmake@ #  Q = @
40 @ifGNUmake@    E = @E@
41 @ifGNUmake@    ES = @ES@
42 @ifGNUmake@    Q = @Q@
43 @ifGNUmake@ else
44 @ifGNUmake@    E = @\#
45 @ifGNUmake@    ES = \#
46 @ifGNUmake@    Q =
47 @ifGNUmake@ endif
48
49 @ifNotGNUmake@ E = @E@
50 @ifNotGNUmake@ ES = @ES@
51 @ifNotGNUmake@ Q = @Q@
52
53 CC = @CC@
54 BUILD_CC = @BUILD_CC@
55 CFLAGS = @CFLAGS@
56 CPPFLAGS = @INCLUDES@
57 ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
58 LDFLAGS = @LDFLAGS@
59 ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@
60 LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@
61 BUILD_CFLAGS = @BUILD_CFLAGS@
62 BUILD_LDFLAGS = @BUILD_LDFLAGS@
63 RDYNAMIC = @RDYNAMIC@
64 LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@
65 LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@
66 RM = @RM@
67 LN = @LN@
68 LN_S = @LN_S@
69 MV = @MV@
70 CP = @CP@
71 CHMOD = @CHMOD@
72 AR = @AR@
73 AWK = @AWK@
74 SED = @SED@
75 PERL = @PERL@
76 RANLIB = @RANLIB@
77 STRIP = @STRIP@
78 LD = $(PURE) @CC@
79 ARUPD = $(AR) r
80 ARGEN = $(AR) rc
81 LDCONFIG = @LDCONFIG@
82 INSTALL_PROGRAM = @INSTALL_PROGRAM@
83 INSTALL_DATA = @INSTALL_DATA@
84 INSTALL_SCRIPT = @INSTALL_SCRIPT@
85 MKINSTALLDIRS = @MKINSTALLDIRS@
86
87 #
88 # Library definitions
89 #
90 LIB = $(top_builddir)/lib
91 LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
92 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
93 LIBE2P = $(LIB)/libe2p@LIB_EXT@
94 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
95 LIBUUID = @LIBUUID@ @SOCKET_LIB@
96 LIBQUOTA = @STATIC_LIBQUOTA@
97 LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
98 LIBINTL = @LIBINTL@
99 DEPLIBSS = $(LIB)/libss@LIB_EXT@
100 DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
101 DEPLIBUUID = @DEPLIBUUID@
102 DEPLIBQUOTA = @DEPSTATIC_LIBQUOTA@
103 DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
104
105 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
106 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
107 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
108 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
109 STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
110 STATIC_LIBQUOTA = @STATIC_LIBQUOTA@
111 STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
112 DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
113 DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
114 DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
115 DEPSTATIC_LIBQUOTA = @DEPSTATIC_LIBQUOTA@
116 DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID)
117
118 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
119 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
120 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
121 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
122 PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
123 PROFILED_LIBQUOTA = @PROFILED_LIBQUOTA@
124 PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
125 DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
126 DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
127 DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
128 DEPPROFILED_LIBQUOTA = @PROFILED_LIBQUOTA@
129 DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID)
130
131 #
132 # A fast substitution command for fixing up man pages, shell scripts, etc.
133 #
134 SUBST_CONF=$(top_builddir)/util/subst.conf
135 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
136 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
137 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
138
139 $(top_builddir)/util/subst:
140         cd $(top_builddir)/util ; $(MAKE) subst
141
142 #
143 # Script for installing symlinks (for shared libraries)
144 #
145 $(top_builddir)/util/install-symlink: $(top_srcdir)/util/install-symlink.in \
146                               $(top_builddir)/config.status
147         cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status
148         chmod +x $(top_builddir)/util/install-symlink
149
150 $(top_builddir)/util/symlinks:
151         cd $(top_builddir)/util ; $(MAKE) symlinks
152
153 INSTALL_SYMLINK = /bin/sh $(top_builddir)/util/install-symlink \
154                         @SYMLINK_RELATIVE@ \
155                         --symlinks=$(top_builddir)/util/symlinks
156 DEP_INSTALL_SYMLINK = $(top_builddir)/util/install-symlink \
157                         $(top_builddir)/util/symlinks
158
159 #
160 # Warning flags
161 #
162 # Run make gcc-wall to do a build with warning messages.
163 #
164 #
165 WFLAGS=         -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
166                         -pedantic $(WFLAGS_EXTRA) \
167                         -Wall -W -Wwrite-strings -Wpointer-arith \
168                         -Wcast-qual -Wcast-align -Wno-variadic-macros \
169                         -Wstrict-prototypes -Wmissing-prototypes \
170                         -Wformat-security  -Wformat-nonliteral \
171                         -Wmissing-format-attribute -O2 -Wstrict-aliasing \
172                         -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
173                         -UENABLE_NLS
174
175 gcc-wall-new:
176         (make CFLAGS="@CFLAGS@ $(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
177
178 gcc-wall:
179         make clean > /dev/null
180         make gcc-wall-new
181
182 #
183 # Installation user and groups
184 #
185 BINGRP=         bin
186 BINOWN=         bin
187 BINMODE=        555
188 INCGRP=         bin
189 INCOWN=         bin
190 INCMODE=        444
191 LIBOWN=         bin
192 LIBGRP=         bin
193 LIBMODE=        444
194 MANGRP=         bin
195 MANOWN=         bin
196 MANMODE=        444
197
198 #
199 # Autoconf magic...
200 #
201
202 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \
203         $(top_srcdir)/lib/Makefile.elf-lib  \
204         $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
205         $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
206         $(top_srcdir)/lib/Makefile.profile
207
208 $(top_builddir)/config.status: $(top_srcdir)/configure
209         cd $(top_builddir); ./config.status --recheck
210
211 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
212         cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
213
214 $(top_builddir)/lib/config.h: $(top_srcdir)/lib/config.h.in \
215                               $(top_builddir)/config.status
216         cd $(top_builddir); CONFIG_FILES=lib/config.h ./config.status
217
218 $(top_builddir)/lib/dirpaths.h: $(DEP_SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in
219         $(E) "  SUBST $@"
220         $(Q) $(SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in $@
221
222 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
223                 $(top_builddir)/config.status
224         cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
225
226 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
227                 $(top_builddir)/config.status
228         cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
229
230 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
231                 $(DEP_MAKEFILE) $(top_builddir)/config.status
232         cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
233
234 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
235 @MAINTAINER_CMT@        cd $(top_srcdir) && autoheader && autoconf
236
237 #
238 # Make depend magic...
239 #
240
241 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
242         if test -n "$(SRCS)" ; then \
243                 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
244                         $(SED) -f $(top_srcdir)/depfix.sed \
245                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
246                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
247                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
248                             -e 's; \./; ;g' \
249                             -e '/^#/d' \
250                             -e '/^ *\\$$/d' | \
251                         $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
252         else :; fi
253
254 depend:: .depend
255         if test -n "$(SRCS)" ; then \
256                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
257                         < $(srcdir)/Makefile.in | cat - .depend \
258                         > $(srcdir)/Makefile.in.new; \
259         if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
260                 $(RM) $(srcdir)/Makefile.in.new ; \
261         else \
262                 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
263                 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
264         fi ; else :; fi
265
266 # End of file MCONFIG