VirtualBox

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

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

kWorker: cmdline quoting fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Makefile.kmk 2860 2016-09-01 16:55:07Z 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
27SUB_DEPTH = ../..
28include $(PATH_KBUILD)/subheader.kmk
29
30
31PROGRAMS += kWorker
32kWorker_TEMPLATE = BIN-STATIC-THREADED
33kWorker_DEFS.debug = K_STRICT
34kWorker_DEFS.release = NASSERT
35kWorker_SOURCES = kWorker.c
36kWorker_LIBS = \
37 $(kStuff_1_TARGET) \
38 $(kWorkerLib_1_TARGET)
39include $(KBUILD_PATH)/sdks/WINDDK71.kmk
40kWorker_LIBS.win = \
41 $(TEMPLATE_BIN-STATIC-THREADED_LIBS) \
42 $(PATH_SDK_WINDDK71_LIB_WNET)/ntdll.lib
43kWorker_LDFLAGS.win = \
44 /BASE:0x10000 /DYNAMICBASE:NO /FIXED /SECTION:DefLdBuf,EWR
45
46
47#
48# Stuff from ../libs. Need to rebuilt it with static CRT.
49#
50LIBRARIES += kWorkerLib
51kWorkerLib_TEMPLATE = LIB-STATIC-THREADED
52kWorkerLib_DEFPATH = ../lib # Need fix from r2837.
53kWorkerLib_DEFPATH := $(PATH_SUB_CURRENT)/../lib
54kWorkerLib_SOURCES = \
55 crc32.c \
56 md5.c \
57 kbuild_version.c
58kWorkerLib_SOURCES.win = \
59 nt_fullpath.c \
60 quoted_spawn.c \
61 nt/nthlpcore.c \
62 nt/nthlpfs.c \
63 nt/ntdir.c \
64 nt/ntstat.c \
65 nt/ntunlink.c \
66 nt/kFsCache.c \
67 quote_argv.c
68kbuild_version.c_DEFS = KBUILD_SVN_REV=$(KBUILD_SVN_REV)
69
70#
71# kStuff library.
72#
73LIBRARIES += kStuff
74kStuff_TEMPLATE = LIB-STATIC-THREADED
75kStuff_DEFS.debug = K_STRICT
76kStuff_INCS = kStuff/include
77kStuff_DEFPATH = $(PATH_ROOT)/src/lib
78
79# kLdr
80kStuff_SOURCES += \
81 kStuff/kLdr/kLdr.c \
82 kStuff/kLdr/kLdrDyld.c \
83 kStuff/kLdr/kLdrDyldFind.c \
84 kStuff/kLdr/kLdrDyldMod.c \
85 kStuff/kLdr/kLdrDyldOS.c \
86 kStuff/kLdr/kLdrDyLdSem.c \
87 kStuff/kLdr/kLdrMod.c \
88 kStuff/kLdr/kLdrModLX.c \
89 kStuff/kLdr/kLdrModMachO.c \
90 kStuff/kLdr/kLdrModNative.c \
91 kStuff/kLdr/kLdrModPE.c
92kLdr_SOURCES.os2 += \
93 kStuff/kLdr/kLdr-os2.c \
94 kStuff/kLdr/kLdrA-os2.asm
95kLdr_SOURCES.win += \
96 kStuff/kLdr/kLdr-win.c
97
98# kRdr
99kStuff_SOURCES += \
100 kStuff/kRdr/kRdr.cpp \
101 kStuff/kRdr/kRdrFile.cpp \
102 kStuff/kRdr/kRdrBuffered.cpp
103
104# kCpu
105kStuff_SOURCES += \
106 kStuff/kCpu/kCpuCompare.c \
107 kStuff/kCpu/kCpuGetArchAndCpu.c
108
109# kHlp (CRT)
110kStuff_SOURCES += \
111 kStuff/kHlp/Generic/kHlpMemPComp.c \
112 kStuff/kHlp/Generic/kHlpMemICompAscii.c \
113 kStuff/kHlp/Generic/kHlpStrPCat.c \
114 kStuff/kHlp/Generic/kHlpStrNPCat.c \
115 kStuff/kHlp/Generic/kHlpStrPComp.c \
116 kStuff/kHlp/Generic/kHlpStrNPComp.c \
117 kStuff/kHlp/Generic/kHlpStrICompAscii.c \
118 kStuff/kHlp/Generic/kHlpStrIPCompAscii.c \
119 kStuff/kHlp/Generic/kHlpStrNICompAscii.c \
120 kStuff/kHlp/Generic/kHlpStrNIPCompAscii.c \
121 kStuff/kHlp/Generic/kHlpStrPCopy.c \
122 kStuff/kHlp/Generic/kHlpStrNLen.c \
123 kStuff/kHlp/Generic/kHlpInt2Ascii.c \
124 \
125 kStuff/kHlp/Generic/kHlpGetEnvUZ.c \
126 \
127 kStuff/kHlp/Generic/kHlpGetExt.c \
128 kStuff/kHlp/Generic/kHlpGetFilename.c \
129 kStuff/kHlp/Generic/kHlpIsFilenameOnly.c \
130 \
131 kStuff/kHlp/Generic/kHlpPage.c \
132 \
133 kStuff/kHlp/CRT/kHlpCRTAlloc.cpp \
134 kStuff/kHlp/CRT/kHlpCRTEnv.cpp \
135 kStuff/kHlp/CRT/kHlpCRTString.cpp
136kStuff_SOURCES.darwin += \
137 kStuff/kHlp/Bare/kHlpSys-darwin.c
138
139
140
141include $(KBUILD_PATH)/subfooter.kmk
142
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