VirtualBox

source: kBuild/trunk/Config.kmk@ 401

Last change on this file since 401 was 401, checked in by bird, 19 years ago

static linking on linux.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1# $Id: Config.kmk 401 2006-01-14 23:38:45Z bird $
2## @file
3#
4# Build Configuration.
5#
6# Copyright (c) 2005 knut st. osmundsen <[email protected]>
7#
8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27
28#
29# Template for building commandline tools.
30#
31TEMPLATE_BIN = Commandline binary
32
33TEMPLATE_BIN_INCS = $(PATH_ROOT)/src/lib
34
35ifeq ($(BUILD_TARGET),os2)
36TEMPLATE_BIN_TOOL = GCC3OMF
37TEMPLATE_BIN_CFLAGS.release = -O3
38TEMPLATE_BIN_LDFLAGS = -Zhigh-mem -Zstack=1024
39TEMPLATE_BIN_INST = kBuild/bin/x86.os2/
40endif
41
42ifeq ($(BUILD_TARGET),win32)
43TEMPLATE_BIN_TOOL = VCC70
44TEMPLATE_BIN_DEFS = WINDOWS32 _CONSOLE WIN32 __WIN32__
45TEMPLATE_BIN_DEFS.release = NDEBUG
46TEMPLATE_BIN_CFLAGS = -MT -W3
47TEMPLATE_BIN_INCS += \
48 . \
49 $(PATH_ROOT)/src/gmake/w32/include \
50 $(PATH_ROOT)/src/gmake/glob \
51 $(PATH_DEV)/x86.win32/vcc70/include \
52 $(PATH_DEV)/x86.win32/sdk200209/include
53TEMPLATE_BIN_LDFLAGS = /SUBSYSTEM:console /INCREMENTAL:no /NOD
54TEMPLATE_BIN_LIBS = \
55 $(PATH_DEV)/x86.win32/vcc70/lib/libcmt.lib \
56 $(PATH_DEV)/x86.win32/vcc70/lib/oldnames.lib \
57 $(PATH_DEV)/x86.win32/sdk200209/lib/Kernel32.Lib \
58 $(PATH_DEV)/x86.win32/sdk200209/lib/User32.Lib \
59 $(PATH_DEV)/x86.win32/sdk200209/lib/AdvAPI32.Lib
60TEMPLATE_BIN_INST = kBuild/bin/x86.win32/
61endif
62
63ifndef TEMPLATE_BIN_TOOL
64TEMPLATE_BIN_TOOL = GCC3
65TEMPLATE_BIN_CFLAGS.release = -O3
66TEMPLATE_BIN_LDFLAGS = -static
67ifeq ($(BUILD_TARGET),linux)
68TEMPLATE_BIN_LIBS += rt
69endif
70ifeq ($(BUILD_TARGET),freebsd)
71TEMPLATE_BIN_LIBS += iconv intl
72TEMPLATE_BIN_LIBPATH += /usr/local/lib
73TEMPLATE_BIN_INCS += $(PATH_ROOT)/src/gmake/glob /usr/local/include
74endif
75TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/
76endif
77
78
79
80#
81# Template for building libraries for the tools.
82#
83TEMPLATE_LIB = Library for Commandline binary
84
85TEMPLATE_LIB_TOOL = $(TEMPLATE_BIN_TOOL)
86TEMPLATE_LIB_INST = lib/
87TEMPLATE_LIB_INCS = $(TEMPLATE_BIN_INCS)
88TEMPLATE_LIB_INCS.$(BUILD_TYPE) = $(TEMPLATE_BIN_INCS.$(BUILD_TYPE))
89TEMPLATE_LIB_DEFS = $(TEMPLATE_BIN_DEFS)
90TEMPLATE_LIB_DEFS.$(BUILD_TYPE) = $(TEMPLATE_BIN_DEFS.$(BUILD_TYPE))
91TEMPLATE_LIB_CFLAGS = $(TEMPLATE_BIN_CFLAGS)
92TEMPLATE_LIB_CFLAGS.$(BUILD_TYPE) = $(TEMPLATE_BIN_CFLAGS.$(BUILD_TYPE))
93TEMPLATE_LIB_CXXFLAGS = $(TEMPLATE_BIN_CXXFLAGS)
94TEMPLATE_LIB_CXXFLAGS.$(BUILD_TYPE) = $(TEMPLATE_BIN_CXXFLAGS.$(BUILD_TYPE))
95
96LIB_KDEP = $(PATH_OUT)/$(TEMPLATE_LIB_INST)$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBPREF)kDep$$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBSUFF)
97
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette