OSDN Git Service

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