VirtualBox

source: kStuff/trunk/Config.kmk

Last change on this file was 29, checked in by bird, 15 years ago

Finally got around execute the switch to the MIT license.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 4.8 KB
Line 
1# $Id: Config.kmk 29 2009-07-01 20:30:29Z bird $
2## @file
3# kBuild configuration for kStuff
4#
5
6#
7# Copyright (c) 2006-2007 Knut St. Osmundsen <bird-kStuff-spamix@anduin.net>
8#
9# Permission is hereby granted, free of charge, to any person
10# obtaining a copy of this software and associated documentation
11# files (the "Software"), to deal in the Software without
12# restriction, including without limitation the rights to use,
13# copy, modify, merge, publish, distribute, sublicense, and/or sell
14# copies of the Software, and to permit persons to whom the
15# Software is furnished to do so, subject to the following
16# conditions:
17#
18# The above copyright notice and this permission notice shall be
19# included in all copies or substantial portions of the Software.
20#
21# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28# OTHER DEALINGS IN THE SOFTWARE.
29#
30
31#
32# This is where we install during the build.
33#
34PATH_INS := $(PATH_OUT)/kStuff
35
36
37#
38# Templates for the kStuff.
39#
40TEMPLATE_kStuff = kStuff Template
41TEMPLATE_kStuff_TOOL = GXX3
42TEMPLATE_kStuff_TOOL.darwin = GXX4MACHO
43TEMPLATE_kStuff_TOOL.os2 = GXX3OMF
44TEMPLATE_kStuff_TOOL.solaris = GXX3PLAIN
45TEMPLATE_kStuff_TOOL.win.x86 = VCC70
46TEMPLATE_kStuff_TOOL.win.amd64 = VCC80AMD64
47
48TEMPLATE_kStuff_SDKS.win.x86 = WINPSDK W2K3DDKX86
49TEMPLATE_kStuff_SDKS.win.amd64 = WINPSDK W2K3DDKAMD64
50
51TEMPLATE_kStuff_DEFS.freebsd = KS_OS_FREEBSD
52TEMPLATE_kStuff_DEFS.darwin = KS_OS_DARWIN
53TEMPLATE_kStuff_DEFS.linux = KS_OS_LINUX
54TEMPLATE_kStuff_DEFS.netbsd = KS_OS_NETBSD
55TEMPLATE_kStuff_DEFS.openbsd = KS_OS_OPENBSD
56TEMPLATE_kStuff_DEFS.os2 = KS_OS_OS2
57TEMPLATE_kStuff_DEFS.solaris = KS_OS_SOLARIS
58TEMPLATE_kStuff_DEFS.win = KS_OS_WINDOWS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_WARNINGS
59
60TEMPLATE_kStuff_DEFS.x86 = KS_BITS=32
61TEMPLATE_kStuff_DEFS.amd64 = KS_BITS=64
62
63TEMPLATE_kStuff_INCS = $(PATH_ROOT)/include
64
65TEMPLATE_kStuff_ASTOOL = YASM
66TEMPLATE_kStuff_ASTOOL.os2 = NASM
67TEMPLATE_kStuff_ASFLAGS.freebsd = -f elf
68TEMPLATE_kStuff_ASFLAGS.linux = -f elf
69TEMPLATE_kStuff_ASFLAGS.os2 = -f omf
70TEMPLATE_kStuff_ASFLAGS.win.x86 = -f win32 -g cv8
71TEMPLATE_kStuff_ASFLAGS.win.amd64= -f win64 -g cv8
72
73TEMPLATE_kStuff_CFLAGS.darwin = -g -fno-common
74TEMPLATE_kStuff_CFLAGS.freebsd = -g
75TEMPLATE_kStuff_CFLAGS.linux = -g
76TEMPLATE_kStuff_CFLAGS.os2 = -g
77TEMPLATE_kStuff_CFLAGS.win = -Zi -Zl -W3 -GF -GR-
78TEMPLATE_kStuff_CFLAGS.win.x86 = -MD
79TEMPLATE_kStuff_CFLAGS.win.amd64 = -MT
80ifneq ($(BUILD_TYPE),debug)
81TEMPLATE_kStuff_CFLAGS.freebsd += -O3
82TEMPLATE_kStuff_CFLAGS.linux += -O3
83TEMPLATE_kStuff_CFLAGS.os2 += -O3
84TEMPLATE_kStuff_CFLAGS.win += -O2b2
85else
86TEMPLATE_kStuff_CFLAGS.win += -Od
87endif
88
89TEMPLATE_kStuff_CXXFLAGS.darwin = -g -fno-exceptions -fno-common
90TEMPLATE_kStuff_CXXFLAGS.freebsd = -g -fno-exceptions
91TEMPLATE_kStuff_CXXFLAGS.linux = -g -fno-exceptions
92TEMPLATE_kStuff_CXXFLAGS.os2 = -g -fno-exceptions
93TEMPLATE_kStuff_CXXFLAGS.win = -Zi -Zl -W3 -GF -GR-
94TEMPLATE_kStuff_CXXFLAGS.win.x86 = -MD
95TEMPLATE_kStuff_CXXFLAGS.win.amd64 = -MT
96ifneq ($(BUILD_TYPE),debug)
97TEMPLATE_kStuff_CXXFLAGS.freebsd+= -O3
98TEMPLATE_kStuff_CXXFLAGS.linux += -O3
99TEMPLATE_kStuff_CXXFLAGS.os2 += -O3
100TEMPLATE_kStuff_CXXFLAGS.win += -O2b2
101else
102TEMPLATE_kStuff_CXXFLAGS.win += -Od
103endif
104
105TEMPLATE_kStuff_LDFLAGS.freebsd = -g
106TEMPLATE_kStuff_LDFLAGS.linux = -g
107TEMPLATE_kStuff_LDFLAGS.os2 = -g
108TEMPLATE_kStuff_LDFLAGS.win = /DEBUG /NODEFAULTLIB
109
110TEMPLATE_kStuff_LIBS.freebsd =
111TEMPLATE_kStuff_LIBS.linux =
112TEMPLATE_kStuff_LIBS.os2 =
113TEMPLATE_kStuff_LIBS.win = \
114 $(PATH_SDK_WINPSDK_LIB)/psapi.Lib
115TEMPLATE_kStuff_LIBS.win.x86 = \
116 $(PATH_TOOL_VCC70_LIB)/msvcrt.lib \
117 $(PATH_TOOL_VCC70_LIB)/msvcprt.lib \
118 $(PATH_TOOL_VCC70_LIB)/oldnames.lib \
119 $(PATH_SDK_W2K3DDKX86_LIB)/ntdll.lib
120TEMPLATE_kStuff_LIBS.win.amd64 = \
121 $(PATH_TOOL_VCC80AMD64_LIB)/libcmt.lib \
122 $(PATH_TOOL_VCC80AMD64_LIB)/oldnames.lib \
123 $(PATH_SDK_W2K3DDKAMD64_LIB)/ntdll.lib
124
125TEMPLATE_kStuffEXE = kStuff Executable Template
126TEMPLATE_kStuffEXE_EXTENDS = kStuff
127TEMPLATE_kStuffEXE_DEFS = $(TEMPLATE_kStuff) KS_EXE_TARGET
128
129TEMPLATE_kStuffLIB = kStuff Library Template
130TEMPLATE_kStuffLIB_EXTENDS = kStuff
131TEMPLATE_kStuffLIB_DEFS = $(TEMPLATE_kStuff) KS_LIB_TARGET
132
133TEMPLATE_kStuffDLL = kStuff DLL Template
134TEMPLATE_kStuffDLL_EXTENDS = kStuff
135TEMPLATE_kStuffDLL_DEFS = $(TEMPLATE_kStuff) KS_DLL_TARGET
136TEMPLATE_kStuffDLL_LDFLAGS.os2 = $(TEMPLATE_kStuff_LDFLAGS.os2) -Zdll
137
138
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