source: trunk/kStuff/Config.kmk@ 3596

Last change on this file since 3596 was 3596, checked in by bird, 18 years ago

Darwin and solaris config.

  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Config.kmk 3596 2007-10-03 20:58:05Z bird $
2## @file
3#
4# kBuild configuration for kStuff
5#
6# Copyright (c) 2006-2007 knut st. osmundsen <bird@anduin.net>
7#
8#
9# This file is part of k*.
10#
11# k* 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# k* 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 k*; 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# This is where we install during the build.
29#
30PATH_INS := $(PATH_OUT)/kStuff
31
32
33#
34# Templates for the kStuff.
35#
36TEMPLATE_kStuff = kStuff Template
37TEMPLATE_kStuff_TOOL = GCC3
38TEMPLATE_kStuff_TOOL.darwin = GCC4MACHO
39TEMPLATE_kStuff_TOOL.os2 = GCC3OMF
40TEMPLATE_kStuff_TOOL.solaris = GCC3PLAIN
41TEMPLATE_kStuff_TOOL.win.x86 = VCC70
42TEMPLATE_kStuff_TOOL.win.amd64 = VCC80AMD64
43
44TEMPLATE_kStuff_SDKS.win.x86 = WINPSDK W2K3DDKX86
45TEMPLATE_kStuff_SDKS.win.amd64 = WINPSDK W2K3DDKAMD64
46
47TEMPLATE_kStuff_DEFS.freebsd = KS_OS_FREEBSD
48TEMPLATE_kStuff_DEFS.linux = KS_OS_LINUX
49TEMPLATE_kStuff_DEFS.os2 = KS_OS_OS2
50TEMPLATE_kStuff_DEFS.win = KS_OS_WINDOWS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_WARNINGS
51
52TEMPLATE_kStuff_DEFS.x86 = KS_BITS=32
53TEMPLATE_kStuff_DEFS.amd64 = KS_BITS=64
54
55TEMPLATE_kStuff_INCS = $(PATH_ROOT)/kStuff/include
56
57TEMPLATE_kStuff_ASTOOL = YASM
58TEMPLATE_kStuff_ASTOOL.os2 = NASM
59TEMPLATE_kStuff_ASFLAGS.freebsd = -f elf
60TEMPLATE_kStuff_ASFLAGS.linux = -f elf
61TEMPLATE_kStuff_ASFLAGS.os2 = -f omf
62TEMPLATE_kStuff_ASFLAGS.win.x86 = -f win32 -g cv8
63TEMPLATE_kStuff_ASFLAGS.win.amd64= -f win64 -g cv8
64
65TEMPLATE_kStuff_CXXFLAGS.freebsd = -g
66TEMPLATE_kStuff_CXXFLAGS.linux = -g
67TEMPLATE_kStuff_CXXFLAGS.os2 = -g
68TEMPLATE_kStuff_CXXFLAGS.win = -Zi -Zl -MD -W3 -GF -GR-
69ifneq ($(BUILD_TYPE),debug)
70TEMPLATE_kStuff_CXXFLAGS.freebsd+= -O3
71TEMPLATE_kStuff_CXXFLAGS.linux += -O3
72TEMPLATE_kStuff_CXXFLAGS.os2 += -O3
73TEMPLATE_kStuff_CXXFLAGS.win += -O2xtg -Oi -Ob2
74else
75TEMPLATE_kStuff_CXXFLAGS.win += -Od
76endif
77
78TEMPLATE_kStuff_LDFLAGS.freebsd = -g
79TEMPLATE_kStuff_LDFLAGS.linux = -g
80TEMPLATE_kStuff_LDFLAGS.os2 = -g
81TEMPLATE_kStuff_LDFLAGS.win = /DEBUG /NODEFAULTLIB
82
83TEMPLATE_kStuff_LIBS.freebsd =
84TEMPLATE_kStuff_LIBS.linux =
85TEMPLATE_kStuff_LIBS.os2 =
86TEMPLATE_kStuff_LIBS.win = \
87 $(PATH_SDK_WINPSDK_LIB)/psapi.Lib
88TEMPLATE_kStuff_LIBS.win.x86 = \
89 $(PATH_TOOL_VCC70_LIB)/msvcrt.lib \
90 $(PATH_TOOL_VCC70_LIB)/msvcprt.lib \
91 $(PATH_TOOL_VCC70_LIB)/oldnames.lib \
92 $(PATH_SDK_W2K3DDKX86_LIB)/ntdll.lib
93TEMPLATE_kStuff_LIBS.win.amd64 = \
94 $(PATH_TOOL_VCC80AMD64_LIB)/msvcrt.lib \
95 $(PATH_TOOL_VCC80AMD64_LIB)/msvcprt.lib \
96 $(PATH_TOOL_VCC80AMD64_LIB)/oldnames.lib \
97 $(PATH_SDK_W2K3DDKAMD64_LIB)/ntdll.lib
98
99TEMPLATE_kStuffEXE = kStuff Executable Template
100TEMPLATE_kStuffEXE_EXTENDS = kStuff
101TEMPLATE_kStuffEXE_DEFS = $(TEMPLATE_kStuff) KS_EXE_TARGET
102
103TEMPLATE_kStuffLIB = kStuff Library Template
104TEMPLATE_kStuffLIB_EXTENDS = kStuff
105TEMPLATE_kStuffLIB_DEFS = $(TEMPLATE_kStuff) KS_LIB_TARGET
106
107TEMPLATE_kStuffDLL = kStuff DLL Template
108TEMPLATE_kStuffDLL_EXTENDS = kStuff
109TEMPLATE_kStuffDLL_DEFS = $(TEMPLATE_kStuff) KS_DLL_TARGET
110TEMPLATE_kStuffDLL_LDFLAGS.os2 = $(TEMPLATE_kStuff_LDFLAGS.os2) -Zdll
111
112
Note: See TracBrowser for help on using the repository browser.