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