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!!!
|
---|
27 | KBUILD_WITH_STATIC_MSVCRT = 1
|
---|
28 |
|
---|
29 | SUB_DEPTH = ../..
|
---|
30 | include $(PATH_KBUILD)/subheader.kmk
|
---|
31 |
|
---|
32 |
|
---|
33 | PROGRAMS += kWorker
|
---|
34 | kWorker_TEMPLATE = BIN
|
---|
35 | kWorker_INCS = kStuff/include
|
---|
36 | kWorker_DEFS.release = NASSERT
|
---|
37 | kWorker_SOURCES = kWorker.c
|
---|
38 | kWorker_LIBS = \
|
---|
39 | $(kStuff_1_TARGET) \
|
---|
40 | $(LIB_KDEP) \
|
---|
41 | $(LIB_KUTIL)
|
---|
42 | include $(KBUILD_PATH)/sdks/WINDDK.kmk
|
---|
43 | kWorker_LIBS.win = \
|
---|
44 | $(TEMPLATE_BIN_LIBS) \
|
---|
45 | $(PATH_SDK_WINDDK_LIB_WNET)/ntdll.lib
|
---|
46 | kWorker_LDFLAGS.win = \
|
---|
47 | /BASE:0x10000 /DYNAMICBASE:NO /FIXED /SECTION:DefLdBuf,EWR
|
---|
48 |
|
---|
49 |
|
---|
50 | #
|
---|
51 | # kStuff library.
|
---|
52 | #
|
---|
53 | LIBRARIES += kStuff
|
---|
54 | kStuff_TEMPLATE = LIB
|
---|
55 | kStuff_INCS = kStuff/include
|
---|
56 |
|
---|
57 | # kLdr
|
---|
58 | kStuff_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
|
---|
70 | kLdr_SOURCES.os2 += \
|
---|
71 | kStuff/kLdr/kLdr-os2.c \
|
---|
72 | kStuff/kLdr/kLdrA-os2.asm
|
---|
73 | kLdr_SOURCES.win += \
|
---|
74 | kStuff/kLdr/kLdr-win.c
|
---|
75 |
|
---|
76 | # kRdr
|
---|
77 | kStuff_SOURCES += \
|
---|
78 | kStuff/kRdr/kRdr.cpp \
|
---|
79 | kStuff/kRdr/kRdrFile.cpp \
|
---|
80 | kStuff/kRdr/kRdrBuffered.cpp
|
---|
81 |
|
---|
82 | # kCpu
|
---|
83 | kStuff_SOURCES += \
|
---|
84 | kStuff/kCpu/kCpuCompare.c \
|
---|
85 | kStuff/kCpu/kCpuGetArchAndCpu.c
|
---|
86 |
|
---|
87 | # kHlp (CRT)
|
---|
88 | kStuff_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
|
---|
114 | kStuff_SOURCES.darwin += \
|
---|
115 | kStuff/kHlp/Bare/kHlpSys-darwin.c
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|
119 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
120 |
|
---|