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			:= $(CROSS_COMPILE)ar
28CC			:= $(CROSS_COMPILE)cc
29LEX			:= flex
30RANLIB			:= $(CROSS_COMPILE)ranlib
31STRIP			:= $(CROSS_COMPILE)strip
32YACC			:= bison -y
33
34#JAR			:= jar
35#JAVAC			:= javac
36
37#AIO_LIBS		:= -laio
38#CAP_LIBS		:= -lcap
39#ACL_LIBS		:= -lacl
40#CRYPTO_LIBS		:= -lcrypto
41#LEXLIB			:= -lfl
42#NUMA_CPPFLAGS		:= -DNUMA_VERSION1_COMPATIBILITY
43#NUMA_LIBS		:= -lnuma
44#SELINUX_LIBS		:= -lselinux
45#TIRPC_CPPFLAGS		:= -I/usr/include/tirpc
46#TIRPC_LIBS		:= -ltirpc
47
48prefix			:= /opt/ltp
49
50datarootdir		:= ${prefix}/share
51includedir		:= ${prefix}/include
52exec_prefix		:= ${prefix}
53bindir			:= ${exec_prefix}/bin
54libdir			:= ${exec_prefix}/lib
55mandir			:= ${datarootdir}/man
56
57CPPFLAGS		:=
58CFLAGS			:= -g -O2
59LDLIBS			:=
60LDFLAGS			:=
61
62DEBUG_CFLAGS		?= -g
63DEBUG_CXXFLAGS		?= $(DEBUG_CFLAGS)
64
65# Please see README.mk-devel about -fstrict-aliasing.
66OPT_CFLAGS		?= -O2 -fno-strict-aliasing -pipe
67OPT_CXXFLAGS		?= $(OPT_CFLAGS)
68
69WCFLAGS			?= -Wall
70WCXXFLAGS		?= $(WCFLAGS)
71
72LDFLAGS			+= $(WLDFLAGS)
73CFLAGS			+= $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS)
74CXXFLAGS		+= $(DEBUG_CXXFLAGS) $(OPT_CXXFLAGS) $(WCXXFLAGS)
75
76LINUX_VERSION		:=
77LINUX_DIR		:=
78LINUX_VERSION_MAJOR	:=
79LINUX_VERSION_PATCH	:=
80WITH_MODULES		:= no
81
82export datarootdir includedir libdir mandir prefix
83