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