VirtualBox

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

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

kSubmit/kWorker: updates

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