source: trunk/kStuff/Config.kmk@ 3538

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

Some shared types, constants and macros.

  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Config.kmk 3538 2007-08-23 02:57:15Z 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.os2 = GCC3OMF
39TEMPLATE_kStuff_TOOL.win.x86 = VCC70
40TEMPLATE_kStuff_TOOL.win.amd64 = VCC80AMD64
41
42TEMPLATE_kStuff_SDKS.win = WINPSDK
43
44TEMPLATE_kStuff_DEFS.freebsd = KS_OS_FREEBSD
45TEMPLATE_kStuff_DEFS.linux = KS_OS_LINUX
46TEMPLATE_kStuff_DEFS.os2 = KS_OS_OS2
47TEMPLATE_kStuff_DEFS.win = KS_OS_WINDOWS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_WARNINGS
48
49TEMPLATE_kStuff_DEFS.x86 = KS_BITS=32
50TEMPLATE_kStuff_DEFS.amd64 = KS_BITS=64
51
52TEMPLATE_kStuff_INCS = $(PATH_ROOT)/kStuff/include
53
54TEMPLATE_kStuff_ASTOOL = YASM
55TEMPLATE_kStuff_ASTOOL.os2 = NASM
56TEMPLATE_kStuff_ASFLAGS.freebsd = -f elf
57TEMPLATE_kStuff_ASFLAGS.linux = -f elf
58TEMPLATE_kStuff_ASFLAGS.os2 = -f omf
59TEMPLATE_kStuff_ASFLAGS.win.x86 = -f win32 -g cv8
60TEMPLATE_kStuff_ASFLAGS.win.amd64= -f win64 -g cv8
61
62TEMPLATE_kStuff_CXXFLAGS.freebsd = -g
63TEMPLATE_kStuff_CXXFLAGS.linux = -g
64TEMPLATE_kStuff_CXXFLAGS.os2 = -g
65TEMPLATE_kStuff_CXXFLAGS.win = -Zi -Zl -MD -W3 -GF -GR-
66ifneq ($(BUILD_TYPE),debug)
67TEMPLATE_kStuff_CXXFLAGS.freebsd+= -O3
68TEMPLATE_kStuff_CXXFLAGS.linux += -O3
69TEMPLATE_kStuff_CXXFLAGS.os2 += -O3
70TEMPLATE_kStuff_CXXFLAGS.win += -O2xtg -Oi -Ob2
71endif
72
73TEMPLATE_kStuff_LDFLAGS.freebsd = -g
74TEMPLATE_kStuff_LDFLAGS.linux = -g
75TEMPLATE_kStuff_LDFLAGS.os2 = -g
76TEMPLATE_kStuff_LDFLAGS.win = /DEBUG
77
78TEMPLATE_kStuff_LIBS.freebsd =
79TEMPLATE_kStuff_LIBS.linux =
80TEMPLATE_kStuff_LIBS.os2 =
81TEMPLATE_kStuff_LIBS.win = \
82 $(PATH_SDK_WINPSDK_LIB)/psapi.Lib
83TEMPLATE_kStuff_LIBS.win.x86 = \
84 $(PATH_TOOL_VCC70_LIB)/msvcrt.lib \
85 $(PATH_TOOL_VCC70_LIB)/msvcprt.lib \
86 $(PATH_TOOL_VCC70_LIB)/oldnames.lib
87
88TEMPLATE_kStuffEXE = kStuff Executable Template
89TEMPLATE_kStuffEXE_EXTENDS = kStuff
90TEMPLATE_kStuffEXE_DEFS = $(TEMPLATE_kStuff) KS_EXE_TARGET
91
92TEMPLATE_kStuffLIB = kStuff Library Template
93TEMPLATE_kStuffLIB_EXTENDS = kStuff
94TEMPLATE_kStuffLIB_DEFS = $(TEMPLATE_kStuff) KS_LIB_TARGET
95
96TEMPLATE_kStuffDLL = kStuff DLL Template
97TEMPLATE_kStuffDLL_EXTENDS = kStuff
98TEMPLATE_kStuffDLL_DEFS = $(TEMPLATE_kStuff) KS_DLL_TARGET
99TEMPLATE_kStuffDLL_LDFLAGS.os2 = $(TEMPLATE_kStuff_LDFLAGS.os2) -Zdll
100
101
Note: See TracBrowser for help on using the repository browser.