xref: /aosp_15_r20/external/ltp/include/mk/config.mk.in (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#
2*49cdfc7eSAndroid Build Coastguard Worker#    config.mk.in.
3*49cdfc7eSAndroid Build Coastguard Worker#
4*49cdfc7eSAndroid Build Coastguard Worker#    Copyright (C) 2009, Cisco Systems Inc.
5*49cdfc7eSAndroid Build Coastguard Worker#
6*49cdfc7eSAndroid Build Coastguard Worker#    This program is free software; you can redistribute it and/or modify
7*49cdfc7eSAndroid Build Coastguard Worker#    it under the terms of the GNU General Public License as published by
8*49cdfc7eSAndroid Build Coastguard Worker#    the Free Software Foundation; either version 2 of the License, or
9*49cdfc7eSAndroid Build Coastguard Worker#    (at your option) any later version.
10*49cdfc7eSAndroid Build Coastguard Worker#
11*49cdfc7eSAndroid Build Coastguard Worker#    This program is distributed in the hope that it will be useful,
12*49cdfc7eSAndroid Build Coastguard Worker#    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*49cdfc7eSAndroid Build Coastguard Worker#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*49cdfc7eSAndroid Build Coastguard Worker#    GNU General Public License for more details.
15*49cdfc7eSAndroid Build Coastguard Worker#
16*49cdfc7eSAndroid Build Coastguard Worker#    You should have received a copy of the GNU General Public License along
17*49cdfc7eSAndroid Build Coastguard Worker#    with this program; if not, write to the Free Software Foundation, Inc.,
18*49cdfc7eSAndroid Build Coastguard Worker#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*49cdfc7eSAndroid Build Coastguard Worker#
20*49cdfc7eSAndroid Build Coastguard Worker# Ngie Cooper, July 2009
21*49cdfc7eSAndroid Build Coastguard Worker#
22*49cdfc7eSAndroid Build Coastguard Worker
23*49cdfc7eSAndroid Build Coastguard Worker# See this page for more info about LEX*:
24*49cdfc7eSAndroid Build Coastguard Worker# http://www.gnu.org/software/hello/manual/autoconf/Particular-Programs.html
25*49cdfc7eSAndroid Build Coastguard Worker
26*49cdfc7eSAndroid Build Coastguard Worker# Application specifying variables. You should never have to change these.
27*49cdfc7eSAndroid Build Coastguard WorkerAR			:= @AR@
28*49cdfc7eSAndroid Build Coastguard WorkerCC			:= @CC@
29*49cdfc7eSAndroid Build Coastguard WorkerLEX			:= @LEX@
30*49cdfc7eSAndroid Build Coastguard WorkerRANLIB			:= @RANLIB@
31*49cdfc7eSAndroid Build Coastguard WorkerSTRIP			:= @STRIP@
32*49cdfc7eSAndroid Build Coastguard WorkerYACC			:= @YACC@
33*49cdfc7eSAndroid Build Coastguard Worker
34*49cdfc7eSAndroid Build Coastguard WorkerHOSTCC  = @HOSTCC@
35*49cdfc7eSAndroid Build Coastguard Workerbuild := @build@
36*49cdfc7eSAndroid Build Coastguard Workerhost := @host@
37*49cdfc7eSAndroid Build Coastguard Workerifeq ($(strip $(HOSTCC)),)
38*49cdfc7eSAndroid Build Coastguard Worker# native build, respect CC
39*49cdfc7eSAndroid Build Coastguard Workerifeq ($(build),$(host))
40*49cdfc7eSAndroid Build Coastguard WorkerHOSTCC := $(CC)
41*49cdfc7eSAndroid Build Coastguard Workerelse
42*49cdfc7eSAndroid Build Coastguard Worker# cross compilation
43*49cdfc7eSAndroid Build Coastguard WorkerHOSTCC := cc
44*49cdfc7eSAndroid Build Coastguard Workerendif
45*49cdfc7eSAndroid Build Coastguard Workerendif
46*49cdfc7eSAndroid Build Coastguard Worker
47*49cdfc7eSAndroid Build Coastguard WorkerAIO_LIBS		:= @AIO_LIBS@
48*49cdfc7eSAndroid Build Coastguard WorkerCAP_LIBS		:= @CAP_LIBS@
49*49cdfc7eSAndroid Build Coastguard WorkerACL_LIBS		:= @ACL_LIBS@
50*49cdfc7eSAndroid Build Coastguard WorkerCRYPTO_LIBS		:= @CRYPTO_LIBS@
51*49cdfc7eSAndroid Build Coastguard WorkerLEXLIB			:= @LEXLIB@
52*49cdfc7eSAndroid Build Coastguard WorkerNUMA_LIBS		:= @NUMA_LIBS@
53*49cdfc7eSAndroid Build Coastguard WorkerSELINUX_LIBS		:= @SELINUX_LIBS@
54*49cdfc7eSAndroid Build Coastguard WorkerHAVE_RPC		:= @HAVE_RPC@
55*49cdfc7eSAndroid Build Coastguard WorkerLIBTIRPC_CFLAGS		:= @LIBTIRPC_CFLAGS@
56*49cdfc7eSAndroid Build Coastguard WorkerLIBTIRPC_LIBS		:= @LIBTIRPC_LIBS@
57*49cdfc7eSAndroid Build Coastguard WorkerKEYUTILS_LIBS		:= @KEYUTILS_LIBS@
58*49cdfc7eSAndroid Build Coastguard WorkerHAVE_FTS_H		:= @HAVE_FTS_H@
59*49cdfc7eSAndroid Build Coastguard WorkerLIBMNL_LIBS		:= @LIBMNL_LIBS@
60*49cdfc7eSAndroid Build Coastguard WorkerLIBMNL_CFLAGS		:= @LIBMNL_CFLAGS@
61*49cdfc7eSAndroid Build Coastguard Worker
62*49cdfc7eSAndroid Build Coastguard Workerprefix			:= @prefix@
63*49cdfc7eSAndroid Build Coastguard Worker
64*49cdfc7eSAndroid Build Coastguard Workerdatarootdir		:= @datarootdir@
65*49cdfc7eSAndroid Build Coastguard Workerincludedir		:= @includedir@
66*49cdfc7eSAndroid Build Coastguard Workerexec_prefix		:= @exec_prefix@
67*49cdfc7eSAndroid Build Coastguard Workerbindir			:= @bindir@
68*49cdfc7eSAndroid Build Coastguard Workerlibdir			:= @libdir@
69*49cdfc7eSAndroid Build Coastguard Workermandir			:= @mandir@
70*49cdfc7eSAndroid Build Coastguard Worker
71*49cdfc7eSAndroid Build Coastguard WorkerCPPFLAGS		:= @CPPFLAGS@
72*49cdfc7eSAndroid Build Coastguard WorkerCFLAGS			:= @CFLAGS@
73*49cdfc7eSAndroid Build Coastguard WorkerLDLIBS			:= @LIBS@
74*49cdfc7eSAndroid Build Coastguard WorkerLDFLAGS			:= @LDFLAGS@
75*49cdfc7eSAndroid Build Coastguard Worker
76*49cdfc7eSAndroid Build Coastguard WorkerDEBUG_CFLAGS		?= -g
77*49cdfc7eSAndroid Build Coastguard Worker
78*49cdfc7eSAndroid Build Coastguard Worker# for -fstrict-aliasing see doc/Build-System.asciidoc
79*49cdfc7eSAndroid Build Coastguard WorkerOPT_CFLAGS		?= -O2 -fno-strict-aliasing -pipe
80*49cdfc7eSAndroid Build Coastguard Worker
81*49cdfc7eSAndroid Build Coastguard WorkerWCFLAGS			?= -Wall -W @GCC_WARN_OLDSTYLE@
82*49cdfc7eSAndroid Build Coastguard Worker
83*49cdfc7eSAndroid Build Coastguard WorkerSTDCFLAGS		?= -std=gnu99
84*49cdfc7eSAndroid Build Coastguard Worker
85*49cdfc7eSAndroid Build Coastguard WorkerLDFLAGS			+= $(WLDFLAGS)
86*49cdfc7eSAndroid Build Coastguard WorkerCFLAGS			+= $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS) $(STDCFLAGS)
87*49cdfc7eSAndroid Build Coastguard Worker
88*49cdfc7eSAndroid Build Coastguard WorkerLTP_CFLAGS_NOPIE	:= @LTP_CFLAGS_NOPIE@
89*49cdfc7eSAndroid Build Coastguard WorkerLTP_CFLAGS_FFIXED_EBP	:= @LTP_CFLAGS_FFIXED_EBP@
90*49cdfc7eSAndroid Build Coastguard Worker
91*49cdfc7eSAndroid Build Coastguard Workerifeq ($(strip $(HOST_CFLAGS)),)
92*49cdfc7eSAndroid Build Coastguard WorkerHOST_CFLAGS := $(CFLAGS)
93*49cdfc7eSAndroid Build Coastguard Workerendif
94*49cdfc7eSAndroid Build Coastguard Worker
95*49cdfc7eSAndroid Build Coastguard Workerifeq ($(strip $(HOST_LDFLAGS)),)
96*49cdfc7eSAndroid Build Coastguard WorkerHOST_LDFLAGS := $(LDFLAGS)
97*49cdfc7eSAndroid Build Coastguard Workerendif
98*49cdfc7eSAndroid Build Coastguard Worker
99*49cdfc7eSAndroid Build Coastguard WorkerLINUX_VERSION		:= @LINUX_VERSION@
100*49cdfc7eSAndroid Build Coastguard WorkerLINUX_DIR		:= @LINUX_DIR@
101*49cdfc7eSAndroid Build Coastguard WorkerLINUX_VERSION_MAJOR	:= @LINUX_VERSION_MAJOR@
102*49cdfc7eSAndroid Build Coastguard WorkerLINUX_VERSION_PATCH	:= @LINUX_VERSION_PATCH@
103*49cdfc7eSAndroid Build Coastguard WorkerWITH_MODULES		:= @WITH_MODULES@
104*49cdfc7eSAndroid Build Coastguard Worker
105*49cdfc7eSAndroid Build Coastguard WorkerHOST_CPU		:= @HOST_CPU@
106*49cdfc7eSAndroid Build Coastguard Worker
107*49cdfc7eSAndroid Build Coastguard Workerifeq ($(strip $(prefix)),)
108*49cdfc7eSAndroid Build Coastguard Worker$(error you are using $$(prefix) incorrectly -- set it to $(abs_top_srcdir) if you want to build in the source tree)
109*49cdfc7eSAndroid Build Coastguard Workerendif
110*49cdfc7eSAndroid Build Coastguard Worker
111*49cdfc7eSAndroid Build Coastguard Workerexport datarootdir includedir libdir mandir prefix
112