VirtualBox

source: kBuild/trunk/Config.kmk@ 556

Last change on this file since 556 was 552, checked in by bird, 18 years ago
  • kBuild/footer.kmk:

o Recursive template inheritance.

  • kBuild/header.kmk, kBuild/footer.kmk:

o Removed some checks for features which are present in both gmake 3.81 and kmk.

Anyone trying to bootstrap kBuild will have to build gmake 3.81 first.

  • Config.kmk, src/gmake:

o Allow all kinds of ways of saying Windows in BUILD_TARGET.

  • kBuild/bin/x86.win32/:

o Rebuilt kmk.exe.

  • kBuild/bin/x86.os2/:

o Added kDepPre.exe and kDepIDB.exe.
o Rebuilt kmk.exe and kmk_gmake.exe.

  • src/gmake:

o Update KMK_FEATURES to include the optimizations from earlier this week.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Config.kmk 552 2006-09-24 07:37:41Z 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# Enable automatic installation of what's built.
28KBUILD_DO_AUTO_INSTALL := 1
29
30#
31# Template for building commandline tools.
32#
33TEMPLATE_BIN = Commandline binary
34
35TEMPLATE_BIN_INCS = $(PATH_ROOT)/src/lib
36
37ifeq ($(BUILD_TARGET),os2)
38TEMPLATE_BIN_TOOL = GCC3OMF
39TEMPLATE_BIN_CFLAGS.profile = -pg
40TEMPLATE_BIN_CFLAGS.release = -O3
41TEMPLATE_BIN_LDFLAGS = -Zhigh-mem -Zstack=1024
42TEMPLATE_BIN_INST = kBuild/bin/x86.os2/
43endif
44
45ifeq ($(filter-out x86.win32 x86.win x86.nt,$(BUILD_TARGET_ARCH).$(BUILD_TARGET)),)
46ifndef PATH_DEV
47$(error To build on windows you'll have to set PATH_DEV to point to somewhere kbuild can find VCC70.)
48endif
49TEMPLATE_BIN_TOOL = VCC70
50TEMPLATE_BIN_DEFS = WINDOWS32 _CONSOLE WIN32 __WIN32__
51TEMPLATE_BIN_DEFS.release = NDEBUG
52TEMPLATE_BIN_CFLAGS = -MT -W3 -Zi -Zl
53TEMPLATE_BIN_CFLAGS.release = -O2
54TEMPLATE_BIN_CFLAGS.profile = -O2 -GH -Gh
55#todo use path macros from the tool
56TEMPLATE_BIN_INCS += \
57 . \
58 $(PATH_ROOT)/src/gmake/w32/include \
59 $(PATH_ROOT)/src/gmake/glob \
60 $(PATH_DEV)/x86.win32/vcc70/include \
61 $(PATH_DEV)/x86.win32/sdk200209/include
62TEMPLATE_BIN_LDFLAGS = /SUBSYSTEM:console /INCREMENTAL:no /NOD
63TEMPLATE_BIN_LDFLAGS.profile = /DEBUG
64TEMPLATE_BIN_LIBS = \
65 $(PATH_DEV)/x86.win32/vcc70/lib/libcmt.lib \
66 $(PATH_DEV)/x86.win32/vcc70/lib/oldnames.lib \
67 $(PATH_DEV)/x86.win32/sdk200209/lib/Kernel32.Lib \
68 $(PATH_DEV)/x86.win32/sdk200209/lib/User32.Lib \
69 $(PATH_DEV)/x86.win32/sdk200209/lib/AdvAPI32.Lib
70TEMPLATE_BIN_LIBS.profile = g:/coding/vbox/trunk/out/win32/debug/lib/kPrf2.lib
71TEMPLATE_BIN_INST = kBuild/bin/x86.win32/
72endif
73
74ifndef TEMPLATE_BIN_TOOL
75TEMPLATE_BIN_TOOL = GCC3
76TEMPLATE_BIN_CFLAGS.release = -O3
77TEMPLATE_BIN_LDFLAGS = -static
78ifeq ($(BUILD_TARGET),linux)
79TEMPLATE_BIN_LIBS += rt
80endif
81ifeq ($(BUILD_TARGET),freebsd)
82TEMPLATE_BIN_LIBS += iconv intl
83TEMPLATE_BIN_LIBPATH += /usr/local/lib
84TEMPLATE_BIN_INCS += $(PATH_ROOT)/src/gmake/glob /usr/local/include
85endif
86TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/
87endif
88
89
90
91#
92# Template for building libraries for the tools.
93#
94TEMPLATE_LIB = Library for Commandline binary
95
96TEMPLATE_LIB_TOOL = $(TEMPLATE_BIN_TOOL)
97TEMPLATE_LIB_INST = lib/
98TEMPLATE_LIB_INCS = $(TEMPLATE_BIN_INCS)
99TEMPLATE_LIB_INCS.$(BUILD_TYPE) = $(TEMPLATE_BIN_INCS.$(BUILD_TYPE))
100TEMPLATE_LIB_DEFS = $(TEMPLATE_BIN_DEFS)
101TEMPLATE_LIB_DEFS.$(BUILD_TYPE) = $(TEMPLATE_BIN_DEFS.$(BUILD_TYPE))
102TEMPLATE_LIB_CFLAGS = $(TEMPLATE_BIN_CFLAGS)
103TEMPLATE_LIB_CFLAGS.$(BUILD_TYPE) = $(TEMPLATE_BIN_CFLAGS.$(BUILD_TYPE))
104TEMPLATE_LIB_CXXFLAGS = $(TEMPLATE_BIN_CXXFLAGS)
105TEMPLATE_LIB_CXXFLAGS.$(BUILD_TYPE) = $(TEMPLATE_BIN_CXXFLAGS.$(BUILD_TYPE))
106
107LIB_KDEP = $(PATH_OUT)/$(TEMPLATE_LIB_INST)$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBPREF)kDep$$(TOOL_$(TEMPLATE_LIB_TOOL)_ARLIBSUFF)
108
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