# $Id: Makefile.kmk 16438 2009-01-31 01:54:49Z vboxsync $ ## @file # Sub-Makefile for kStuff, for statically linking into VBoxRT. # # # Copyright (C) 2007 Sun Microsystems, Inc. # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa # Clara, CA 95054 USA or visit http://www.sun.com if you need # additional information or have any questions. # SUB_DEPTH = ../../.. include $(KBUILD_PATH)/subheader.kmk # # The library. # LIBRARIES += VBox-kStuff VBox-kStuff_TEMPLATE = VBOXR3 VBox-kStuff_DEFS = IN_RT_R3 VBox-kStuff_DEFS.strict = K_STRICT KLDRMODMACHO_STRICT KLDRMODMACHO_STRICT2 VBox-kStuff_DEFS.debug = $(VBox-kStuff_DEFS.strict) VBox-kStuff_INCS = \ kStuff/include \ $(VBox-kStuff_0_OUTDIR) VBox-kStuff_ORDERDEPS = \ $(VBox-kStuff_0_OUTDIR)/kErrNameConsts.h VBox-kStuff_SOURCES = \ kStuff/kLdr/kLdrMod.c \ kStuff/kLdr/kLdrModLX.c \ kStuff/kLdr/kLdrModMachO.c \ kStuff/kLdr/kLdrModPE.c \ \ kStuff/kRdr/kRdr.cpp \ kStuff/kRdr/kRdrBuffered.cpp \ \ kStuff/kCpu/kCpuCompare.c \ kStuff/kCpu/kCpuGetArchAndCpu.c \ \ kStuff/kErr/kErrName.c \ \ kStuff/kHlp/Generic/kHlpMemPComp.c \ kStuff/kHlp/Generic/kHlpMemICompAscii.c \ kStuff/kHlp/Generic/kHlpStrPCat.c \ kStuff/kHlp/Generic/kHlpStrNPCat.c \ kStuff/kHlp/Generic/kHlpStrPComp.c \ kStuff/kHlp/Generic/kHlpStrNPComp.c \ kStuff/kHlp/Generic/kHlpStrICompAscii.c \ kStuff/kHlp/Generic/kHlpStrIPCompAscii.c \ kStuff/kHlp/Generic/kHlpStrNICompAscii.c \ kStuff/kHlp/Generic/kHlpStrNIPCompAscii.c \ kStuff/kHlp/Generic/kHlpStrPCopy.c \ kStuff/kHlp/Generic/kHlpStrNLen.c \ kStuff/kHlp/Generic/kHlpInt2Ascii.c \ kStuff/kHlp/Generic/kHlpGetEnvUZ.c \ kStuff/kHlp/Generic/kHlpGetExt.c \ kStuff/kHlp/Generic/kHlpGetFilename.c \ kStuff/kHlp/Generic/kHlpIsFilenameOnly.c \ \ iprt/kHlpPage-iprt.cpp \ iprt/kHlpAlloc-iprt.cpp \ iprt/kHlpAssert-iprt.cpp \ iprt/kHlpEnv-iprt.cpp \ iprt/kHlpString-iprt.cpp \ iprt/kRdrFile-iprt.cpp # Generate the error constants. $$(VBox-kStuff_0_OUTDIR)/kErrNameConsts.h: \ $(PATH_SUB_CURRENT)/kStuff/include/k/kErrors.h \ $(MAKEFILE_CURRENT) \ | $$(dir $$@) $(RM) -f $@ $(SED) \ -e '/^#define *\(K[A-Z_]*ERR_[^ ()]*\) .*$$/!d' \ -e 's/^#define *\(K[A-Z_]*ERR_[^ ()]*\) .*$$/ERR_CONST(\1)/' \ -e '/K[A-Z_]*ERR_[A-Z0-9_]*BASE/d' \ -e '/K[A-Z_]*ERR_[A-Z0-9_]*END/d' \ --output $@ \ $< include $(KBUILD_PATH)/subfooter.kmk