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. 27 AR := $(CROSS_COMPILE)ar 28 CC := $(CROSS_COMPILE)cc 29 LEX := flex 30 RANLIB := $(CROSS_COMPILE)ranlib 31 STRIP := $(CROSS_COMPILE)strip 32 YACC := 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 48 prefix := /opt/ltp 49 50 datarootdir := ${prefix}/share 51 includedir := ${prefix}/include 52 exec_prefix := ${prefix} 53 bindir := ${exec_prefix}/bin 54 libdir := ${exec_prefix}/lib 55 mandir := ${datarootdir}/man 56 57 CPPFLAGS := 58 CFLAGS := -g -O2 59 LDLIBS := 60 LDFLAGS := 61 62 DEBUG_CFLAGS ?= -g 63 DEBUG_CXXFLAGS ?= $(DEBUG_CFLAGS) 64 65 # Please see README.mk-devel about -fstrict-aliasing. 66 OPT_CFLAGS ?= -O2 -fno-strict-aliasing -pipe 67 OPT_CXXFLAGS ?= $(OPT_CFLAGS) 68 69 WCFLAGS ?= -Wall 70 WCXXFLAGS ?= $(WCFLAGS) 71 72 LDFLAGS += $(WLDFLAGS) 73 CFLAGS += $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS) 74 CXXFLAGS += $(DEBUG_CXXFLAGS) $(OPT_CXXFLAGS) $(WCXXFLAGS) 75 76 LINUX_VERSION := 77 LINUX_DIR := 78 LINUX_VERSION_MAJOR := 79 LINUX_VERSION_PATCH := 80 WITH_MODULES := no 81 82 export datarootdir includedir libdir mandir prefix 83