source: trunk/kStuff/Config.kmk@ 3537

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

Moved k* into kStuff.

  • Property svn:keywords set to Id
File size: 3.2 KB
RevLine 
[3108]1# $Id: Config.kmk 3537 2007-08-23 00:39:06Z bird $
[2667]2## @file
3#
[3537]4# kBuild configuration for kStuff
[2667]5#
[3537]6# Copyright (c) 2006-2007 knut st. osmundsen <bird@anduin.net>
[2667]7#
8#
[3537]9# This file is part of k*.
[2667]10#
[3537]11# k* is free software; you can redistribute it and/or modify
[2667]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#
[3537]16# k* is distributed in the hope that it will be useful,
[2667]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
[3537]22# along with k*; if not, write to the Free Software
[2667]23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
[2470]26
[2667]27#
28# This is where we install during the build.
29#
[3537]30PATH_INS := $(PATH_OUT)/kStuff
[2470]31
32
[2480]33#
[3537]34# Templates for the kStuff.
[2480]35#
[3537]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
[2470]41
[3537]42TEMPLATE_kStuff_SDKS.win = WINPSDK
[2473]43
[3537]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
[2470]48
[3537]49TEMPLATE_kStuff_DEFS.x86 = KS_BITS=32
50TEMPLATE_kStuff_DEFS.amd64 = KS_BITS=64
[2472]51
[3537]52TEMPLATE_kStuff_ASTOOL = YASM
53TEMPLATE_kStuff_ASTOOL.os2 = NASM
54TEMPLATE_kStuff_ASFLAGS.freebsd = -f elf
55TEMPLATE_kStuff_ASFLAGS.linux = -f elf
56TEMPLATE_kStuff_ASFLAGS.os2 = -f omf
57TEMPLATE_kStuff_ASFLAGS.win.x86 = -f win32 -g cv8
58TEMPLATE_kStuff_ASFLAGS.win.amd64= -f win64 -g cv8
[2678]59
[3537]60TEMPLATE_kStuff_CXXFLAGS.freebsd = -g
61TEMPLATE_kStuff_CXXFLAGS.linux = -g
62TEMPLATE_kStuff_CXXFLAGS.os2 = -g
63TEMPLATE_kStuff_CXXFLAGS.win = -Zi -Zl -MD -W3 -GF -GR-
64ifneq ($(BUILD_TYPE),debug)
65TEMPLATE_kStuff_CXXFLAGS.freebsd+= -O3
66TEMPLATE_kStuff_CXXFLAGS.linux += -O3
67TEMPLATE_kStuff_CXXFLAGS.os2 += -O3
68TEMPLATE_kStuff_CXXFLAGS.win += -O2xtg -Oi -Ob2
69endif
[2550]70
[3537]71TEMPLATE_kStuff_LDFLAGS.freebsd = -g
72TEMPLATE_kStuff_LDFLAGS.linux = -g
73TEMPLATE_kStuff_LDFLAGS.os2 = -g
74TEMPLATE_kStuff_LDFLAGS.win = /DEBUG
[2550]75
[3537]76TEMPLATE_kStuff_LIBS.freebsd =
77TEMPLATE_kStuff_LIBS.linux =
78TEMPLATE_kStuff_LIBS.os2 =
79TEMPLATE_kStuff_LIBS.win = \
80 $(PATH_SDK_WINPSDK_LIB)/psapi.Lib
81TEMPLATE_kStuff_LIBS.win.x86 = \
82 $(PATH_TOOL_VCC70_LIB)/msvcrt.lib \
83 $(PATH_TOOL_VCC70_LIB)/msvcprt.lib \
84 $(PATH_TOOL_VCC70_LIB)/oldnames.lib
[2550]85
[3537]86TEMPLATE_kStuffEXE = kStuff Executable Template
87TEMPLATE_kStuffEXE_EXTENDS = kStuff
88TEMPLATE_kStuffEXE_DEFS = $(TEMPLATE_kStuff) KS_EXE_TARGET
[2550]89
[3537]90TEMPLATE_kStuffLIB = kStuff Library Template
91TEMPLATE_kStuffLIB_EXTENDS = kStuff
92TEMPLATE_kStuffLIB_DEFS = $(TEMPLATE_kStuff) KS_LIB_TARGET
[2550]93
[3537]94TEMPLATE_kStuffDLL = kStuff DLL Template
95TEMPLATE_kStuffDLL_EXTENDS = kStuff
96TEMPLATE_kStuffDLL_DEFS = $(TEMPLATE_kStuff) KS_DLL_TARGET
97TEMPLATE_kStuffDLL_LDFLAGS.os2 = $(TEMPLATE_kStuff_LDFLAGS.os2) -Zdll
[2472]98
[2473]99
Note: See TracBrowser for help on using the repository browser.