1 | # $Id: Config.kmk 270 2005-05-06 03:48:56Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # Build Configuration.
|
---|
5 | #
|
---|
6 | # Copyright (c) 2005 knut st. osmundsen <[email protected]>
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This file is part of kBuild.
|
---|
10 | #
|
---|
11 | # kBuild 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 | # kBuild 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 kBuild; 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 | #
|
---|
29 | # Template for building commandline tools.
|
---|
30 | #
|
---|
31 | TEMPLATE_BIN = Commandline binary
|
---|
32 |
|
---|
33 | ifeq ($(BUILD_TARGET),os2)
|
---|
34 | TEMPLATE_BIN_TOOL = GCC3OMF
|
---|
35 | TEMPLATE_BIN_CFLAGS.release = -O3
|
---|
36 | TEMPLATE_BIN_LDFLAGS = -Zhigh-mem -Zstack=1024
|
---|
37 | TEMPLATE_BIN_INST = kBuild/bin/x86.os2/
|
---|
38 | endif
|
---|
39 |
|
---|
40 | ifeq ($(BUILD_TARGET),win32)
|
---|
41 | TEMPLATE_BIN_TOOL = VCC70
|
---|
42 | TEMPLATE_BIN_DEFS = WINDOWS32 _CONSOLE WIN32
|
---|
43 | TEMPLATE_BIN_DEFS.release = NDEBUG
|
---|
44 | TEMPLATE_BIN_CFLAGS = -MT -W3
|
---|
45 | TEMPLATE_BIN_INCS = \
|
---|
46 | . \
|
---|
47 | $(PATH_ROOT)/src/gmake/w32/include \
|
---|
48 | $(PATH_ROOT)/src/gmake/glob \
|
---|
49 | $(PATH_DEV)/x86.win32/vcc70/include \
|
---|
50 | $(PATH_DEV)/x86.win32/sdk200209/include
|
---|
51 | TEMPLATE_BIN_LDFLAGS = /SUBSYSTEM:console /INCREMENTAL:no /NOD
|
---|
52 | TEMPLATE_BIN_LIBS = \
|
---|
53 | $(PATH_DEV)/x86.win32/vcc70/lib/libcmt.lib \
|
---|
54 | $(PATH_DEV)/x86.win32/vcc70/lib/oldnames.lib \
|
---|
55 | $(PATH_DEV)/x86.win32/sdk200209/lib/Kernel32.Lib \
|
---|
56 | $(PATH_DEV)/x86.win32/sdk200209/lib/User32.Lib \
|
---|
57 | $(PATH_DEV)/x86.win32/sdk200209/lib/AdvAPI32.Lib
|
---|
58 | TEMPLATE_BIN_INST = kBuild/bin/x86.win32/
|
---|
59 | endif
|
---|
60 |
|
---|
61 | ifndef TEMPLATE_BIN_TOOL
|
---|
62 | TEMPLATE_BIN_TOOL = GCC3
|
---|
63 | TEMPLATE_BIN_CFLAGS.release = -O3
|
---|
64 | TEMPLATE_BIN_LDFLAGS = /SUBSYSTEM:console /INCREMENTAL:no /NOD
|
---|
65 | ifeq ($(BUILD_TARGET),linux)
|
---|
66 | TEMPLATE_BIN_LIBS = rt
|
---|
67 | endif
|
---|
68 | TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/
|
---|
69 | endif
|
---|
70 |
|
---|
71 |
|
---|