source: trunk/kStuff/Config.kmk@ 3598

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

hacking darwin.

  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1# $Id: Config.kmk 3598 2007-10-04 18:46:12Z 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_CFLAGS.darwin = -g -fno-common
66TEMPLATE_kStuff_CFLAGS.freebsd = -g
67TEMPLATE_kStuff_CFLAGS.linux = -g
68TEMPLATE_kStuff_CFLAGS.os2 = -g
69TEMPLATE_kStuff_CFLAGS.win = -Zi -Zl -MD -W3 -GF -GR-
70ifneq ($(BUILD_TYPE),debug)
71TEMPLATE_kStuff_CFLAGS.freebsd += -O3
72TEMPLATE_kStuff_CFLAGS.linux += -O3
73TEMPLATE_kStuff_CFLAGS.os2 += -O3
74TEMPLATE_kStuff_CFLAGS.win += -O2xtg -Oi -Ob2
75else
76TEMPLATE_kStuff_CFLAGS.win += -Od
77endif
78
79TEMPLATE_kStuff_CXXFLAGS.darwin = -g -fno-common
80TEMPLATE_kStuff_CXXFLAGS.freebsd = -g
81TEMPLATE_kStuff_CXXFLAGS.linux = -g
82TEMPLATE_kStuff_CXXFLAGS.os2 = -g
83TEMPLATE_kStuff_CXXFLAGS.win = -Zi -Zl -MD -W3 -GF -GR-
84ifneq ($(BUILD_TYPE),debug)
85TEMPLATE_kStuff_CXXFLAGS.freebsd+= -O3
86TEMPLATE_kStuff_CXXFLAGS.linux += -O3
87TEMPLATE_kStuff_CXXFLAGS.os2 += -O3
88TEMPLATE_kStuff_CXXFLAGS.win += -O2xtg -Oi -Ob2
89else
90TEMPLATE_kStuff_CXXFLAGS.win += -Od
91endif
92
93TEMPLATE_kStuff_LDFLAGS.freebsd = -g
94TEMPLATE_kStuff_LDFLAGS.linux = -g
95TEMPLATE_kStuff_LDFLAGS.os2 = -g
96TEMPLATE_kStuff_LDFLAGS.win = /DEBUG /NODEFAULTLIB
97
98TEMPLATE_kStuff_LIBS.freebsd =
99TEMPLATE_kStuff_LIBS.linux =
100TEMPLATE_kStuff_LIBS.os2 =
101TEMPLATE_kStuff_LIBS.win = \
102 $(PATH_SDK_WINPSDK_LIB)/psapi.Lib
103TEMPLATE_kStuff_LIBS.win.x86 = \
104 $(PATH_TOOL_VCC70_LIB)/msvcrt.lib \
105 $(PATH_TOOL_VCC70_LIB)/msvcprt.lib \
106 $(PATH_TOOL_VCC70_LIB)/oldnames.lib \
107 $(PATH_SDK_W2K3DDKX86_LIB)/ntdll.lib
108TEMPLATE_kStuff_LIBS.win.amd64 = \
109 $(PATH_TOOL_VCC80AMD64_LIB)/msvcrt.lib \
110 $(PATH_TOOL_VCC80AMD64_LIB)/msvcprt.lib \
111 $(PATH_TOOL_VCC80AMD64_LIB)/oldnames.lib \
112 $(PATH_SDK_W2K3DDKAMD64_LIB)/ntdll.lib
113
114TEMPLATE_kStuffEXE = kStuff Executable Template
115TEMPLATE_kStuffEXE_EXTENDS = kStuff
116TEMPLATE_kStuffEXE_DEFS = $(TEMPLATE_kStuff) KS_EXE_TARGET
117
118TEMPLATE_kStuffLIB = kStuff Library Template
119TEMPLATE_kStuffLIB_EXTENDS = kStuff
120TEMPLATE_kStuffLIB_DEFS = $(TEMPLATE_kStuff) KS_LIB_TARGET
121
122TEMPLATE_kStuffDLL = kStuff DLL Template
123TEMPLATE_kStuffDLL_EXTENDS = kStuff
124TEMPLATE_kStuffDLL_DEFS = $(TEMPLATE_kStuff) KS_DLL_TARGET
125TEMPLATE_kStuffDLL_LDFLAGS.os2 = $(TEMPLATE_kStuff_LDFLAGS.os2) -Zdll
126
127
Note: See TracBrowser for help on using the repository browser.