• 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			:= @AR@
28CC			:= @CC@
29LEX			:= @LEX@
30RANLIB			:= @RANLIB@
31STRIP			:= @STRIP@
32YACC			:= @YACC@
33
34# XXX: I'm lazy... but if someone has a working javac, they should have a
35# working jar on their systems.
36JAR			:= jar
37JAVAC			:= @JAVAC@
38
39AIO_LIBS		:= @AIO_LIBS@
40CAP_LIBS		:= @CAP_LIBS@
41ACL_LIBS		:= @ACL_LIBS@
42CRYPTO_LIBS		:= @CRYPTO_LIBS@
43LEXLIB			:= @LEXLIB@
44NUMA_CPPFLAGS		:= @NUMA_CPPFLAGS@
45NUMA_LIBS		:= @NUMA_LIBS@
46SELINUX_LIBS		:= @SELINUX_LIBS@
47TIRPC_CPPFLAGS		:= @TIRPC_CPPFLAGS@
48TIRPC_LIBS		:= @TIRPC_LIBS@
49KEYUTILS_LIBS		:= @KEYUTILS_LIBS@
50
51prefix			:= @prefix@
52
53datarootdir		:= @datarootdir@
54includedir		:= @includedir@
55exec_prefix		:= @exec_prefix@
56bindir			:= @bindir@
57libdir			:= @libdir@
58mandir			:= @mandir@
59
60CPPFLAGS		:= @CPPFLAGS@
61CFLAGS			:= @CFLAGS@
62LDLIBS			:= @LIBS@
63LDFLAGS			:= @LDFLAGS@
64
65DEBUG_CFLAGS		?= -g
66DEBUG_CXXFLAGS		?= $(DEBUG_CFLAGS)
67
68# Please see README.mk-devel about -fstrict-aliasing.
69OPT_CFLAGS		?= -O2 -fno-strict-aliasing -pipe
70OPT_CXXFLAGS		?= $(OPT_CFLAGS)
71
72WCFLAGS			?= -Wall -W @GCC_WARN_OLDSTYLE@
73WCXXFLAGS		?= $(WCFLAGS)
74
75LDFLAGS			+= $(WLDFLAGS)
76CFLAGS			+= $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS)
77CXXFLAGS		+= $(DEBUG_CXXFLAGS) $(OPT_CXXFLAGS) $(WCXXFLAGS)
78
79LINUX_VERSION		:= @LINUX_VERSION@
80LINUX_DIR		:= @LINUX_DIR@
81LINUX_VERSION_MAJOR	:= @LINUX_VERSION_MAJOR@
82LINUX_VERSION_PATCH	:= @LINUX_VERSION_PATCH@
83WITH_MODULES		:= @WITH_MODULES@
84
85ifeq ($(strip $(prefix)),)
86$(error you are using $$(prefix) incorrectly -- set it to $(abs_top_srcdir) if you want to build in the source tree)
87endif
88
89export datarootdir includedir libdir mandir prefix
90