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

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

kWorker: More hacking.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 2833 2016-08-22 21:00:38Z 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## @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.debug = K_STRICT
37kWorker_DEFS.release = NASSERT
38kWorker_SOURCES = kWorker.c
39kWorker_LIBS = \
40 $(kStuff_1_TARGET) \
41 $(LIB_KDEP) \
42 $(LIB_KUTIL)
43include $(KBUILD_PATH)/sdks/WINDDK.kmk
44kWorker_LIBS.win = \
45 $(TEMPLATE_BIN_LIBS) \
46 $(PATH_SDK_WINDDK_LIB_WNET)/ntdll.lib
47kWorker_LDFLAGS.win = \
48 /BASE:0x10000 /DYNAMICBASE:NO /FIXED /SECTION:DefLdBuf,EWR
49
50
51#
52# kStuff library.
53#
54LIBRARIES += kStuff
55kStuff_TEMPLATE = LIB
56kStuff_DEFS.debug = K_STRICT
57kStuff_INCS = kStuff/include
58
59# kLdr
60kStuff_SOURCES += \
61 kStuff/kLdr/kLdr.c \
62 kStuff/kLdr/kLdrDyld.c \
63 kStuff/kLdr/kLdrDyldFind.c \
64 kStuff/kLdr/kLdrDyldMod.c \
65 kStuff/kLdr/kLdrDyldOS.c \
66 kStuff/kLdr/kLdrDyLdSem.c \
67 kStuff/kLdr/kLdrMod.c \
68 kStuff/kLdr/kLdrModLX.c \
69 kStuff/kLdr/kLdrModMachO.c \
70 kStuff/kLdr/kLdrModNative.c \
71 kStuff/kLdr/kLdrModPE.c
72kLdr_SOURCES.os2 += \
73 kStuff/kLdr/kLdr-os2.c \
74 kStuff/kLdr/kLdrA-os2.asm
75kLdr_SOURCES.win += \
76 kStuff/kLdr/kLdr-win.c
77
78# kRdr
79kStuff_SOURCES += \
80 kStuff/kRdr/kRdr.cpp \
81 kStuff/kRdr/kRdrFile.cpp \
82 kStuff/kRdr/kRdrBuffered.cpp
83
84# kCpu
85kStuff_SOURCES += \
86 kStuff/kCpu/kCpuCompare.c \
87 kStuff/kCpu/kCpuGetArchAndCpu.c
88
89# kHlp (CRT)
90kStuff_SOURCES += \
91 kStuff/kHlp/Generic/kHlpMemPComp.c \
92 kStuff/kHlp/Generic/kHlpMemICompAscii.c \
93 kStuff/kHlp/Generic/kHlpStrPCat.c \
94 kStuff/kHlp/Generic/kHlpStrNPCat.c \
95 kStuff/kHlp/Generic/kHlpStrPComp.c \
96 kStuff/kHlp/Generic/kHlpStrNPComp.c \
97 kStuff/kHlp/Generic/kHlpStrICompAscii.c \
98 kStuff/kHlp/Generic/kHlpStrIPCompAscii.c \
99 kStuff/kHlp/Generic/kHlpStrNICompAscii.c \
100 kStuff/kHlp/Generic/kHlpStrNIPCompAscii.c \
101 kStuff/kHlp/Generic/kHlpStrPCopy.c \
102 kStuff/kHlp/Generic/kHlpStrNLen.c \
103 kStuff/kHlp/Generic/kHlpInt2Ascii.c \
104 \
105 kStuff/kHlp/Generic/kHlpGetEnvUZ.c \
106 \
107 kStuff/kHlp/Generic/kHlpGetExt.c \
108 kStuff/kHlp/Generic/kHlpGetFilename.c \
109 kStuff/kHlp/Generic/kHlpIsFilenameOnly.c \
110 \
111 kStuff/kHlp/Generic/kHlpPage.c \
112 \
113 kStuff/kHlp/CRT/kHlpCRTAlloc.cpp \
114 kStuff/kHlp/CRT/kHlpCRTEnv.cpp \
115 kStuff/kHlp/CRT/kHlpCRTString.cpp
116kStuff_SOURCES.darwin += \
117 kStuff/kHlp/Bare/kHlpSys-darwin.c
118
119
120
121include $(KBUILD_PATH)/subfooter.kmk
122
Note: See TracBrowser for help on using the repository browser.