source: trunk/src/kWorker/Makefile.kmk@ 2878

Last change on this file since 2878 was 2878, checked in by bird, 9 years ago

restart when we've leaked a lot of memory (this won't ever be perfect).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Makefile.kmk 2878 2016-09-05 19:54:49Z bird $
2## @file
3# Sub-makefile for kWorker.
4#
5
6#
7# Copyright (c) 2016 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
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 \
43 $(PATH_SDK_WINDDK71_LIB_WNET)/psapi.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 \
67 nt/kFsCache.c \
68 quote_argv.c
69kbuild_version.c_DEFS = KBUILD_SVN_REV=$(KBUILD_SVN_REV)
70
71#
72# kStuff library.
73#
74LIBRARIES += kStuff
75kStuff_TEMPLATE = LIB-STATIC-THREADED
76kStuff_DEFS.debug = K_STRICT
77kStuff_INCS = kStuff/include
78kStuff_DEFPATH = $(PATH_ROOT)/src/lib
79
80# kLdr
81kStuff_SOURCES += \
82 kStuff/kLdr/kLdr.c \
83 kStuff/kLdr/kLdrDyld.c \
84 kStuff/kLdr/kLdrDyldFind.c \
85 kStuff/kLdr/kLdrDyldMod.c \
86 kStuff/kLdr/kLdrDyldOS.c \
87 kStuff/kLdr/kLdrDyLdSem.c \
88 kStuff/kLdr/kLdrMod.c \
89 kStuff/kLdr/kLdrModLX.c \
90 kStuff/kLdr/kLdrModMachO.c \
91 kStuff/kLdr/kLdrModNative.c \
92 kStuff/kLdr/kLdrModPE.c
93kLdr_SOURCES.os2 += \
94 kStuff/kLdr/kLdr-os2.c \
95 kStuff/kLdr/kLdrA-os2.asm
96kLdr_SOURCES.win += \
97 kStuff/kLdr/kLdr-win.c
98
99# kRdr
100kStuff_SOURCES += \
101 kStuff/kRdr/kRdr.cpp \
102 kStuff/kRdr/kRdrFile.cpp \
103 kStuff/kRdr/kRdrBuffered.cpp
104
105# kCpu
106kStuff_SOURCES += \
107 kStuff/kCpu/kCpuCompare.c \
108 kStuff/kCpu/kCpuGetArchAndCpu.c
109
110# kHlp (CRT)
111kStuff_SOURCES += \
112 kStuff/kHlp/Generic/kHlpMemPComp.c \
113 kStuff/kHlp/Generic/kHlpMemICompAscii.c \
114 kStuff/kHlp/Generic/kHlpStrPCat.c \
115 kStuff/kHlp/Generic/kHlpStrNPCat.c \
116 kStuff/kHlp/Generic/kHlpStrPComp.c \
117 kStuff/kHlp/Generic/kHlpStrNPComp.c \
118 kStuff/kHlp/Generic/kHlpStrICompAscii.c \
119 kStuff/kHlp/Generic/kHlpStrIPCompAscii.c \
120 kStuff/kHlp/Generic/kHlpStrNICompAscii.c \
121 kStuff/kHlp/Generic/kHlpStrNIPCompAscii.c \
122 kStuff/kHlp/Generic/kHlpStrPCopy.c \
123 kStuff/kHlp/Generic/kHlpStrNLen.c \
124 kStuff/kHlp/Generic/kHlpInt2Ascii.c \
125 \
126 kStuff/kHlp/Generic/kHlpGetEnvUZ.c \
127 \
128 kStuff/kHlp/Generic/kHlpGetExt.c \
129 kStuff/kHlp/Generic/kHlpGetFilename.c \
130 kStuff/kHlp/Generic/kHlpIsFilenameOnly.c \
131 \
132 kStuff/kHlp/Generic/kHlpPage.c \
133 \
134 kStuff/kHlp/CRT/kHlpCRTAlloc.cpp \
135 kStuff/kHlp/CRT/kHlpCRTEnv.cpp \
136 kStuff/kHlp/CRT/kHlpCRTString.cpp
137kStuff_SOURCES.darwin += \
138 kStuff/kHlp/Bare/kHlpSys-darwin.c
139
140
141
142include $(KBUILD_PATH)/subfooter.kmk
143
Note: See TracBrowser for help on using the repository browser.