• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_LIBS		:= -lnuma
43#SELINUX_LIBS		:= -lselinux
44#TIRPC_CPPFLAGS		:= -I/usr/include/tirpc
45#TIRPC_LIBS		:= -ltirpc
46
47prefix			:= /opt/ltp
48
49datarootdir		:= ${prefix}/share
50includedir		:= ${prefix}/include
51exec_prefix		:= ${prefix}
52bindir			:= ${exec_prefix}/bin
53libdir			:= ${exec_prefix}/lib
54mandir			:= ${datarootdir}/man
55
56CPPFLAGS		:=
57CFLAGS			:= -g -O2
58LDLIBS			:=
59LDFLAGS			:=
60
61DEBUG_CFLAGS		?= -g
62DEBUG_CXXFLAGS		?= $(DEBUG_CFLAGS)
63
64# Please see README.mk-devel about -fstrict-aliasing.
65OPT_CFLAGS		?= -O2 -fno-strict-aliasing -pipe
66OPT_CXXFLAGS		?= $(OPT_CFLAGS)
67
68WCFLAGS			?= -Wall
69WCXXFLAGS		?= $(WCFLAGS)
70
71LDFLAGS			+= $(WLDFLAGS)
72CFLAGS			+= $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS)
73CXXFLAGS		+= $(DEBUG_CXXFLAGS) $(OPT_CXXFLAGS) $(WCXXFLAGS)
74
75LINUX_VERSION		:=
76LINUX_DIR		:=
77LINUX_VERSION_MAJOR	:=
78LINUX_VERSION_PATCH	:=
79WITH_MODULES		:= no
80
81export datarootdir includedir libdir mandir prefix
82