Whamcloud - gitweb
Add support for configure --enable-verbose-makecmds
[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 E = @E@
36 Q = @Q@
37
38 # Uncomment to pretty-print the makefile commands
39 # E = @echo
40 # Q = @
41 #
42 # Uncomment to show the full makefile commands
43 # E = @\#
44 # Q = 
45
46 CC = @CC@
47 BUILD_CC = @BUILD_CC@
48 DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@
49 CFLAGS = @CFLAGS@
50 CPPFLAGS =  -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
51 INTL_FLAGS = @INTL_FLAGS@
52 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
53         $(INTL_FLAGS) $(LINUX_INCLUDE) 
54 LDFLAGS = @LDFLAGS@
55 ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@
56 LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@
57 BUILD_CFLAGS = @BUILD_CFLAGS@
58 BUILD_LDFLAGS = @BUILD_LDFLAGS@
59 RM = @RM@
60 LN = @LN@
61 LN_S = @LN_S@
62 MV = @MV@
63 CP = @CP@
64 CHMOD = @CHMOD@
65 AR = @AR@
66 AWK = @AWK@
67 SED = @SED@
68 PERL = @PERL@
69 RANLIB = @RANLIB@
70 STRIP = @STRIP@
71 LD = $(PURE) @CC@
72 ARUPD = $(AR) r
73 ARGEN = $(AR) rc
74 LDCONFIG = @LDCONFIG@
75 INSTALL_PROGRAM = @INSTALL_PROGRAM@
76 INSTALL_DATA = @INSTALL_DATA@
77 INSTALL_SCRIPT = @INSTALL_SCRIPT@
78 MKINSTALLDIRS = @MKINSTALLDIRS@
79
80 #
81 # Library definitions
82 #
83 LIB = $(top_builddir)/lib
84 LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
85 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
86 LIBE2P = $(LIB)/libe2p@LIB_EXT@
87 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
88 LIBUUID = @LIBUUID@ @SOCKET_LIB@
89 LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
90 LIBINTL = @LIBINTL@
91 DEPLIBSS = $(LIB)/libss@LIB_EXT@
92 DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
93 DEPLIBUUID = @DEPLIBUUID@
94 DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
95
96 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
97 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
98 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
99 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
100 STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
101 STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
102 DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
103 DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
104 DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
105 DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(STATIC_LIBUUID)
106
107 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
108 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
109 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
110 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
111 PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
112 PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
113 DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
114 DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
115 DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
116 DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
117
118 # An include directive pointing to a directory holding enough linux-like
119 # include files to satisfy some programs here
120 LINUX_INCLUDE=@LINUX_INCLUDE@
121
122 #
123 # A fast substitution command for fixing up man pages, shell scripts, etc.
124 #
125 SUBST_CONF=$(top_builddir)/util/subst.conf
126 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
127 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
128 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
129
130 $(top_builddir)/util/subst:
131         cd $(top_builddir)/util ; $(MAKE) subst
132
133 #
134 # Warning flags
135 #
136 # Run make gcc-wall to do a build with warning messages.
137 #
138 #
139 WFLAGS=         -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
140                         -pedantic $(WFLAGS_EXTRA) \
141                         -Wall -W -Wwrite-strings -Wpointer-arith \
142                         -Wcast-qual -Wcast-align -Wno-variadic-macros \
143                         -Wstrict-prototypes -Wmissing-prototypes \
144                         -Wformat-security  -Wformat-nonliteral \
145                         -Wmissing-format-attribute -O2 -Wstrict-aliasing \
146                         -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
147                         -UENABLE_NLS
148
149 gcc-wall-new:
150         (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
151
152 gcc-wall:
153         make clean > /dev/null
154         make gcc-wall-new
155
156 #
157 # Installation user and groups
158 #
159 BINGRP=         bin
160 BINOWN=         bin
161 BINMODE=        555
162 INCGRP=         bin
163 INCOWN=         bin
164 INCMODE=        444
165 LIBOWN=         bin
166 LIBGRP=         bin
167 LIBMODE=        444
168 MANGRP=         bin
169 MANOWN=         bin
170 MANMODE=        444
171
172 #
173 # Autoconf magic...
174 #
175
176 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
177         $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
178         $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
179         $(top_srcdir)/lib/Makefile.profile
180
181 $(top_builddir)/config.status: $(top_srcdir)/configure
182         cd $(top_builddir); ./config.status --recheck
183
184 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
185         cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
186
187 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
188                 $(top_builddir)/config.status
189         cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
190
191 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
192                 $(top_builddir)/config.status
193         cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
194
195 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
196                 $(DEP_MAKEFILE) $(top_builddir)/config.status
197         cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
198
199 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
200 @MAINTAINER_CMT@        cd $(top_srcdir) && autoconf
201
202 #
203 # Make depend magic...
204 #
205
206 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
207         if test -n "$(SRCS)" ; then \
208                 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
209                         $(SED) -f $(top_srcdir)/depfix.sed \
210                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
211                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
212                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
213                             -e 's; \./; ;g' \
214                             -e '/^#/d' \
215                             -e '/^ *\\$$/d' | \
216                         $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
217         else :; fi
218
219 depend:: .depend
220         if test -n "$(SRCS)" ; then \
221                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
222                         < $(srcdir)/Makefile.in | cat - .depend \
223                         > $(srcdir)/Makefile.in.new; \
224         if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
225                 $(RM) $(srcdir)/Makefile.in.new ; \
226         else \
227                 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
228                 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
229         fi ; else :; fi
230
231 # End of file MCONFIG