xref: /aosp_15_r20/external/e2fsprogs/MCONFIG.in (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker# Beginning of file MCONFIG
2*6a54128fSAndroid Build Coastguard Worker
3*6a54128fSAndroid Build Coastguard Workerall::
4*6a54128fSAndroid Build Coastguard Worker
5*6a54128fSAndroid Build Coastguard Workerall-static::
6*6a54128fSAndroid Build Coastguard Worker
7*6a54128fSAndroid Build Coastguard Workercheck::
8*6a54128fSAndroid Build Coastguard Worker
9*6a54128fSAndroid Build Coastguard Workerfullcheck::
10*6a54128fSAndroid Build Coastguard Worker
11*6a54128fSAndroid Build Coastguard WorkerSHELL = /bin/sh
12*6a54128fSAndroid Build Coastguard Worker
13*6a54128fSAndroid Build Coastguard WorkerCOMPRESS_EXT = gz bz2 bz Z
14*6a54128fSAndroid Build Coastguard Worker
15*6a54128fSAndroid Build Coastguard Workerprefix = @prefix@
16*6a54128fSAndroid Build Coastguard Workerroot_prefix = @root_prefix@
17*6a54128fSAndroid Build Coastguard Workerexec_prefix = @exec_prefix@
18*6a54128fSAndroid Build Coastguard Workerroot_bindir = @root_bindir@
19*6a54128fSAndroid Build Coastguard Workerroot_sbindir = @root_sbindir@
20*6a54128fSAndroid Build Coastguard Workerroot_libdir = @root_libdir@
21*6a54128fSAndroid Build Coastguard Workerdatarootdir = @datarootdir@
22*6a54128fSAndroid Build Coastguard Workerbindir = @bindir@
23*6a54128fSAndroid Build Coastguard Workersbindir = @sbindir@
24*6a54128fSAndroid Build Coastguard Workerlibdir = @libdir@
25*6a54128fSAndroid Build Coastguard Workerdatadir= @datadir@
26*6a54128fSAndroid Build Coastguard Workerlocaledir = $(datadir)/locale
27*6a54128fSAndroid Build Coastguard Workerroot_sysconfdir= @root_sysconfdir@
28*6a54128fSAndroid Build Coastguard Workerincludedir = @includedir@
29*6a54128fSAndroid Build Coastguard Workermandir = @mandir@
30*6a54128fSAndroid Build Coastguard Workerman1dir = $(mandir)/man1
31*6a54128fSAndroid Build Coastguard Workerman3dir = $(mandir)/man3
32*6a54128fSAndroid Build Coastguard Workerman5dir = $(mandir)/man5
33*6a54128fSAndroid Build Coastguard Workerman8dir = $(mandir)/man8
34*6a54128fSAndroid Build Coastguard Workerinfodir = @infodir@
35*6a54128fSAndroid Build Coastguard Workerdatadir = @datadir@
36*6a54128fSAndroid Build Coastguard Workerpkgconfigdir = $(libdir)/pkgconfig
37*6a54128fSAndroid Build Coastguard Workerpkglibdir = $(libdir)/e2fsprogs
38*6a54128fSAndroid Build Coastguard Worker
39*6a54128fSAndroid Build Coastguard WorkerHAVE_UDEV = @have_udev@
40*6a54128fSAndroid Build Coastguard WorkerUDEV_RULES_DIR = @pkg_udev_rules_dir@
41*6a54128fSAndroid Build Coastguard WorkerHAVE_CROND = @have_crond@
42*6a54128fSAndroid Build Coastguard WorkerCROND_DIR = @crond_dir@
43*6a54128fSAndroid Build Coastguard WorkerHAVE_SYSTEMD = @have_systemd@
44*6a54128fSAndroid Build Coastguard WorkerSYSTEMD_SYSTEM_UNIT_DIR = @systemd_system_unit_dir@
45*6a54128fSAndroid Build Coastguard Worker
46*6a54128fSAndroid Build Coastguard Worker@SET_MAKE@
47*6a54128fSAndroid Build Coastguard Worker
48*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ V =
49*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ ifeq ($(strip $(V)),)
50*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ #  E = @echo
51*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ #  ES = echo
52*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ #  Q = @
53*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    E = @E@
54*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    ES = @ES@
55*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    Q = @Q@
56*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ else
57*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    E = @\#
58*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    ES = \#
59*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    Q =
60*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ endif
61*6a54128fSAndroid Build Coastguard Worker
62*6a54128fSAndroid Build Coastguard Worker@ifNotGNUmake@ E = @E@
63*6a54128fSAndroid Build Coastguard Worker@ifNotGNUmake@ ES = @ES@
64*6a54128fSAndroid Build Coastguard Worker@ifNotGNUmake@ Q = @Q@
65*6a54128fSAndroid Build Coastguard Worker
66*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ CHECK=sparse
67*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ CHECK_OPTS=-Wsparse-all -Wno-transparent-union -Wno-return-void -Wno-undef -Wno-non-pointer-null
68*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ CPPCHECK=cppcheck
69*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ CPPCHECK_OPTS=--force --enable=all --quiet
70*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ ifeq ("$(C)", "2")
71*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@   CHECK_CMD=$(CHECK) $(CHECK_OPTS) -Wbitwise -D__CHECK_ENDIAN__
72*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@   CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
73*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ else
74*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@   ifeq ("$(C)", "1")
75*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@     CHECK_CMD=$(CHECK) $(CHECK_OPTS)
76*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@     CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
77*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@    else
78*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@     CHECK_CMD=@true
79*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@     CPPCHECK_CMD=@true
80*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@   endif
81*6a54128fSAndroid Build Coastguard Worker@ifGNUmake@ endif
82*6a54128fSAndroid Build Coastguard Worker
83*6a54128fSAndroid Build Coastguard Worker@ifNotGNUmake@ CHECK_CMD=true
84*6a54128fSAndroid Build Coastguard Worker@ifNotGNUmake@ CPPCHECK_CMD=true
85*6a54128fSAndroid Build Coastguard Worker
86*6a54128fSAndroid Build Coastguard WorkerSANITIZER_CFLAGS = @lto_cflags@ @ubsan_cflags@ @addrsan_cflags@ @threadsan_cflags@
87*6a54128fSAndroid Build Coastguard WorkerSANITIZER_LDFLAGS = @lto_ldflags@ @ubsan_ldflags@ @addrsan_ldflags@ @threadsan_ldflags@
88*6a54128fSAndroid Build Coastguard Worker
89*6a54128fSAndroid Build Coastguard WorkerCC = @PTHREAD_CC@
90*6a54128fSAndroid Build Coastguard WorkerCXX = @CXX@
91*6a54128fSAndroid Build Coastguard WorkerBUILD_CC = @BUILD_CC@
92*6a54128fSAndroid Build Coastguard WorkerPTHREAD_CFLAGS = @PTHREAD_CFLAGS@
93*6a54128fSAndroid Build Coastguard WorkerPTHREAD_LIBS = @PTHREAD_LIBS@
94*6a54128fSAndroid Build Coastguard WorkerCFLAGS = @CFLAGS@
95*6a54128fSAndroid Build Coastguard WorkerCFLAGS_SHLIB = @CFLAGS_SHLIB@
96*6a54128fSAndroid Build Coastguard WorkerCFLAGS_STLIB = @CFLAGS_STLIB@
97*6a54128fSAndroid Build Coastguard WorkerCPPFLAGS = @INCLUDES@
98*6a54128fSAndroid Build Coastguard WorkerALL_CFLAGS = $(CPPFLAGS) $(SANITIZER_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
99*6a54128fSAndroid Build Coastguard WorkerALL_CFLAGS_SHLIB = $(CPPFLAGS) $(SANITIZER_CFLAGS) $(CFLAGS_SHLIB) $(PTHREAD_CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
100*6a54128fSAndroid Build Coastguard WorkerALL_CFLAGS_STLIB = $(CPPFLAGS) $(SANITIZER_CFLAGS) $(CFLAGS_STLIB) $(PTHREAD_CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
101*6a54128fSAndroid Build Coastguard WorkerLDFLAGS = $(SANITIZER_LDFLAGS) $(PTHREAD_CFLAGS) @LDFLAGS@
102*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_SHLIB = $(SANITIZER_LDFLAGS) $(PTHREAD_CFLAGS) @LDFLAGS_SHLIB@
103*6a54128fSAndroid Build Coastguard WorkerALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@ $(LOCAL_LDFLAGS)
104*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_STATIC = $(SANITIZER_LDFLAGS) $(PTHREAD_CFLAGS) @LDFLAGS_STATIC@
105*6a54128fSAndroid Build Coastguard WorkerBUILD_CFLAGS = $(SANITIZER_CFLAGS) @BUILD_CFLAGS@
106*6a54128fSAndroid Build Coastguard WorkerBUILD_LDFLAGS = $(SANITIZER_LDFLAGS) @BUILD_LDFLAGS@
107*6a54128fSAndroid Build Coastguard WorkerRDYNAMIC = @RDYNAMIC@
108*6a54128fSAndroid Build Coastguard WorkerLINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@
109*6a54128fSAndroid Build Coastguard WorkerLINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@
110*6a54128fSAndroid Build Coastguard WorkerRM = @RM@
111*6a54128fSAndroid Build Coastguard WorkerLN = @LN@
112*6a54128fSAndroid Build Coastguard WorkerLN_S = @LN_S@
113*6a54128fSAndroid Build Coastguard WorkerMV = @MV@
114*6a54128fSAndroid Build Coastguard WorkerCP = @CP@
115*6a54128fSAndroid Build Coastguard WorkerCHMOD = @CHMOD@
116*6a54128fSAndroid Build Coastguard WorkerAR = @AR@
117*6a54128fSAndroid Build Coastguard WorkerAWK = @AWK@
118*6a54128fSAndroid Build Coastguard WorkerSED = @SED@
119*6a54128fSAndroid Build Coastguard WorkerPERL = @PERL@
120*6a54128fSAndroid Build Coastguard WorkerRANLIB = @RANLIB@
121*6a54128fSAndroid Build Coastguard WorkerSTRIP = @STRIP@
122*6a54128fSAndroid Build Coastguard WorkerLD = $(PURE) @CC@
123*6a54128fSAndroid Build Coastguard WorkerARUPD = $(AR) r
124*6a54128fSAndroid Build Coastguard WorkerARGEN = $(AR) rc
125*6a54128fSAndroid Build Coastguard WorkerLDCONFIG = @LDCONFIG@
126*6a54128fSAndroid Build Coastguard WorkerINSTALL_PROGRAM = @INSTALL_PROGRAM@
127*6a54128fSAndroid Build Coastguard WorkerINSTALL_DATA = @INSTALL_DATA@
128*6a54128fSAndroid Build Coastguard WorkerINSTALL_SCRIPT = @INSTALL_SCRIPT@
129*6a54128fSAndroid Build Coastguard Worker
130*6a54128fSAndroid Build Coastguard Worker#
131*6a54128fSAndroid Build Coastguard Worker# Library definitions
132*6a54128fSAndroid Build Coastguard Worker#
133*6a54128fSAndroid Build Coastguard WorkerLIB = $(top_builddir)/lib
134*6a54128fSAndroid Build Coastguard WorkerLIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
135*6a54128fSAndroid Build Coastguard WorkerLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
136*6a54128fSAndroid Build Coastguard WorkerLIBE2P = $(LIB)/libe2p@LIB_EXT@
137*6a54128fSAndroid Build Coastguard WorkerLIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
138*6a54128fSAndroid Build Coastguard WorkerLIBUUID = @LIBUUID@ @SOCKET_LIB@
139*6a54128fSAndroid Build Coastguard WorkerLIBMAGIC = @MAGIC_LIB@
140*6a54128fSAndroid Build Coastguard WorkerLIBFUSE = @FUSE_LIB@
141*6a54128fSAndroid Build Coastguard WorkerLIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@STATIC_LIB_EXT@
142*6a54128fSAndroid Build Coastguard WorkerLIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
143*6a54128fSAndroid Build Coastguard WorkerLIBINTL = @LIBINTL@
144*6a54128fSAndroid Build Coastguard WorkerSYSLIBS = @LIBS@ @PTHREAD_LIBS@
145*6a54128fSAndroid Build Coastguard WorkerDEPLIBSS = $(LIB)/libss@LIB_EXT@
146*6a54128fSAndroid Build Coastguard WorkerDEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
147*6a54128fSAndroid Build Coastguard WorkerDEPLIBUUID = @DEPLIBUUID@
148*6a54128fSAndroid Build Coastguard WorkerDEPLIBSUPPORT = $(LIB)/libsupport@STATIC_LIB_EXT@
149*6a54128fSAndroid Build Coastguard WorkerDEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
150*6a54128fSAndroid Build Coastguard WorkerTESTENV = LD_LIBRARY_PATH="$(LIB):$${LD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="$(LIB):$${DYLD_LIBRARY_PATH}"
151*6a54128fSAndroid Build Coastguard Worker
152*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
153*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
154*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
155*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
156*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
157*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBSUPPORT = $(LIBINTL) $(LIBSUPPORT)
158*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
159*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
160*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
161*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
162*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBSUPPORT = $(DEPLIBSUPPORT)
163*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID)
164*6a54128fSAndroid Build Coastguard Worker
165*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
166*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
167*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
168*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
169*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
170*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@PROFILED_LIB_EXT@
171*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
172*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
173*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
174*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
175*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBSUPPORT = $(PROFILED_LIBSUPPORT)
176*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID)
177*6a54128fSAndroid Build Coastguard Worker
178*6a54128fSAndroid Build Coastguard Worker#
179*6a54128fSAndroid Build Coastguard Worker# A fast substitution command for fixing up man pages, shell scripts, etc.
180*6a54128fSAndroid Build Coastguard Worker#
181*6a54128fSAndroid Build Coastguard WorkerSUBST_CONF=$(top_builddir)/util/subst.conf
182*6a54128fSAndroid Build Coastguard WorkerSUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
183*6a54128fSAndroid Build Coastguard WorkerSUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
184*6a54128fSAndroid Build Coastguard WorkerDEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
185*6a54128fSAndroid Build Coastguard Worker
186*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/util/subst:
187*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir)/util ; $(MAKE) subst
188*6a54128fSAndroid Build Coastguard Worker
189*6a54128fSAndroid Build Coastguard Worker#
190*6a54128fSAndroid Build Coastguard Worker# Script for generating utf8data.h
191*6a54128fSAndroid Build Coastguard Worker#
192*6a54128fSAndroid Build Coastguard WorkerMKUTF8DATA=$(top_builddir)/util/mkutf8data
193*6a54128fSAndroid Build Coastguard Worker
194*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/util/mkutf8data:
195*6a54128fSAndroid Build Coastguard Worker	 $(MAKE) -C $(top_builddir)/util mkutf8data
196*6a54128fSAndroid Build Coastguard Worker
197*6a54128fSAndroid Build Coastguard Worker#
198*6a54128fSAndroid Build Coastguard Worker# Script for installing symlinks (for shared libraries)
199*6a54128fSAndroid Build Coastguard Worker#
200*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/util/install-symlink: $(top_srcdir)/util/install-symlink.in \
201*6a54128fSAndroid Build Coastguard Worker			      $(top_builddir)/config.status
202*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status
203*6a54128fSAndroid Build Coastguard Worker	chmod +x $(top_builddir)/util/install-symlink
204*6a54128fSAndroid Build Coastguard Worker
205*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/util/symlinks:
206*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir)/util ; $(MAKE) symlinks
207*6a54128fSAndroid Build Coastguard Worker
208*6a54128fSAndroid Build Coastguard WorkerINSTALL_SYMLINK = /bin/sh $(top_builddir)/util/install-symlink \
209*6a54128fSAndroid Build Coastguard Worker			@SYMLINK_RELATIVE@ \
210*6a54128fSAndroid Build Coastguard Worker			--symlinks=$(top_builddir)/util/symlinks
211*6a54128fSAndroid Build Coastguard WorkerDEP_INSTALL_SYMLINK = $(top_builddir)/util/install-symlink \
212*6a54128fSAndroid Build Coastguard Worker			$(top_builddir)/util/symlinks
213*6a54128fSAndroid Build Coastguard Worker
214*6a54128fSAndroid Build Coastguard Worker#
215*6a54128fSAndroid Build Coastguard Worker# Warning flags
216*6a54128fSAndroid Build Coastguard Worker#
217*6a54128fSAndroid Build Coastguard Worker# Run make gcc-wall to do a build with warning messages.
218*6a54128fSAndroid Build Coastguard Worker#
219*6a54128fSAndroid Build Coastguard Worker#
220*6a54128fSAndroid Build Coastguard WorkerWFLAGS=		-std=gnu99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE $(WFLAGS_EXTRA) \
221*6a54128fSAndroid Build Coastguard Worker			-Wall -W -Wwrite-strings -Wpointer-arith \
222*6a54128fSAndroid Build Coastguard Worker			-Wcast-qual -Wcast-align -Wno-variadic-macros \
223*6a54128fSAndroid Build Coastguard Worker			-Wstrict-prototypes -Wmissing-prototypes \
224*6a54128fSAndroid Build Coastguard Worker			-Wformat-security  -Wformat-nonliteral \
225*6a54128fSAndroid Build Coastguard Worker			-Wmissing-format-attribute -O2 -Wstrict-aliasing \
226*6a54128fSAndroid Build Coastguard Worker			-Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
227*6a54128fSAndroid Build Coastguard Worker			-UENABLE_NLS
228*6a54128fSAndroid Build Coastguard Worker
229*6a54128fSAndroid Build Coastguard Workergcc-wall-new:
230*6a54128fSAndroid Build Coastguard Worker	($(MAKE) CFLAGS_WARN="$(WFLAGS)" > /dev/null) 2>&1
231*6a54128fSAndroid Build Coastguard Worker
232*6a54128fSAndroid Build Coastguard Workergcc-wall:
233*6a54128fSAndroid Build Coastguard Worker	$(MAKE) clean > /dev/null
234*6a54128fSAndroid Build Coastguard Worker	$(MAKE) gcc-wall-new
235*6a54128fSAndroid Build Coastguard Worker
236*6a54128fSAndroid Build Coastguard Workerstatic-check:
237*6a54128fSAndroid Build Coastguard Worker	($(MAKE) C=1 V=1 CFLAGS="$(ALL_CFLAGS) $(WFLAGS)") 2>&1
238*6a54128fSAndroid Build Coastguard Worker
239*6a54128fSAndroid Build Coastguard Workerstatic-check-all:
240*6a54128fSAndroid Build Coastguard Worker	$(MAKE) clean > /dev/null
241*6a54128fSAndroid Build Coastguard Worker	$(MAKE) static-check
242*6a54128fSAndroid Build Coastguard Worker
243*6a54128fSAndroid Build Coastguard Worker#
244*6a54128fSAndroid Build Coastguard Worker# Installation user and groups
245*6a54128fSAndroid Build Coastguard Worker#
246*6a54128fSAndroid Build Coastguard WorkerBINGRP=		bin
247*6a54128fSAndroid Build Coastguard WorkerBINOWN=		bin
248*6a54128fSAndroid Build Coastguard WorkerBINMODE=	555
249*6a54128fSAndroid Build Coastguard WorkerINCGRP=		bin
250*6a54128fSAndroid Build Coastguard WorkerINCOWN=		bin
251*6a54128fSAndroid Build Coastguard WorkerINCMODE=	444
252*6a54128fSAndroid Build Coastguard WorkerLIBOWN=		bin
253*6a54128fSAndroid Build Coastguard WorkerLIBGRP=		bin
254*6a54128fSAndroid Build Coastguard WorkerLIBMODE=	444
255*6a54128fSAndroid Build Coastguard WorkerMANGRP=		bin
256*6a54128fSAndroid Build Coastguard WorkerMANOWN=		bin
257*6a54128fSAndroid Build Coastguard WorkerMANMODE=	444
258*6a54128fSAndroid Build Coastguard Worker
259*6a54128fSAndroid Build Coastguard Worker#
260*6a54128fSAndroid Build Coastguard Worker# Autoconf magic...
261*6a54128fSAndroid Build Coastguard Worker#
262*6a54128fSAndroid Build Coastguard Worker
263*6a54128fSAndroid Build Coastguard WorkerDEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \
264*6a54128fSAndroid Build Coastguard Worker	$(top_srcdir)/lib/Makefile.elf-lib  \
265*6a54128fSAndroid Build Coastguard Worker	$(top_srcdir)/lib/Makefile.bsd-lib \
266*6a54128fSAndroid Build Coastguard Worker	$(top_srcdir)/lib/Makefile.darwin-lib \
267*6a54128fSAndroid Build Coastguard Worker	$(top_srcdir)/lib/Makefile.solaris-lib \
268*6a54128fSAndroid Build Coastguard Worker	$(top_srcdir)/lib/Makefile.profile
269*6a54128fSAndroid Build Coastguard Worker
270*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/config.status: $(top_srcdir)/configure
271*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); ./config.status --recheck
272*6a54128fSAndroid Build Coastguard Worker
273*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
274*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
275*6a54128fSAndroid Build Coastguard Worker
276*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/lib/config.h: $(top_srcdir)/lib/config.h.in \
277*6a54128fSAndroid Build Coastguard Worker			      $(top_builddir)/config.status
278*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=lib/config.h ./config.status
279*6a54128fSAndroid Build Coastguard Worker
280*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/lib/dirpaths.h: $(DEP_SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in
281*6a54128fSAndroid Build Coastguard Worker	$(E) "	SUBST $@"
282*6a54128fSAndroid Build Coastguard Worker	$(Q) $(SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in $@
283*6a54128fSAndroid Build Coastguard Worker
284*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
285*6a54128fSAndroid Build Coastguard Worker		$(top_builddir)/config.status
286*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
287*6a54128fSAndroid Build Coastguard Worker
288*6a54128fSAndroid Build Coastguard Worker$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
289*6a54128fSAndroid Build Coastguard Worker		$(top_builddir)/config.status
290*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
291*6a54128fSAndroid Build Coastguard Worker
292*6a54128fSAndroid Build Coastguard WorkerMakefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
293*6a54128fSAndroid Build Coastguard Worker		$(DEP_MAKEFILE) $(top_builddir)/config.status
294*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
295*6a54128fSAndroid Build Coastguard Worker
296*6a54128fSAndroid Build Coastguard Worker@MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.ac
297*6a54128fSAndroid Build Coastguard Worker@MAINTAINER_CMT@	cd $(top_srcdir) && autoheader && autoconf
298*6a54128fSAndroid Build Coastguard Worker
299*6a54128fSAndroid Build Coastguard Workercoverage.txt: Makefile $(SRCS)
300*6a54128fSAndroid Build Coastguard Worker	if test -n "$(SRCS)"; then \
301*6a54128fSAndroid Build Coastguard Worker		gcov -s $(top_srcdir) -o . $(SRCS) > coverage.txt 2>&1 ; \
302*6a54128fSAndroid Build Coastguard Worker	fi
303*6a54128fSAndroid Build Coastguard Worker
304*6a54128fSAndroid Build Coastguard Workerclean::
305*6a54128fSAndroid Build Coastguard Worker	$(RM) -f *.gcda *.gcov *.gcno coverage.txt
306*6a54128fSAndroid Build Coastguard Worker
307*6a54128fSAndroid Build Coastguard Worker#
308*6a54128fSAndroid Build Coastguard Worker# Make depend magic...
309*6a54128fSAndroid Build Coastguard Worker#
310*6a54128fSAndroid Build Coastguard Worker
311*6a54128fSAndroid Build Coastguard Worker.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
312*6a54128fSAndroid Build Coastguard Worker	if test -n "$(SRCS)" ; then \
313*6a54128fSAndroid Build Coastguard Worker		$(CC) -M $(ALL_CFLAGS) $(DEPEND_CFLAGS) $(SRCS) | \
314*6a54128fSAndroid Build Coastguard Worker			$(SED) -f $(top_srcdir)/depfix.sed \
315*6a54128fSAndroid Build Coastguard Worker			    -e 's; $(srcdir)/; $$(srcdir)/;g' \
316*6a54128fSAndroid Build Coastguard Worker			    -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
317*6a54128fSAndroid Build Coastguard Worker			    -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
318*6a54128fSAndroid Build Coastguard Worker			    -e 's; \./; ;g' \
319*6a54128fSAndroid Build Coastguard Worker			    -e '/^#/d' \
320*6a54128fSAndroid Build Coastguard Worker			    -e '/^ *\\$$/d' | \
321*6a54128fSAndroid Build Coastguard Worker			$(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
322*6a54128fSAndroid Build Coastguard Worker	else :; fi
323*6a54128fSAndroid Build Coastguard Worker
324*6a54128fSAndroid Build Coastguard Workerdepend:: .depend
325*6a54128fSAndroid Build Coastguard Worker	if test -n "$(SRCS)" ; then \
326*6a54128fSAndroid Build Coastguard Worker		sed -e '/^# +++ Dependency line eater +++/,$$d' \
327*6a54128fSAndroid Build Coastguard Worker			< $(srcdir)/Makefile.in | cat - .depend \
328*6a54128fSAndroid Build Coastguard Worker			> $(srcdir)/Makefile.in.new; \
329*6a54128fSAndroid Build Coastguard Worker	if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
330*6a54128fSAndroid Build Coastguard Worker		$(RM) $(srcdir)/Makefile.in.new ; \
331*6a54128fSAndroid Build Coastguard Worker	else \
332*6a54128fSAndroid Build Coastguard Worker		$(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
333*6a54128fSAndroid Build Coastguard Worker		$(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
334*6a54128fSAndroid Build Coastguard Worker	fi ; else :; fi
335*6a54128fSAndroid Build Coastguard Worker
336*6a54128fSAndroid Build Coastguard Worker# End of file MCONFIG
337