VirtualBox

source: kBuild/trunk/src/kWorker/Makefile.kmk@ 2832

Last change on this file since 2832 was 2832, checked in by bird, 8 years ago

kWorker: Got cl.exe (2010) going. ~20 faster on a medium 220 lined C++ file.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Makefile.kmk 2832 2016-08-19 21:15:32Z bird $
2## @file
3# Sub-makefile for kWorker.
4#
5
6#
7# Copyright (c) 2016 knut st. osmundsen <[email protected]>
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 3 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, see <http://www.gnu.org/licenses/>
23#
24#
25
26## @todo fixme!!!
27KBUILD_WITH_STATIC_MSVCRT = 1
28
29SUB_DEPTH = ../..
30include $(PATH_KBUILD)/subheader.kmk
31
32
33PROGRAMS += kWorker
34kWorker_TEMPLATE = BIN
35kWorker_INCS = kStuff/include
36kWorker_DEFS.release = NASSERT
37kWorker_SOURCES = kWorker.c
38kWorker_LIBS = \
39 $(kStuff_1_TARGET) \
40 $(LIB_KDEP) \
41 $(LIB_KUTIL)
42include $(KBUILD_PATH)/sdks/WINDDK.kmk
43kWorker_LIBS.win = \
44 $(TEMPLATE_BIN_LIBS) \
45 $(PATH_SDK_WINDDK_LIB_WNET)/ntdll.lib
46kWorker_LDFLAGS.win = \
47 /BASE:0x10000 /DYNAMICBASE:NO /FIXED /SECTION:DefLdBuf,EWR
48
49
50#
51# kStuff library.
52#
53LIBRARIES += kStuff
54kStuff_TEMPLATE = LIB
55kStuff_INCS = kStuff/include
56
57# kLdr
58kStuff_SOURCES += \
59 kStuff/kLdr/kLdr.c \
60 kStuff/kLdr/kLdrDyld.c \
61 kStuff/kLdr/kLdrDyldFind.c \
62 kStuff/kLdr/kLdrDyldMod.c \
63 kStuff/kLdr/kLdrDyldOS.c \
64 kStuff/kLdr/kLdrDyLdSem.c \
65 kStuff/kLdr/kLdrMod.c \
66 kStuff/kLdr/kLdrModLX.c \
67 kStuff/kLdr/kLdrModMachO.c \
68 kStuff/kLdr/kLdrModNative.c \
69 kStuff/kLdr/kLdrModPE.c
70kLdr_SOURCES.os2 += \
71 kStuff/kLdr/kLdr-os2.c \
72 kStuff/kLdr/kLdrA-os2.asm
73kLdr_SOURCES.win += \
74 kStuff/kLdr/kLdr-win.c
75
76# kRdr
77kStuff_SOURCES += \
78 kStuff/kRdr/kRdr.cpp \
79 kStuff/kRdr/kRdrFile.cpp \
80 kStuff/kRdr/kRdrBuffered.cpp
81
82# kCpu
83kStuff_SOURCES += \
84 kStuff/kCpu/kCpuCompare.c \
85 kStuff/kCpu/kCpuGetArchAndCpu.c
86
87# kHlp (CRT)
88kStuff_SOURCES += \
89 kStuff/kHlp/Generic/kHlpMemPComp.c \
90 kStuff/kHlp/Generic/kHlpMemICompAscii.c \
91 kStuff/kHlp/Generic/kHlpStrPCat.c \
92 kStuff/kHlp/Generic/kHlpStrNPCat.c \
93 kStuff/kHlp/Generic/kHlpStrPComp.c \
94 kStuff/kHlp/Generic/kHlpStrNPComp.c \
95 kStuff/kHlp/Generic/kHlpStrICompAscii.c \
96 kStuff/kHlp/Generic/kHlpStrIPCompAscii.c \
97 kStuff/kHlp/Generic/kHlpStrNICompAscii.c \
98 kStuff/kHlp/Generic/kHlpStrNIPCompAscii.c \
99 kStuff/kHlp/Generic/kHlpStrPCopy.c \
100 kStuff/kHlp/Generic/kHlpStrNLen.c \
101 kStuff/kHlp/Generic/kHlpInt2Ascii.c \
102 \
103 kStuff/kHlp/Generic/kHlpGetEnvUZ.c \
104 \
105 kStuff/kHlp/Generic/kHlpGetExt.c \
106 kStuff/kHlp/Generic/kHlpGetFilename.c \
107 kStuff/kHlp/Generic/kHlpIsFilenameOnly.c \
108 \
109 kStuff/kHlp/Generic/kHlpPage.c \
110 \
111 kStuff/kHlp/CRT/kHlpCRTAlloc.cpp \
112 kStuff/kHlp/CRT/kHlpCRTEnv.cpp \
113 kStuff/kHlp/CRT/kHlpCRTString.cpp
114kStuff_SOURCES.darwin += \
115 kStuff/kHlp/Bare/kHlpSys-darwin.c
116
117
118
119include $(KBUILD_PATH)/subfooter.kmk
120
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette