| 1 | # $Id: Makefile.kmk 2831 2016-08-18 22:10:08Z 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 | SUB_DEPTH = ../..
|
|---|
| 27 | include $(PATH_KBUILD)/subheader.kmk
|
|---|
| 28 |
|
|---|
| 29 | PROGRAMS += kWorker
|
|---|
| 30 | kWorker_TEMPLATE = BIN
|
|---|
| 31 | kWorker_INCS = kStuff/include
|
|---|
| 32 | kWorker_DEFS.release = NASSERT
|
|---|
| 33 | kWorker_SOURCES = kWorker.c
|
|---|
| 34 | kWorker_LIBS = \
|
|---|
| 35 | $(kStuff_1_TARGET) \
|
|---|
| 36 | $(LIB_KDEP) \
|
|---|
| 37 | $(LIB_KUTIL)
|
|---|
| 38 | include $(KBUILD_PATH)/sdks/WINDDK.kmk
|
|---|
| 39 | kWorker_LIBS.win = \
|
|---|
| 40 | $(TEMPLATE_BIN_LIBS) \
|
|---|
| 41 | $(PATH_SDK_WINDDK_LIB_WNET)/ntdll.lib
|
|---|
| 42 | kWorker_LDFLAGS.win = \
|
|---|
| 43 | /BASE:0x10000 /DYNAMICBASE:NO /FIXED /SECTION:DefLdBuf,EWR
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | #
|
|---|
| 47 | # kStuff library.
|
|---|
| 48 | #
|
|---|
| 49 | LIBRARIES += kStuff
|
|---|
| 50 | kStuff_TEMPLATE = LIB
|
|---|
| 51 | kStuff_INCS = kStuff/include
|
|---|
| 52 |
|
|---|
| 53 | # kLdr
|
|---|
| 54 | kStuff_SOURCES += \
|
|---|
| 55 | kStuff/kLdr/kLdr.c \
|
|---|
| 56 | kStuff/kLdr/kLdrDyld.c \
|
|---|
| 57 | kStuff/kLdr/kLdrDyldFind.c \
|
|---|
| 58 | kStuff/kLdr/kLdrDyldMod.c \
|
|---|
| 59 | kStuff/kLdr/kLdrDyldOS.c \
|
|---|
| 60 | kStuff/kLdr/kLdrDyLdSem.c \
|
|---|
| 61 | kStuff/kLdr/kLdrMod.c \
|
|---|
| 62 | kStuff/kLdr/kLdrModLX.c \
|
|---|
| 63 | kStuff/kLdr/kLdrModMachO.c \
|
|---|
| 64 | kStuff/kLdr/kLdrModNative.c \
|
|---|
| 65 | kStuff/kLdr/kLdrModPE.c
|
|---|
| 66 | kLdr_SOURCES.os2 += \
|
|---|
| 67 | kStuff/kLdr/kLdr-os2.c \
|
|---|
| 68 | kStuff/kLdr/kLdrA-os2.asm
|
|---|
| 69 | kLdr_SOURCES.win += \
|
|---|
| 70 | kStuff/kLdr/kLdr-win.c
|
|---|
| 71 |
|
|---|
| 72 | # kRdr
|
|---|
| 73 | kStuff_SOURCES += \
|
|---|
| 74 | kStuff/kRdr/kRdr.cpp \
|
|---|
| 75 | kStuff/kRdr/kRdrFile.cpp \
|
|---|
| 76 | kStuff/kRdr/kRdrBuffered.cpp
|
|---|
| 77 |
|
|---|
| 78 | # kCpu
|
|---|
| 79 | kStuff_SOURCES += \
|
|---|
| 80 | kStuff/kCpu/kCpuCompare.c \
|
|---|
| 81 | kStuff/kCpu/kCpuGetArchAndCpu.c
|
|---|
| 82 |
|
|---|
| 83 | # kHlp (CRT)
|
|---|
| 84 | kStuff_SOURCES += \
|
|---|
| 85 | kStuff/kHlp/Generic/kHlpMemPComp.c \
|
|---|
| 86 | kStuff/kHlp/Generic/kHlpMemICompAscii.c \
|
|---|
| 87 | kStuff/kHlp/Generic/kHlpStrPCat.c \
|
|---|
| 88 | kStuff/kHlp/Generic/kHlpStrNPCat.c \
|
|---|
| 89 | kStuff/kHlp/Generic/kHlpStrPComp.c \
|
|---|
| 90 | kStuff/kHlp/Generic/kHlpStrNPComp.c \
|
|---|
| 91 | kStuff/kHlp/Generic/kHlpStrICompAscii.c \
|
|---|
| 92 | kStuff/kHlp/Generic/kHlpStrIPCompAscii.c \
|
|---|
| 93 | kStuff/kHlp/Generic/kHlpStrNICompAscii.c \
|
|---|
| 94 | kStuff/kHlp/Generic/kHlpStrNIPCompAscii.c \
|
|---|
| 95 | kStuff/kHlp/Generic/kHlpStrPCopy.c \
|
|---|
| 96 | kStuff/kHlp/Generic/kHlpStrNLen.c \
|
|---|
| 97 | kStuff/kHlp/Generic/kHlpInt2Ascii.c \
|
|---|
| 98 | \
|
|---|
| 99 | kStuff/kHlp/Generic/kHlpGetEnvUZ.c \
|
|---|
| 100 | \
|
|---|
| 101 | kStuff/kHlp/Generic/kHlpGetExt.c \
|
|---|
| 102 | kStuff/kHlp/Generic/kHlpGetFilename.c \
|
|---|
| 103 | kStuff/kHlp/Generic/kHlpIsFilenameOnly.c \
|
|---|
| 104 | \
|
|---|
| 105 | kStuff/kHlp/Generic/kHlpPage.c \
|
|---|
| 106 | \
|
|---|
| 107 | kStuff/kHlp/CRT/kHlpCRTAlloc.cpp \
|
|---|
| 108 | kStuff/kHlp/CRT/kHlpCRTEnv.cpp \
|
|---|
| 109 | kStuff/kHlp/CRT/kHlpCRTString.cpp
|
|---|
| 110 | kStuff_SOURCES.darwin += \
|
|---|
| 111 | kStuff/kHlp/Bare/kHlpSys-darwin.c
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 | include $(KBUILD_PATH)/subfooter.kmk
|
|---|
| 116 |
|
|---|