source: trunk/kLdr/Makefile.kmk@ 2944

Last change on this file since 2944 was 2944, checked in by bird, 19 years ago

split up kLdrHlp.c and kLdr.c to make it more flexible (like using the module interpreters without the dynamic loader bit and similar).

  • Property svn:keywords set to Id
File size: 4.6 KB
RevLine 
[2826]1# $Id: Makefile.kmk 2944 2007-01-13 15:55:40Z bird $# $Id: Makefile.kmk 2944 2007-01-13 15:55:40Z bird $
[2821]2## @file
3#
4# kBuild Makefile for the kLdr.
5#
6# Copyright (c) 2006 knut st. osmundsen <[email protected]>
7#
8#
9# This file is part of kLdr.
10#
11# kLdr 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# kLdr 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 kLdr; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27
[2859]28DEPTH = ..
29include $(PATH_KBUILD)/header.kmk
30
31DEFAULT_PASSES := $(filter-out PACKING, $(DEFAULT_PASSES)) # annoying on windows.
32
[2821]33#
[2825]34# Template for testcases.
35#
36TEMPLATE_TST = Testcase template
37ifneq ($(filter win nt win32 win64,$(BUILD_TARGET)),)
38 TEMPLATE_TST_TOOL = VCC70
39 TEMPLATE_TST_CFLAGS = -W3 -Zi -Zl -MD
40 TEMPLATE_TST_CFLAGS.release = -O2
41 TEMPLATE_TST_ASFLAGS = -f win
42 TEMPLATE_TST_DEFS = __WIN__
[2944]43 TEMPLATE_SDKS.x86 = WIN32SDK W2K3DDKX86
44 TEMPLATE_SDKS.amd64 = WIN64SDK W2K3DDKAMD64
[2825]45
[2944]46## @todo this is a kBuild bug? $$(PATH_TOOL_VCC70_LIB)
[2825]47 TEMPLATE_TST_LIBS = \
48 $$(PATH_TOOL_VCC70_LIB)/msvcrt.lib
49else
50 ifneq ($(filter os2,$(BUILD_TARGET)),)
51 TEMPLATE_TST_TOOL = GCC3OMF
52 TEMPLATE_TST_ASFLAGS = -f obj
53 TEMPLATE_TST_LIBS = os2 gcc end
54 else
55 TEMPLATE_TST_TOOL = GCC3
56 TEMPLATE_TST_ASFLAGS = -f elf
57 TEMPLATE_TST_LIBS = gcc
58 endif
[2899]59 TEMPLATE_TST_CFLAGS = -Wall -pedantic -g -std=gnu99
[2825]60 TEMPLATE_TST_CFLAGS.release = -O2
61 TEMPLATE_TST_LDFLAGS =
62endif
63TEMPLATE_TST_INCS = .
64
65
66#
67# The kLdr DLL.
68#
[2821]69DLLS = kLdr
70kLdr_ASTOOL = NASM
[2825]71ifneq ($(filter win nt win32 win64,$(BUILD_TARGET)),)
72 kLdr_TOOL = GCC3
73 kLdr_TOOL = VCC70
[2858]74 kLdr_CFLAGS = -W3 -Zl -ML
[2825]75 kLdr_ASFLAGS = -f win
[2858]76 kLdr_LDFLAGS = -Entry:DllMain@12 -Debug
[2825]77 kLdr_DEFS = __WIN__
[2944]78 kLdr_SDKS.x86 = LIBSDL WIN32SDK W2K3DDKX86
79 kLdr_SDKS.amd64 = WIN64SDK W2K3DDKAMD64
[2858]80 kLdr_LIBS = \
[2944]