VirtualBox

Changeset 98409 in vbox


Ignore:
Timestamp:
Feb 1, 2023 4:17:58 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155653
Message:

IPRT/*.kmk: Automatic scm cleanups. bugref:10348

Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r98322 r98409  
    188188        IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
    189189ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    190 common/misc/buildconfig.cpp_DEFS += \
    191         IPRT_BLDCFG_VERSION_STRING="$(VBOX_VERSION_STRING)" \
    192         IPRT_BLDCFG_TARGET="$(KBUILD_TARGET)" \
    193         IPRT_BLDCFG_TARGET_ARCH="$(KBUILD_TARGET_ARCH)" \
    194         IPRT_BLDCFG_TYPE="$(KBUILD_TYPE)"
     190 common/misc/buildconfig.cpp_DEFS += \
     191        IPRT_BLDCFG_VERSION_STRING="$(VBOX_VERSION_STRING)" \
     192        IPRT_BLDCFG_TARGET="$(KBUILD_TARGET)" \
     193        IPRT_BLDCFG_TARGET_ARCH="$(KBUILD_TARGET_ARCH)" \
     194        IPRT_BLDCFG_TYPE="$(KBUILD_TYPE)"
    195195else
    196 common/misc/buildconfig.cpp_DEFS += \
    197         IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
    198         IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
    199         IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
    200         IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
     196 common/misc/buildconfig.cpp_DEFS += \
     197        IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
     198        IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
     199        IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
     200        IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
    201201endif
    202202
     
    214214$(IPRT_OUT_DIR)/oiddb.h.ts +| $(IPRT_OUT_DIR)/oiddb.h: \
    215215                $(VBOX_PATH_RUNTIME_SRC)/common/asn1/oiddb.cfg \
    216                $(VBOX_EXTRA_OID_CFG_FILES) \
    217                $$(oiddb2c_1_TARGET) \
     216                $(VBOX_EXTRA_OID_CFG_FILES) \
     217                $$(oiddb2c_1_TARGET) \
    218218                | $$(dir $$@)
    219219        $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
     
    276276        common/asm/ASMGetGSBase.asm \
    277277        common/asm/ASMSetGSBase.asm \
    278         common/asm/ASMGetTR.asm \
     278        common/asm/ASMGetTR.asm
    279279
    280280#
     
    295295#
    296296if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    297 RuntimeNoCrt_SOURCES = \
    298         common/misc/setjmp.asm \
    299         common/string/bzero.asm \
    300         common/string/memchr.asm \
    301         common/string/memcmp.asm \
    302         common/string/memcpy.asm \
    303         common/string/mempcpy.asm \
    304         common/string/memmove.asm \
    305         common/string/memset.asm \
    306         common/string/strchr.asm \
    307         common/string/strcpy.asm \
    308         common/string/strncpy.asm \
    309         common/string/strcmp.asm \
    310         common/string/strlen.asm
     297 RuntimeNoCrt_SOURCES = \
     298        common/misc/setjmp.asm \
     299        common/string/bzero.asm \
     300        common/string/memchr.asm \
     301        common/string/memcmp.asm \
     302        common/string/memcpy.asm \
     303        common/string/mempcpy.asm \
     304        common/string/memmove.asm \
     305        common/string/memset.asm \
     306        common/string/strchr.asm \
     307        common/string/strcpy.asm \
     308        common/string/strncpy.asm \
     309        common/string/strcmp.asm \
     310        common/string/strlen.asm
    311311endif
    312312
     
    532532        common/ldr/ldrPE.cpp \
    533533        common/log/log.cpp \
    534         common/log/log-weak.cpp \
    535         common/log/log-weak-assert.cpp \
    536         common/log/log-weak-rel.cpp \
     534        common/log/log-weak.cpp \
     535        common/log/log-weak-assert.cpp \
     536        common/log/log-weak-rel.cpp \
    537537        common/log/logellipsis.cpp \
    538538        common/log/logrel.cpp \
     
    688688        common/string/strspace.cpp \
    689689        common/string/strstrip.cpp \
    690         common/string/strtofloat.cpp \
     690        common/string/strtofloat.cpp \
    691691        common/string/strtonum.cpp \
    692692        common/string/strversion.cpp \
     
    760760        generic/critsectrw-generic.cpp \
    761761        generic/env-generic.cpp \
    762         generic/http.cpp \
     762        generic/http.cpp \
    763763        generic/RTDirCreateUniqueNumbered-generic.cpp \
    764764        generic/RTEnvDupEx-generic.cpp \
     
    818818# RuntimeBaseR3_SOURCES += common/time/timesupA.asm
    819819#else
    820  RuntimeBaseR3_SOURCES += common/time/timesupref.cpp
     820RuntimeBaseR3_SOURCES += common/time/timesupref.cpp
    821821#endif
    822822
     
    915915        common/dbg/dbgstackdumpself-amd64-x86.asm \
    916916        common/math/bignum-amd64-x86.asm \
    917        common/string/RTStrEnd.asm
     917        common/string/RTStrEnd.asm
    918918RuntimeBaseR3_SOURCES.amd64 += \
    919919        common/asm/ASMCpuIdExSlow.asm \
     
    942942        common/math/RTUInt128MulByU64.asm \
    943943        common/math/RTUInt128MulByU64Ex.asm \
    944        common/string/RTStrEnd.asm
     944        common/string/RTStrEnd.asm
    945945
    946946# Some versions of GCC might require this.
     
    949949        common/asm/ASMAtomicCmpXchgU64.asm \
    950950        common/asm/ASMAtomicCmpXchgExU64.asm \
    951         common/asm/ASMAtomicReadU64.asm \
     951        common/asm/ASMAtomicReadU64.asm \
    952952        common/asm/ASMAtomicUoReadU64.asm
    953953
     
    971971        VBox/log-vbox.cpp
    972972ifneq ($(KBUILD_TARGET),win)
    973 RuntimeBaseR3_SOURCES += \
    974         common/err/errmsgxpcom.cpp
    975 endif
    976 if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
    977 RuntimeBaseR3_SOURCES += \
    978         $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
     973 RuntimeBaseR3_SOURCES += \
     974        common/err/errmsgxpcom.cpp
     975endif
     976if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
     977 RuntimeBaseR3_SOURCES += \
     978        $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
    979979endif
    980980
     
    10961096        generic/RTPathGetCurrentOnDrive-generic.cpp \
    10971097        generic/RTProcDaemonize-generic.cpp \
    1098         generic/RTSemEventMultiWait-2-ex-generic.cpp \
    1099         generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
     1098        generic/RTSemEventMultiWait-2-ex-generic.cpp \
     1099        generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
    11001100        generic/RTTimeLocalNow-generic.cpp \
    11011101        generic/RTTimerCreate-generic.cpp \
     
    11851185 ifdef RT_NEW_LINUX_MUTEX_CODE
    11861186  RuntimeBaseR3_SOURCES.linux.amd64 += \
    1187         r3/linux/semmutex-linux.cpp
     1187        r3/linux/semmutex-linux.cpp
    11881188 else
    11891189  RuntimeBaseR3_SOURCES.linux.amd64 += \
    1190         r3/posix/semmutex-posix.cpp
     1190        r3/posix/semmutex-posix.cpp
    11911191 endif
    11921192endif
     
    13071307        generic/timer-generic.cpp \
    13081308        generic/utf16locale-generic.cpp \
    1309         generic/uuid-generic.cpp\
     1309        generic/uuid-generic.cpp \
    13101310        generic/RTProcIsRunningByName-generic.cpp \
    13111311        generic/RTThreadGetNativeState-generic.cpp \
     
    16831683        generic/timer-generic.cpp \
    16841684        generic/utf16locale-generic.cpp \
    1685         generic/uuid-generic.cpp\
     1685        generic/uuid-generic.cpp \
    16861686        generic/RTProcIsRunningByName-generic.cpp \
    16871687        generic/RTThreadGetNativeState-generic.cpp \
     
    17531753
    17541754define def_unit_VBoxNoCrtAliases_double_expansion
    1755 $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE).ts +| $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE): \
    1756                 $$(abspathex \
    1757                         $$($(target)_SOURCES)\
    1758                         $$($(target)_SOURCES.$(bld_trg))\
    1759                         $$($(target)_SOURCES.$(bld_trg).$(bld_type))\
    1760                         $$($(target)_SOURCES.$(bld_trg).$(bld_trg_arch))\
    1761                         $$($(target)_SOURCES.$(bld_trg).$(bld_trg_arch).$(bld_type))\
    1762                         $$($(target)_SOURCES.$(bld_trg_arch))\
    1763                         $$($(target)_SOURCES.$(bld_trg_cpu))\
    1764                         $$($(target)_SOURCES.$(bld_type)) \
    1765                         , $(firstfile $(defpath) $(PATH_SUB_CURRENT))) \
    1766                $$(VBOX_PATH_RUNTIME_SRC)//nocrt-aliases.sed
     1755 $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE).ts +| $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE): \
     1756                $$(abspathex \
     1757                $$($(target)_SOURCES) \
     1758                $$($(target)_SOURCES.$(bld_trg)) \
     1759                $$($(target)_SOURCES.$(bld_trg).$(bld_type)) \
     1760                $$($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) \
     1761                $$($(target)_SOURCES.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
     1762                $$($(target)_SOURCES.$(bld_trg_arch)) \
     1763                $$($(target)_SOURCES.$(bld_trg_cpu)) \
     1764                $$($(target)_SOURCES.$(bld_type)) \
     1765                , $(firstfile $(defpath) $(PATH_SUB_CURRENT))) \
     1766                $$(VBOX_PATH_RUNTIME_SRC)//nocrt-aliases.sed
    17671767        $$(call MSG_GENERATE,$(target),$$@,)
    17681768        $$(QUIET)$$(MKDIR) -p -- "$$(dir $$@)"
     
    17721772        $$(QUIET)$$(CP) --changed -f -- "$$@" "$$(patsubst %.ts,%,$$@)"
    17731773
    1774 $$($(target)_0_OUTDIR)/genalias/genalias.ts + $$($(target)_2_VBOX_NOCRT_ALIAS_FILES): | $$(VBOX_GENALIAS)
     1774 $$($(target)_0_OUTDIR)/genalias/genalias.ts + $$($(target)_2_VBOX_NOCRT_ALIAS_FILES): | $$(VBOX_GENALIAS)
    17751775        $$(call MSG_GENERATE,$(target),$$@,)
    17761776        $$(QUIET)$$(MKDIR) -p -- "$$($(target)_0_OUTDIR)/genalias/"
     
    17871787        $$(QUIET)$$(APPEND) -tn "$$($(target)_0_OUTDIR)/genalias/genalias.ts" "$$($(target)_2_VBOX_NOCRT_ALIASES))"
    17881788
    1789 $(target)_2_OBJS += $$($(target)_2_VBOX_NOCRT_ALIAS_FILES)
    1790 OTHER_CLEAN += $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE) $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE).ts
     1789 $(target)_2_OBJS += $$($(target)_2_VBOX_NOCRT_ALIAS_FILES)
     1790 OTHER_CLEAN += $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE) $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE).ts
    17911791endef
    17921792
     
    17961796  include $($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE)
    17971797  $(target)_2_VBOX_NOCRT_ALIAS_FILES := $(foreach alias,$($(target)_2_VBOX_NOCRT_ALIASES) \
    1798         $($(target)_VBOX_NOCRT_ALIASES) \
    1799         $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg)) \
    1800         $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_type)) \
    1801         $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch)) \
    1802         $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
    1803         $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_arch)) \
    1804         $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_cpu)) \
    1805         $($(target)_VBOX_NOCRT_ALIASES.$(bld_type)) \
    1806         , $($(target)_0_OUTDIR)/genalias/$(firstword $(subst =, $(SPACE),$(alias))).o)
     1798        $($(target)_VBOX_NOCRT_ALIASES) \
     1799        $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg)) \
     1800        $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_type)) \
     1801        $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch)) \
     1802        $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
     1803        $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_arch)) \
     1804        $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_cpu)) \
     1805        $($(target)_VBOX_NOCRT_ALIASES.$(bld_type)) \
     1806        , $($(target)_0_OUTDIR)/genalias/$(firstword $(subst =, $(SPACE),$(alias))).o)
    18071807  $(eval $(def_unit_VBoxNoCrtAliases_double_expansion))
    18081808 endif
     
    18261826  RuntimeR3_DEFS   = $(filter-out RT_WITHOUT_NOCRT_WRAPPERS,$(RuntimeBaseR3_DEFS)) \
    18271827        RT_FORCE_NOCRT_WRAPPERS \
    1828         RT_WITH_NOCRT_ALIASES RT_WITH_NOCRT_UNDERSCORE_ALIASES RT_WITH_GENALIAS_NOCRT_ALIASES
     1828        RT_WITH_NOCRT_ALIASES RT_WITH_NOCRT_UNDERSCORE_ALIASES RT_WITH_GENALIAS_NOCRT_ALIASES
    18291829
    18301830  RuntimeR3_SOURCES = $(filter-out \
     
    18371837        generic/RTLogWriteStdOut-generic.cpp \
    18381838        ,$(RuntimeBaseR3_SOURCES)) \
    1839        \
     1839        \
    18401840        common/err/nocrt-strerror.cpp \
    18411841        common/file/nocrt-open.cpp \
     
    19351935        r3/nocrt-ferror.cpp \
    19361936        r3/nocrt-cerr.cpp \
    1937         r3/nocrt-cout.cpp \
     1937        r3/nocrt-cout.cpp
    19381938
    19391939  RuntimeR3_SOURCES.x86 = $(RuntimeBaseR3_SOURCES.x86) \
    1940         common/math/atan.asm  \
    1941         common/math/atanf.asm  \
    1942         common/math/atan2.asm  \
    1943         common/math/atan2f.asm  \
    1944         common/math/cos.asm  \
    1945         common/math/cosf.asm  \
    1946         common/math/ceil.asm  \
    1947         common/math/ceilf.asm  \
    1948         common/math/exp.asm  \
    1949         common/math/expf.asm  \
    1950         common/math/exp2.asm  \
    1951         common/math/exp2f.asm  \
    1952         common/math/fabs.asm  \
     1940        common/math/atan.asm \
     1941        common/math/atanf.asm \
     1942        common/math/atan2.asm \
     1943        common/math/atan2f.asm \
     1944        common/math/cos.asm \
     1945        common/math/cosf.asm \
     1946        common/math/ceil.asm \
     1947        common/math/ceilf.asm \
     1948        common/math/exp.asm \
     1949        common/math/expf.asm \
     1950        common/math/exp2.asm \
     1951        common/math/exp2f.asm \
     1952        common/math/fabs.asm \
    19531953        common/math/fabsf.asm \
    19541954        common/math/rtNoCrtHasSse.asm \
     
    20102010        common/string/strcpy.asm \
    20112011        common/string/strncpy.asm \
    2012         common/string/strcat.cpp \
    2013         common/string/strncat.cpp \
    2014         common/string/strrchr.cpp \
    2015         common/string/strstr.cpp \
    2016         common/string/strcspn.cpp \
    2017         common/string/strpbrk.cpp \
    2018         common/string/wcslen.asm
     2012        common/string/strcat.cpp \
     2013        common/string/strncat.cpp \
     2014        common/string/strrchr.cpp \
     2015        common/string/strstr.cpp \
     2016        common/string/strcspn.cpp \
     2017        common/string/strpbrk.cpp \
     2018        common/string/wcslen.asm
    20192019
    20202020  RuntimeR3_SOURCES.amd64 = $(RuntimeBaseR3_SOURCES.amd64) \
    2021         common/math/atan.asm  \
    2022         common/math/atanf.asm  \
    2023         common/math/atan2.asm  \
    2024         common/math/atan2f.asm  \
    2025         common/math/cos.asm  \
    2026         common/math/cosf.asm  \
    2027         common/math/ceil.asm  \
    2028         common/math/ceilf.asm  \
    2029         common/math/exp.asm  \
    2030         common/math/expf.asm  \
    2031         common/math/exp2.asm  \
    2032         common/math/exp2f.asm  \
    2033         common/math/fabs.asm  \
     2021        common/math/atan.asm \
     2022        common/math/atanf.asm \
     2023        common/math/atan2.asm \
     2024        common/math/atan2f.asm \
     2025        common/math/cos.asm \
     2026        common/math/cosf.asm \
     2027        common/math/ceil.asm \
     2028        common/math/ceilf.asm \
     2029        common/math/exp.asm \
     2030        common/math/expf.asm \
     2031        common/math/exp2.asm \
     2032        common/math/exp2f.asm \
     2033        common/math/fabs.asm \
    20342034        common/math/fabsf.asm \
    20352035        common/math/fegetenv.asm \
     
    20902090        common/string/strcpy.asm \
    20912091        common/string/strncpy.asm \
    2092         common/string/strcat.cpp \
    2093         common/string/strncat.cpp \
    2094         common/string/strrchr.cpp \
    2095         common/string/strstr.cpp \
    2096         common/string/strcspn.cpp \
    2097         common/string/strpbrk.cpp \
    2098         common/string/wcslen.asm
     2092        common/string/strcat.cpp \
     2093        common/string/strncat.cpp \
     2094        common/string/strrchr.cpp \
     2095        common/string/strstr.cpp \
     2096        common/string/strcspn.cpp \
     2097        common/string/strpbrk.cpp \
     2098        common/string/wcslen.asm
    20992099
    21002100  RuntimeR3_SOURCES.win = $(filter-out \
    21012101        r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
    21022102        ,$(RuntimeBaseR3_SOURCES.win)) \
    2103         \
     2103        \
    21042104        common/compiler/vcc/atexit-vcc.cpp \
    21052105        common/compiler/vcc/loadcfg-vcc.c \
     
    21402140  RuntimeR3_VBOX_NOCRT_ALIASES.win := \
    21412141        strtok_s=nocrt_strtok_r _strtok_s=nocrt_strtok_r nocrt_strtok_s=nocrt_strtok_r \
    2142        $(foreach fn, atan atan2 cos ceil exp fabs floor ldexp log lrint llrint remainder sin tan \
    2143                 ,$(fn)l=nocrt_$(fn) _$(fn)l=nocrt_$(fn))
     2142        $(foreach fn, atan atan2 cos ceil exp fabs floor ldexp log lrint llrint remainder sin tan \
     2143        ,$(fn)l=nocrt_$(fn) _$(fn)l=nocrt_$(fn))
    21442144 endif
    21452145endif
     
    23232323        common/ldr/ldrVfsFile.cpp \
    23242324        common/log/log.cpp \
    2325         common/log/log-weak.cpp \
    2326         common/log/log-weak-assert.cpp \
    2327         common/log/log-weak-rel.cpp \
     2325        common/log/log-weak.cpp \
     2326        common/log/log-weak-assert.cpp \
     2327        common/log/log-weak-rel.cpp \
    23282328        common/log/logellipsis.cpp \
    23292329        common/log/logformat.cpp \
     
    24042404        common/string/RTStrCopyEx.cpp \
    24052405        common/string/RTStrCopyP.cpp \
    2406        common/string/RTStrICmpAscii.cpp \
     2406        common/string/RTStrICmpAscii.cpp \
    24072407        common/string/RTStrIStartsWith.cpp \
    24082408        common/string/RTStrNCmp.cpp \
     
    25372537        r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
    25382538        r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
    2539        , $(RuntimeBaseR3_SOURCES.darwin))
     2539        , $(RuntimeBaseR3_SOURCES.darwin))
    25402540
    25412541RuntimeBldProg_SOURCES.win = \
     
    26092609RuntimeBldProg_SOURCES.amd64 = $(filter-out \
    26102610        VBox/RTLogWriteVmm-amd64-x86.asm \
    2611        , $(RuntimeBaseR3_SOURCES.amd64))
     2611        , $(RuntimeBaseR3_SOURCES.amd64))
    26122612
    26132613RuntimeBldProg_SOURCES.x86 = $(filter-out \
    26142614        VBox/RTLogWriteVmm-amd64-x86.asm \
    2615        , $(RuntimeBaseR3_SOURCES.x86))
     2615        , $(RuntimeBaseR3_SOURCES.x86))
    26162616
    26172617RuntimeBldProg_SOURCES.win.amd64 := \
     
    27022702        common/time/timesupA.asm \
    27032703        common/time/timesup.cpp \
    2704         common/zip/xarvfs.cpp \
    2705         r3/xml.cpp \
     2704        common/zip/xarvfs.cpp \
     2705        r3/xml.cpp \
    27062706        generic/RTLogWriteUser-generic.cpp \
    27072707        , $(RuntimeR3_SOURCES)) \
     
    27442744        common/math/fma-asm.asm \
    27452745        common/math/fmaf.cpp \
    2746         common/math/fmaf-asm.asm \
     2746        common/math/fmaf-asm.asm
    27472747
    27482748 endif
     
    27662766VBoxRT_SDKS                   += VBoxOpenSslStatic
    27672767if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
    2768 VBoxRT_SDKS                   += VBoxSoftFloatR3Shared
     2768 VBoxRT_SDKS                  += VBoxSoftFloatR3Shared
    27692769endif
    27702770VBoxRT_SDKS.win                = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
    27712771if1of ($(KBUILD_TARGET), win)
    2772 VBoxRT_INST                    = $(INST_DLL) $(INST_TESTCASE) $(VBOX_INST_TOOLS)
     2772 VBoxRT_INST                   = $(INST_DLL) $(INST_TESTCASE) $(VBOX_INST_TOOLS)
    27732773else if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win$(VBOX_WITH_HARDENING))
    2774 VBoxRT_INST                    = $(INST_DLL) $(INST_TESTCASE)
     2774 VBoxRT_INST                   = $(INST_DLL) $(INST_TESTCASE)
    27752775endif
    27762776VBoxRT_DEFS                   := $(filter-out RT_NO_GIP, $(RuntimeBaseR3_DEFS)) \
     
    28002800        VBox/VBoxRTDeps.cpp \
    28012801        $(filter-out common/checksum/crc32.cpp, \
    2802                 $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeBaseR3_SOURCES), \
    2803                 $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeBaseR3_SOURCES)) ) ) \
     2802        $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeBaseR3_SOURCES), \
     2803        $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeBaseR3_SOURCES)) ) ) \
    28042804        common/checksum/crc32-zlib.cpp \
    28052805        common/dbg/dbgmodghidra.cpp \
     
    28112811        common/fuzz/fuzzclientcmd.cpp
    28122812ifneq ($(KBUILD_TARGET),win)
    2813 VBox/VBoxRTDeps.cpp_CXXFLAGS = -Wno-deprecated-declarations
     2813 VBox/VBoxRTDeps.cpp_CXXFLAGS = -Wno-deprecated-declarations
    28142814endif
    28152815ifdef VBOX_WITH_LIBCURL
     
    28442844VBoxRT_SOURCES.win            += \
    28452845        r3/win/dllmain-win.cpp \
    2846          $(VBoxRT_0_OUTDIR)/VBoxRT.def
     2846        $(VBoxRT_0_OUTDIR)/VBoxRT.def
    28472847VBoxRT_CLEAN.win              += \
    28482848        $(VBoxRT_0_OUTDIR)/VBoxRT.def
     
    28552855ifndef SDK_VBoxLibXml2_LIBS
    28562856 VBoxRT_LIBS                  += \
    2857         $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
     2857        $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
    28582858endif
    28592859VBoxRT_LIBS                   += \
     
    28612861ifndef SDK_VBoxOpenSslStatic_LIBS
    28622862 VBoxRT_LIBS                  += \
    2863         $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
    2864         $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
     2863        $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
     2864        $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
    28652865endif
    28662866ifdef IPRT_WITH_LZO
     
    28682868endif
    28692869ifdef RTALLOC_REPLACE_MALLOC
    2870 VBoxRT_LIBS                   += \
    2871         $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
     2870 VBoxRT_LIBS                  += \
     2871        $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
    28722872endif
    28732873VBoxRT_LIBS.darwin             = \
     
    29032903        /delayload:advapi32.dll
    29042904
    2905 if1of (VBoxRT,$(DLLS))
     2905if1of (VBoxRT, $(DLLS))
    29062906 $(call VBOX_SET_VER_INFO_DLL,VBoxRT,VirtualBox Runtime)
    29072907endif
     
    29492949 if1of (VBoxRT, $(DLLS))
    29502950  ifneq ($(wildcard /usr/bin/chcon),)
    2951 VBoxRT_INSTTYPE = none
    2952 VBoxRT_DEBUG_INSTTYPE = both
    2953 
    2954 VBoxRT-x86_INSTTYPE = $(NO_SUCH_VARIABLE)
    2955 
    2956 DLLS += VBoxRTDummy
    2957 VBoxRTDummy_TEMPLATE = VBoxR3Dll
    2958 VBoxRTDummy_INSTTYPE = none
    2959 VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
    2960 VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
    2961 BLDDIRS += $(PATH_STAGE_BIN)
    2962 
    2963 $(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
     2951   VBoxRT_INSTTYPE = none
     2952   VBoxRT_DEBUG_INSTTYPE = both
     2953
     2954   VBoxRT-x86_INSTTYPE = $(NO_SUCH_VARIABLE)
     2955
     2956   DLLS += VBoxRTDummy
     2957   VBoxRTDummy_TEMPLATE = VBoxR3Dll
     2958   VBoxRTDummy_INSTTYPE = none
     2959   VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
     2960   VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
     2961   BLDDIRS += $(PATH_STAGE_BIN)
     2962
     2963   $(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
    29642964        $(INSTALL) $< $@
    29652965        chcon -t texrel_shlib_t $@ || true
    29662966
    2967 VBoxRT:: VBoxRTDummy
     2967   VBoxRT:: VBoxRTDummy
    29682968  endif # chcon present.
    29692969 endif # building VBoxRT
     
    29742974 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRT)
    29752975 $(VBoxRT_0_OUTDIR)/VBoxRT.def: \
    2976                 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
    2977                 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-openssl-3.0.def \
    2978                 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" && defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES)\
    2979                 ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcr100-win32.def ,) \
    2980                 | $$(dir $$@) #$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcp100-win32.def
     2976                $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
     2977                $(PATH_SUB_CURRENT)/r3/win/VBoxRT-openssl-3.0.def \
     2978                $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" && defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) \
     2979                ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcr100-win32.def ,) \
     2980                | $$(dir $$@) #$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcp100-win32.def
    29812981        $(RM) -f -- $@
    29822982        $(SED)  --output "$@" \
     
    30073007        $(SDK_VBoxLzf_LIBS-x86)
    30083008if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    3009 VBoxRT-x86_LIBS += \
    3010         $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
     3009 VBoxRT-x86_LIBS += \
     3010        $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
    30113011endif
    30123012ifndef SDK_VBoxLibXml2_LIBS
    30133013 VBoxRT-x86_LIBS                 += \
    3014         $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
     3014        $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
    30153015endif
    30163016VBoxRT-x86_LIBS                  += \
     
    30183018ifndef SDK_VBoxOpenSslStatic_LIBS
    30193019 VBoxRT-x86_LIBS                 += \
    3020         $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
    3021         $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
     3020        $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
     3021        $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
    30223022endif
    30233023ifdef IPRT_WITH_LZO
     
    30473047VBoxRT-x86_CLEAN += $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
    30483048
    3049 if1of (VBoxRT-x86,$(DLLS))
     3049if1of (VBoxRT-x86, $(DLLS))
    30503050 $(call VBOX_SET_VER_INFO_DLL,VBoxRT-x86,VirtualBox 32-bit Runtime)
    30513051endif
     
    30553055 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRT-x86)
    30563056 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def: \
    3057                 $(VBOX_PATH_RUNTIME_SRC)/r3/win/VBoxRT-win32.def \
    3058                 | $$(dir $$@) # Hopefully no need to export openssl here.
     3057                $(VBOX_PATH_RUNTIME_SRC)/r3/win/VBoxRT-win32.def \
     3058                | $$(dir $$@) # Hopefully no need to export openssl here.
    30593059        $(RM) -f -- $@
    30603060        $(SED)  --output "$@" \
     
    30733073#
    30743074ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
    3075 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc64.def r3/win/VBoxRT-win64.def)
     3075 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc64.def r3/win/VBoxRT-win64.def)
    30763076else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    3077 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc32.def r3/win/VBoxRT-win32.def)
     3077 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc32.def r3/win/VBoxRT-win32.def)
    30783078else
    3079 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-gcc.def)
    3080 endif
    3081 
    3082 
    3083 if1of ($(KBUILD_TARGET),win linux darwin) # remove later
    3084 if1of ($(KBUILD_TARGET_ARCH),x86 amd64) ## @todo bugref:9898
    3085 if1of (VBoxRT,$(DLLS))
    3086  #
    3087  # VBoxRTImpCheck - Import library check.
    3088  #
    3089  PROGRAMS += VBoxRTStableCheck
    3090  VBoxRTStableCheck_TEMPLATE = VBoxR3TstExe
    3091  VBoxRTStableCheck_SOURCES = \
    3092         VBox/VBoxRTStableCheck.cpp \
    3093         $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
    3094  VBoxRTStableCheck_LIBS = \
    3095         $(LIB_RUNTIME)
    3096  VBoxRTStableCheck_CLEAN = \
    3097         $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
    3098  $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRTStableCheck)
    3099 
    3100  ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
    3101  $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
    3102                 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
    3103                 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
    3104                 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc64.def \
    3105                 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win64.def \
    3106                 | $$(dir $$@)
    3107  else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    3108  $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
    3109                 $(PATH_SUB_CURRENT)/VBox/DefToAsmExternsVcc32.sed \
    3110                 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
    3111                 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc32.def \
    3112                 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def | $$(dir $$@)
    3113  else
    3114  $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
    3115                 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
    3116                 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
    3117                 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-gcc.def | $$(dir $$@)
    3118  endif
     3079 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-gcc.def)
     3080endif
     3081
     3082
     3083if1of ($(KBUILD_TARGET), win linux darwin) # remove later
     3084 if1of ($(KBUILD_TARGET_ARCH), x86 amd64) ## @todo bugref:9898
     3085  if1of (VBoxRT, $(DLLS))
     3086   #
     3087   # VBoxRTImpCheck - Import library check.
     3088   #
     3089   PROGRAMS += VBoxRTStableCheck
     3090   VBoxRTStableCheck_TEMPLATE = VBoxR3TstExe
     3091   VBoxRTStableCheck_SOURCES = \
     3092        VBox/VBoxRTStableCheck.cpp \
     3093        $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
     3094   VBoxRTStableCheck_LIBS = \
     3095        $(LIB_RUNTIME)
     3096   VBoxRTStableCheck_CLEAN = \
     3097        $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
     3098   $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRTStableCheck)
     3099
     3100   ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
     3101    $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
     3102                $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
     3103                $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
     3104                $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc64.def \
     3105                $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win64.def \
     3106                | $$(dir $$@)
     3107   else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
     3108    $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
     3109                $(PATH_SUB_CURRENT)/VBox/DefToAsmExternsVcc32.sed \
     3110                $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
     3111                $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc32.def \
     3112                $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def | $$(dir $$@)
     3113   else
     3114    $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
     3115                $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
     3116                $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
     3117                $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-gcc.def | $$(dir $$@)
     3118   endif
    31193119        $(APPEND) -tn "$@" '%include "iprt/asmdefs.mac"' ''
    31203120        $(SED) --append "$@" \
     
    31313131                -f "$<" $(filter %.def, $^)
    31323132        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    3133  $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm)
    3134 
    3135 endif
    3136 endif ## @todo bugref:9898
     3133   $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm)
     3134
     3135  endif
     3136 endif ## @todo bugref:9898
    31373137endif # remove later
    31383138
     
    31483148        IPRT_NO_ALLOCA_TROUBLE \
    31493149        IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES \
    3150        IPRT_MINIMAL_STREAM \
    3151        IPRT_NO_FLOAT_FORMATTING
     3150        IPRT_MINIMAL_STREAM \
     3151        IPRT_NO_FLOAT_FORMATTING
    31523152RuntimeR3NoCrt_SOURCES  := \
    31533153        common/string/straprintf.cpp \
     
    31783178        common/misc/message.cpp \
    31793179        common/err/errmsg.cpp \
    3180        r3/init-data.cpp \
     3180        r3/init-data.cpp \
    31813181        r3/process-data.cpp \
    31823182        generic/uuid-generic.cpp \
     
    32023202        common/string/strchr.asm \
    32033203        common/string/strcmp.asm \
    3204         common/string/strncmp.asm \
     3204        common/string/strncmp.asm
    32053205
    32063206RuntimeR3NoCrt_SOURCES.win := \
    32073207        r3/win/nocrt-startup-exe-win.cpp \
    32083208        r3/win/nocrt-startup-common-win.cpp \
    3209         r3/win/nocrt-fatal-write-win.cpp \
     3209        r3/win/nocrt-fatal-write-win.cpp \
    32103210        r3/win/nocrt-alloc-win.cpp \
    32113211        r3/win/nocrt-streams-win.cpp \
     
    32523252        common/misc/sanity-cpp.cpp \
    32533253        common/misc/term.cpp \
    3254         common/path/RTPathFilename.cpp \
    3255         common/rand/rand.cpp \
    3256         common/rand/randadv.cpp \
    3257         common/rand/randparkmiller.cpp \
     3254        common/path/RTPathFilename.cpp \
     3255        common/rand/rand.cpp \
     3256        common/rand/randadv.cpp \
     3257        common/rand/randparkmiller.cpp \
    32583258        common/string/strprintf-ellipsis.cpp \
    32593259        common/string/strprintf2-ellipsis.cpp \
     
    32983298
    32993299if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
    3300 RuntimeR0_SOURCES += \
    3301         common/math/gcc/adddi3.c \
    3302         common/math/gcc/anddi3.c \
    3303         common/math/gcc/ashldi3.c \
    3304         common/math/gcc/ashrdi3.c \
    3305         common/math/gcc/cmpdi2.c \
    3306         common/math/gcc/divdi3.c \
    3307         common/math/gcc/divmoddi4.c \
    3308         common/math/gcc/iordi3.c \
    3309         common/math/gcc/lshldi3.c \
    3310         common/math/gcc/lshrdi3.c \
    3311         common/math/gcc/moddi3.c \
    3312         common/math/gcc/muldi3.c \
    3313         common/math/gcc/negdi2.c \
    3314         common/math/gcc/notdi2.c \
    3315         common/math/gcc/qdivrem.c \
    3316         common/math/gcc/subdi3.c \
    3317         common/math/gcc/ucmpdi2.c \
    3318         common/math/gcc/udivdi3.c \
    3319         common/math/gcc/udivmoddi4.c \
    3320         common/math/gcc/umoddi3.c \
    3321         common/math/gcc/xordi3.c
     3300 RuntimeR0_SOURCES += \
     3301        common/math/gcc/adddi3.c \
     3302        common/math/gcc/anddi3.c \
     3303        common/math/gcc/ashldi3.c \
     3304        common/math/gcc/ashrdi3.c \
     3305        common/math/gcc/cmpdi2.c \
     3306        common/math/gcc/divdi3.c \
     3307        common/math/gcc/divmoddi4.c \
     3308        common/math/gcc/iordi3.c \
     3309        common/math/gcc/lshldi3.c \
     3310        common/math/gcc/lshrdi3.c \
     3311        common/math/gcc/moddi3.c \
     3312        common/math/gcc/muldi3.c \
     3313        common/math/gcc/negdi2.c \
     3314        common/math/gcc/notdi2.c \
     3315        common/math/gcc/qdivrem.c \
     3316        common/math/gcc/subdi3.c \
     3317        common/math/gcc/ucmpdi2.c \
     3318        common/math/gcc/udivdi3.c \
     3319        common/math/gcc/udivmoddi4.c \
     3320        common/math/gcc/umoddi3.c \
     3321        common/math/gcc/xordi3.c
    33223322endif
    33233323
     
    33753375# RuntimeR0_SOURCES += common/time/timesupA.asm
    33763376#else
    3377  RuntimeR0_SOURCES += common/time/timesupref.cpp
     3377RuntimeR0_SOURCES += common/time/timesupref.cpp
    33783378#endif
    33793379
     
    34043404RuntimeR0Drv_DEFS       = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL NOFILEID
    34053405RuntimeR0Drv_DEFS.win   = IN_SUP_R0 LDR_ONLY_PE IPRT_WITHOUT_DIGEST_MD4
    3406 RuntimeR0Drv_DEFS.darwin= IN_SUP_R0 LDR_ONLY_MACHO IPRT_WITHOUT_DIGEST_MD4 IN_RING0_DRV_ON_DARWIN
    3407 if  ($(VBOX_SOLARIS_11_UPDATE_VERSION) > 2 \
    3408  || ($(VBOX_SOLARIS_11_UPDATE_VERSION) == 2 && $(VBOX_SOLARIS_11_BUILD_VERSION) >= 22))
    3409 RuntimeR0Drv_DEFS.solaris += VBOX_NEW_CRASH_DUMP_FORMAT
     3406RuntimeR0Drv_DEFS.darwin = IN_SUP_R0 LDR_ONLY_MACHO IPRT_WITHOUT_DIGEST_MD4 IN_RING0_DRV_ON_DARWIN
     3407if   ($(VBOX_SOLARIS_11_UPDATE_VERSION) > 2 \
     3408  || ($(VBOX_SOLARIS_11_UPDATE_VERSION) == 2 && $(VBOX_SOLARIS_11_BUILD_VERSION) >= 22))
     3409 RuntimeR0Drv_DEFS.solaris += VBOX_NEW_CRASH_DUMP_FORMAT
    34103410endif
    34113411
     
    34303430        common/err/errinfo.cpp \
    34313431        common/log/log.cpp \
    3432         common/log/log-weak.cpp \
    3433         common/log/log-weak-assert.cpp \
    3434         common/log/log-weak-rel.cpp \
     3432        common/log/log-weak.cpp \
     3433        common/log/log-weak-assert.cpp \
     3434        common/log/log-weak-rel.cpp \
    34353435        common/log/logellipsis.cpp \
    34363436        common/log/logrel.cpp \
     
    35353535        r0drv/generic/semspinmutex-r0drv-generic.c \
    35363536        r0drv/RTR0DbgKrnlInfoGetSymbol.cpp \
    3537         VBox/log-vbox.cpp \
     3537        VBox/log-vbox.cpp
    35383538
    35393539RuntimeR0Drv_SOURCES.amd64 = \
     
    39593959        common/math/gcc/cmpdi2.c \
    39603960        common/math/gcc/divdi3.c \
    3961         common/math/gcc/divmoddi4.c \
     3961        common/math/gcc/divmoddi4.c \
    39623962        common/math/gcc/iordi3.c \
    39633963        common/math/gcc/lshldi3.c \
     
    39823982        common/math/watcom/U8RS-x86-32.asm \
    39833983        common/math/watcom/U8M-I8M-x86-32.asm \
    3984         common/string/watcom/bzero.asm \
    3985         common/string/watcom/memchr.asm \
    3986         common/string/watcom/memcmp.asm \
    3987         common/string/watcom/memcpy.asm \
    3988         common/string/watcom/memmove.asm \
    3989         common/string/watcom/mempcpy.asm \
    3990         common/string/watcom/memrchr.asm \
    3991         common/string/watcom/memset.asm \
    3992         common/string/watcom/strchr.asm \
    3993         common/string/watcom/strcmp.asm \
    3994         common/string/watcom/strcpy.asm \
    3995         common/string/watcom/strlen.asm \
    3996         common/string/watcom/strncmp.asm \
    3997         common/string/watcom/strncpy.asm
     3984        common/string/watcom/bzero.asm \
     3985        common/string/watcom/memchr.asm \
     3986        common/string/watcom/memcmp.asm \
     3987        common/string/watcom/memcpy.asm \
     3988        common/string/watcom/memmove.asm \
     3989        common/string/watcom/mempcpy.asm \
     3990        common/string/watcom/memrchr.asm \
     3991        common/string/watcom/memset.asm \
     3992        common/string/watcom/strchr.asm \
     3993        common/string/watcom/strcmp.asm \
     3994        common/string/watcom/strcpy.asm \
     3995        common/string/watcom/strlen.asm \
     3996        common/string/watcom/strncmp.asm \
     3997        common/string/watcom/strncpy.asm
    39983998endif
    39993999
     
    41894189        common/log/tracebuf.cpp \
    41904190        common/log/tracedefault.cpp \
    4191         common/log/RTLogCreateEx.cpp \
     4191        common/log/RTLogCreateEx.cpp \
    41924192        common/misc/RTAssertMsg1Weak.cpp \
    41934193        common/misc/RTAssertMsg2.cpp \
     
    42414241 # RuntimeRC_SOURCES += common/time/timesupA.asm
    42424242 #else
    4243   RuntimeRC_SOURCES += common/time/timesupref.cpp
     4243 RuntimeRC_SOURCES += common/time/timesupref.cpp
    42444244 #endif
    42454245
     
    42584258        common/math/gcc/cmpdi2.c \
    42594259        common/math/gcc/divdi3.c \
    4260         common/math/gcc/divmoddi4.c \
     4260        common/math/gcc/divmoddi4.c \
    42614261        common/math/gcc/iordi3.c \
    42624262        common/math/gcc/lshldi3.c \
     
    43124312#           images that does not load on older windows versions.
    43134313#
    4314 if1of (win,$(KBUILD_TARGET) $(KBUILD_HOST))
    4315 RuntimeR3NtDll-amd64_TEMPLATE     = VBoxR3Dll
    4316 RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
    4317 RuntimeR3NtDll-amd64_ARFLAGS      = /NODEFAULTLIB /MACHINE:amd64
    4318 RuntimeR3NtDll-amd64_SOURCES      = \
    4319         r3/win/ntdll-mini-implib.def
    4320 
    4321 RuntimeR3NtDll-x86_TEMPLATE       = VBoxR3Dll
    4322 RuntimeR3NtDll-x86_BLD_TRG_ARCH   = x86
    4323 RuntimeR3NtDll-x86_ARFLAGS        = /NODEFAULTLIB /MACHINE:x86
    4324 RuntimeR3NtDll-x86_SOURCES        = \
    4325         r3/win/ntdll-mini-implib.def \
    4326         $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
    4327 RuntimeR3NtDll-x86_CLEAN          = \
    4328         $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
    4329 
    4330 $$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
     4314if1of (win, $(KBUILD_TARGET) $(KBUILD_HOST))
     4315 RuntimeR3NtDll-amd64_TEMPLATE    = VBoxR3Dll
     4316 RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
     4317 RuntimeR3NtDll-amd64_ARFLAGS     = /NODEFAULTLIB /MACHINE:amd64
     4318 RuntimeR3NtDll-amd64_SOURCES     = \
     4319        r3/win/ntdll-mini-implib.def
     4320
     4321 RuntimeR3NtDll-x86_TEMPLATE      = VBoxR3Dll
     4322 RuntimeR3NtDll-x86_BLD_TRG_ARCH  = x86
     4323 RuntimeR3NtDll-x86_ARFLAGS       = /NODEFAULTLIB /MACHINE:x86
     4324 RuntimeR3NtDll-x86_SOURCES       = \
     4325        r3/win/ntdll-mini-implib.def \
     4326        $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
     4327 RuntimeR3NtDll-x86_CLEAN         = \
     4328        $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
     4329
     4330 $$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
    43314331        $(call MSG_GENERATE,,$@,$<)
    43324332        $(QUIET)$(APPEND) -nt "$@" \
     
    43614361
    43624362if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" # Ugly hacks... :-)
    4363 LIBRARIES += RuntimeR3VccTricks2
    4364 RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
    4365 RuntimeR3VccTricks2_DEFS    += $(RuntimeR3VccTricks_DEFS)
    4366 RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
    4367 RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
    4368 RuntimeR3VccTricks2_CLEAN    = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
    4369 RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
    4370 
    4371 $$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
    4372                 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
    4373                 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
    4374                 $$(LIB_RUNTIME) \
    4375                 $(MAKEFILE) | $$(dir $$@)
     4363 LIBRARIES += RuntimeR3VccTricks2
     4364 RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
     4365 RuntimeR3VccTricks2_DEFS   += $(RuntimeR3VccTricks_DEFS)
     4366 RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
     4367 RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
     4368 RuntimeR3VccTricks2_CLEAN   = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
     4369 RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
     4370
     4371 $$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
     4372                $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
     4373                $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
     4374                $$(LIB_RUNTIME) \
     4375                $(MAKEFILE) | $$(dir $$@)
    43764376        $(RM) -f -- "$@"
    4377 #       $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
    4378 #               $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
    4379 #               $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
     4377 #      $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
     4378 #               $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
     4379 #               $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
    43804380        $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib [email protected] $< \
    43814381                -MSVCR100.dll \
     
    44844484
    44854485if "$(KBUILD_TARGET)" == "freebsd"
    4486 #
    4487 # FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
    4488 #
    4489 # These are used by:
    4490 #      - The RTMp* API in IPRT.
    4491 #      - VBoxGuest
    4492 #
    4493 # Note! We cannot give a output path to the awk program, it will always
    4494 # generate the header next to the source. So, we'll have to temporarily copy
    4495 # the source file to the destination directory to work.
    4496 #
    4497 VBOX_AWK := /usr/bin/awk
    4498 INSTALLS += FreeBSDGeneratedKernelHeaders
    4499 FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
    4500 FreeBSDGeneratedKernelHeaders_SOURCES = \
    4501         $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
    4502         $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
    4503         $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
    4504 FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
    4505 
    4506 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
     4486 #
     4487 # FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
     4488 #
     4489 # These are used by:
     4490 #      - The RTMp* API in IPRT.
     4491 #      - VBoxGuest
     4492 #
     4493 # Note! We cannot give a output path to the awk program, it will always
     4494 # generate the header next to the source. So, we'll have to temporarily copy
     4495 # the source file to the destination directory to work.
     4496 #
     4497 VBOX_AWK := /usr/bin/awk
     4498 INSTALLS += FreeBSDGeneratedKernelHeaders
     4499 FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
     4500 FreeBSDGeneratedKernelHeaders_SOURCES = \
     4501        $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
     4502        $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
     4503        $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
     4504 FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
     4505
     4506 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
    45074507        $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
    45084508        $(QUIET)$(CP) -f $< $(@D)/bus_if.m
     
    45104510        $(QUIET)$(RM) $(@D)/bus_if.m
    45114511
    4512 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
     4512 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
    45134513        $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
    45144514        $(QUIET)$(CP) -f $< $(@D)/device_if.m
     
    45164516        $(QUIET)$(RM) $(@D)/device_if.m
    45174517
    4518 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
     4518 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
    45194519        $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
    45204520        $(QUIET)$(CP) -f $< $(@D)/pci_if.m
     
    45614561        $(VBOX_PATH_RUNTIME_SRC)/common/time \
    45624562        $(VBOX_PATH_RUNTIME_SRC)/VBox \
    4563         $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
    4564                 $(dir) \
    4565                 $(dir)/darwin \
    4566                 $(dir)/haiku \
    4567                 $(dir)/linux \
    4568                 $(dir)/nt \
    4569                 $(dir)/os2 \
    4570                 $(dir)/solaris \
    4571                 $(dir)/win \
    4572                 $(dir)/win32 \
    4573                 $(dir)/win64 \
    4574                 $(dir)/generic \
    4575                 )
     4563        $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv, \
     4564        $(dir) \
     4565        $(dir)/darwin \
     4566        $(dir)/haiku \
     4567        $(dir)/linux \
     4568        $(dir)/nt \
     4569        $(dir)/os2 \
     4570        $(dir)/solaris \
     4571        $(dir)/win \
     4572        $(dir)/win32 \
     4573        $(dir)/win64 \
     4574        $(dir)/generic \
     4575        )
    45764576
    45774577# These must come first in order to make things look nice.
    4578 IPRT_DOXYFILE_INPUT_FIRST =\
     4578IPRT_DOXYFILE_INPUT_FIRST = \
    45794579        $(PATH_ROOT)/include/iprt/cdefs.h \
    45804580        $(PATH_ROOT)/include/iprt/types.h \
     
    45824582        $(PATH_ROOT)/include/iprt/param.h \
    45834583        $(PATH_ROOT)/include/iprt/assert.h \
    4584         $(PATH_ROOT)/include/iprt/asm.h \
     4584        $(PATH_ROOT)/include/iprt/asm.h
    45854585
    45864586IPRT_DOXYFILE_INPUT := \
     
    46444644docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
    46454645if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
    4646 docs: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
     4646 docs: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
    46474647endif
    46484648
     
    46574657# Test mangling.
    46584658#
    4659 if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
     4659if1of ($(LIBRARIES), RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
    46604660 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
    46614661 OTHERS      += $(IPRT_OUT_DIR)/mangling.run
    46624662 OTHER_CLEAN += $(IPRT_OUT_DIR)/mangling.run
    46634663 $(IPRT_OUT_DIR)/mangling.run: \
    4664                 $$(RuntimeR3_1_TARGET) \
    4665                 $$(RuntimeR0_1_TARGET) \
    4666                 $$(RuntimeR0Drv_1_TARGET) \
    4667                 $$(RuntimeRC_1_TARGET)
     4664                $$(RuntimeR3_1_TARGET) \
     4665                $$(RuntimeR0_1_TARGET) \
     4666                $$(RuntimeR0Drv_1_TARGET) \
     4667                $$(RuntimeRC_1_TARGET)
    46684668 if1of ($(KBUILD_TARGET), win os2)
    46694669        $(call MSG_L1,IPRT: skipped mangling test.)
    46704670 else
    4671 # Generate a SED script from mangling.h that checks for known symbols.
     4671  # Generate a SED script from mangling.h that checks for known symbols.
    46724672        $(QUIET)$(SED) \
    46734673                -e '/^# *define.*RT_MANGLER/!d' \
     
    46864686                ':ok' \
    46874687                'd'
    4688 # Find the best way to generate a symbol list and subject it to mangling.h.
     4688  # Find the best way to generate a symbol list and subject it to mangling.h.
    46894689  if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
    46904690        $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
     
    47984798
    47994799if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
    4800 #
    4801 # Windows build tool.
    4802 #
    4803 BLDPROGS.win += ntBldSymDb
    4804 ntBldSymDb_TEMPLATE = VBoxAdvBldProg
    4805 ntBldSymDb_INCS = .
    4806 ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
     4800 #
     4801 # Windows build tool.
     4802 #
     4803 BLDPROGS.win += ntBldSymDb
     4804 ntBldSymDb_TEMPLATE = VBoxAdvBldProg
     4805 ntBldSymDb_INCS = .
     4806 ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
    48074807endif
    48084808
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r98307 r98409  
    4040ifdef VBOX_WITH_TESTCASES # The whole file
    4141
    42 #
    43 # Include the Validation Kit configuration to make use of build templates needed
    44 # for testcases to be included  on the Validation Kit .ISO.
    45 #
    46 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
    47  ifndef VBOX_VALIDATIONKIT_CONFIG_KMK_INCLUDED
    48   include $(PATH_ROOT)/src/VBox/ValidationKit/Config.kmk
    49  endif
    50 endif
    51 
    52 
    53 #
    54 # Globals
    55 #
    56 # WARNING: Careful with this wrt to the other sub-makefiles this joins.
    57 #
    58 TEMPLATE = VBoxR3TstExe
    59 
    60 # Defined by the parent makefile as well (for errmsgdata.h).
    61 IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
    62 
    63 
    64 #
    65 # Target lists
    66 #
    67 ifndef VBOX_ONLY_VALIDATIONKIT
    68  PROGRAMS += \
    69         tstRTAssertCompile \
    70         tstRTAvl \
    71         tstRTBase64 \
    72         tstRTBitOperations \
    73         tstRTBigNum \
    74         tstRTCidr \
    75         tstRTCritSect \
    76         tstRTCritSectRw \
    77         tstRTCrPkix-1 \
    78         tstRTCrX509-1 \
    79         tstRTCType \
    80         tstRTDigest \
    81         tstRTDigest-2 \
    82         tstDir \
    83         tstDir-2 \
    84         tstDir-3 \
    85         tstRTDvm \
    86         tstRTEnv \
    87         tstRTErr-1 \
    88         tstFile \
    89         tstRTFileAio \
    90         tstRTFileAppend-1 \
    91         tstRTFileQuerySize-1 \
    92         tstRTFileModeStringToFlags \
    93         tstFileLock \
    94         tstRTFileOpenEx-1 \
    95         tstFork \
    96         tstRTFsQueries \
    97         tstRTFilesystem \
    98         tstRTExprEval\
    99         tstRTGetOpt \
    100         tstRTGetOptArgv \
    101         tstHandleTable \
    102         tstRTHeapOffset \
    103         tstRTHeapSimple \
    104         tstRTInlineAsm \
    105         tstIprtList \
    106         tstIprtMiniList \
    107         tstIprtMiniString \
    108         tstLdr \
    109         tstLdrLoad \
    110         tstRTLocalIpc \
    111         tstRTLdrVerifyPeImage \
    112         tstRTList \
    113         tstRTLockValidator \
    114         tstLog \
    115         tstRTMath \
    116         tstRTMemEf \
    117         tstRTMemCache \
    118         tstRTMemPool \
    119         tstRTMemWipe \
    120         tstRTMemSafer \
    121         tstMove \
    122         tstRTMp-1 \
    123         tstRTNetIPv4 \
    124         tstRTNetIPv6 \
    125         tstOnce \
    126         tstRTPath \
    127         tstRTPathGlob \
    128         tstRTPathQueryInfo \
    129         tstRTPipe \
    130         tstRTPoll \
    131         tstRTPrfIO \
    132         tstRTProcCreateEx \
    133         tstRTProcCreatePrf \
    134         tstRTProcQueryUsername \
    135         tstPrfRT \
    136         tstRand \
    137         tstRTReqPool \
    138         tstRTSemEvent \
    139         tstRTSemEventMulti \
    140         tstSemMutex \
    141         tstSemPingPong \
    142         tstRTSemRW \
    143         tstRTSemXRoads \
    144         tstRTSort \
    145         tstRTStrAlloc \
    146         tstRTStrCache \
    147         tstRTStrCatCopy \
    148         tstRTStrFormat \
    149         tstRTStrSplit \
    150         tstRTStrSimplePattern \
    151         tstStrToNum \
    152         tstRTStrVersion \
    153         tstRTSymlink \
    154         tstRTSystemQueryDmi \
    155         tstRTSystemQueryFirmware \
    156         tstRTSystemQueryOsInfo \
    157         tstRTTcp-1 \
    158         tstRTTemp \
    159         tstRTDirCreateUniqueNumbered \
    160         tstTermCallbacks \
    161         tstThread-1 \
    162         tstRTThreadPoke \
    163         tstRTThreadExecutionTime \
    164         tstRTTime \
    165         tstTime-2 \
    166         tstTime-3 \
    167         tstTime-4 \
    168         tstTimer \
    169         tstRTTimerLR \
    170         tstRTTimeSpec \
    171         tstRTTls-1 \
    172         tstRTTraceLog \
    173         tstRTUdp-1 \
    174         tstUtf8 \
    175         tstRTUuid \
    176         tstRTCircBuf \
    177         tstRTManifest \
    178         tstRTUri \
    179         tstVector \
    180         tstRTVfs \
    181         tstRTZip \
    182         tstRTJson \
    183         tstRTShMem
    184 
    185  PROGRAMS.win += \
    186         tstRTCritSectW32 \
    187         tstRTProcWait \
    188         tstFileAppendWin-1 \
    189         tstRTNtPath-1 \
    190         ntGetTimerResolution \
    191         tstRTDarwinMachKernel
    192 
    193  PROGRAMS.linux += \
    194         tstRTProcWait \
    195         tstRTProcIsRunningByName \
    196         tstRTBitOperationsPIC3 \
    197         tstRTInlineAsmPIC \
    198         tstRTInlineAsmPIC3
    199  PROGRAMS.solaris += \
    200         tstRTCoreDump
    201  PROGRAMS.darwin += \
    202         tstDarwinSched \
    203         tstRTDarwinMachKernel
    204  ifdef VBOX_WITH_LIBCURL
     42 #
     43 # Include the Validation Kit configuration to make use of build templates needed
     44 # for testcases to be included  on the Validation Kit .ISO.
     45 #
     46 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
     47  ifndef VBOX_VALIDATIONKIT_CONFIG_KMK_INCLUDED
     48   include $(PATH_ROOT)/src/VBox/ValidationKit/Config.kmk
     49  endif
     50 endif
     51
     52
     53 #
     54 # Globals
     55 #
     56 # WARNING: Careful with this wrt to the other sub-makefiles this joins.
     57 #
     58 TEMPLATE = VBoxR3TstExe
     59
     60 # Defined by the parent makefile as well (for errmsgdata.h).
     61 IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
     62
     63
     64 #
     65 # Target lists
     66 #
     67 ifndef VBOX_ONLY_VALIDATIONKIT
    20568  PROGRAMS += \
    206         tstRTHttp-1 \
    207         tstRTCRest-1
    208  endif
    209 
    210  if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
    211   PROGRAMS += \
    212         tstNoCrt-1
    213   if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64) ## Build and test x86 too!
    214    PROGRAMS += tstRTNoCrt-2
    215   endif
    216   if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64)
    217    PROGRAMS += tstRTNoCrt-3 tstRTNoCrt-3r tstRTNoCrt-4
    218   endif
    219  endif
    220 
    221  if defined(VBOX_WITH_R0_MODULES)
    222   PROGRAMS += \
    223         tstLdr-2 \
    224         tstLdr-3 \
    225         tstLdr-4 \
    226         tstTSC
    227   if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     69        tstRTAssertCompile \
     70        tstRTAvl \
     71        tstRTBase64 \
     72        tstRTBitOperations \
     73        tstRTBigNum \
     74        tstRTCidr \
     75        tstRTCritSect \
     76        tstRTCritSectRw \
     77        tstRTCrPkix-1 \
     78        tstRTCrX509-1 \
     79        tstRTCType \
     80        tstRTDigest \
     81        tstRTDigest-2 \
     82        tstDir \
     83        tstDir-2 \
     84        tstDir-3 \
     85        tstRTDvm \
     86        tstRTEnv \
     87        tstRTErr-1 \
     88        tstFile \
     89        tstRTFileAio \
     90        tstRTFileAppend-1 \
     91        tstRTFileQuerySize-1 \
     92        tstRTFileModeStringToFlags \
     93        tstFileLock \
     94        tstRTFileOpenEx-1 \
     95        tstFork \
     96        tstRTFsQueries \
     97        tstRTFilesystem \
     98        tstRTExprEval \
     99        tstRTGetOpt \
     100        tstRTGetOptArgv \
     101        tstHandleTable \
     102        tstRTHeapOffset \
     103        tstRTHeapSimple \
     104        tstRTInlineAsm \
     105        tstIprtList \
     106        tstIprtMiniList \
     107        tstIprtMiniString \
     108        tstLdr \
     109        tstLdrLoad \
     110        tstRTLocalIpc \
     111        tstRTLdrVerifyPeImage \
     112        tstRTList \
     113        tstRTLockValidator \
     114        tstLog \
     115        tstRTMath \
     116        tstRTMemEf \
     117        tstRTMemCache \
     118        tstRTMemPool \
     119        tstRTMemWipe \
     120        tstRTMemSafer \
     121        tstMove \
     122        tstRTMp-1 \
     123        tstRTNetIPv4 \
     124        tstRTNetIPv6 \
     125        tstOnce \
     126        tstRTPath \
     127        tstRTPathGlob \
     128        tstRTPathQueryInfo \
     129        tstRTPipe \
     130        tstRTPoll \
     131        tstRTPrfIO \
     132        tstRTProcCreateEx \
     133        tstRTProcCreatePrf \
     134        tstRTProcQueryUsername \
     135        tstPrfRT \
     136        tstRand \
     137        tstRTReqPool \
     138        tstRTSemEvent \
     139        tstRTSemEventMulti \
     140        tstSemMutex \
     141        tstSemPingPong \
     142        tstRTSemRW \
     143        tstRTSemXRoads \
     144        tstRTSort \
     145        tstRTStrAlloc \
     146        tstRTStrCache \
     147        tstRTStrCatCopy \
     148        tstRTStrFormat \
     149        tstRTStrSplit \
     150        tstRTStrSimplePattern \
     151        tstStrToNum \
     152        tstRTStrVersion \
     153        tstRTSymlink \
     154        tstRTSystemQueryDmi \
     155        tstRTSystemQueryFirmware \
     156        tstRTSystemQueryOsInfo \
     157        tstRTTcp-1 \
     158        tstRTTemp \
     159        tstRTDirCreateUniqueNumbered \
     160        tstTermCallbacks \
     161        tstThread-1 \
     162        tstRTThreadPoke \
     163        tstRTThreadExecutionTime \
     164        tstRTTime \
     165        tstTime-2 \
     166        tstTime-3 \
     167        tstTime-4 \
     168        tstTimer \
     169        tstRTTimerLR \
     170        tstRTTimeSpec \
     171        tstRTTls-1 \
     172        tstRTTraceLog \
     173        tstRTUdp-1 \
     174        tstUtf8 \
     175        tstRTUuid \
     176        tstRTCircBuf \
     177        tstRTManifest \
     178        tstRTUri \
     179        tstVector \
     180        tstRTVfs \
     181        tstRTZip \
     182        tstRTJson \
     183        tstRTShMem
     184
     185  PROGRAMS.win += \
     186        tstRTCritSectW32 \
     187        tstRTProcWait \
     188        tstFileAppendWin-1 \
     189        tstRTNtPath-1 \
     190        ntGetTimerResolution \
     191        tstRTDarwinMachKernel
     192
     193  PROGRAMS.linux += \
     194        tstRTProcWait \
     195        tstRTProcIsRunningByName \
     196        tstRTBitOperationsPIC3 \
     197        tstRTInlineAsmPIC \
     198        tstRTInlineAsmPIC3
     199  PROGRAMS.solaris += \
     200        tstRTCoreDump
     201  PROGRAMS.darwin += \
     202        tstDarwinSched \
     203        tstRTDarwinMachKernel
     204  ifdef VBOX_WITH_LIBCURL
    228205   PROGRAMS += \
    229         tstRTR0MemUserKernelDriverHardened \
    230         tstRTR0SemMutexDriverHardened \
    231         tstRTR0TimerDriverHardened \
    232         tstRTR0ThreadPreemptionDriverHardened \
    233         tstRTR0ThreadDriverHardened
    234    DLLS     += \
    235         tstRTR0MemUserKernelDriver \
    236         tstRTR0SemMutexDriver \
    237         tstRTR0TimerDriver \
    238         tstRTR0ThreadPreemptionDriver \
    239         tstRTR0ThreadDriver
    240   else
     206        tstRTHttp-1 \
     207        tstRTCRest-1
     208  endif
     209
     210  if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
    241211   PROGRAMS += \
    242         tstRTR0MemUserKernelDriver \
    243         tstRTR0SemMutexDriver \
    244         tstRTR0TimerDriver \
    245         tstRTR0ThreadPreemptionDriver \
    246         tstRTR0ThreadDriver
    247   endif
    248   if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
     212        tstNoCrt-1
     213   if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64) ## Build and test x86 too!
     214    PROGRAMS += tstRTNoCrt-2
     215   endif
     216   if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64)
     217    PROGRAMS += tstRTNoCrt-3 tstRTNoCrt-3r tstRTNoCrt-4
     218   endif
     219  endif
     220
     221  if defined(VBOX_WITH_R0_MODULES)
     222   PROGRAMS += \
     223        tstLdr-2 \
     224        tstLdr-3 \
     225        tstLdr-4 \
     226        tstTSC
     227   if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     228    PROGRAMS += \
     229        tstRTR0MemUserKernelDriverHardened \
     230        tstRTR0SemMutexDriverHardened \
     231        tstRTR0TimerDriverHardened \
     232        tstRTR0ThreadPreemptionDriverHardened \
     233        tstRTR0ThreadDriverHardened
     234    DLLS    += \
     235        tstRTR0MemUserKernelDriver \
     236        tstRTR0SemMutexDriver \
     237        tstRTR0TimerDriver \
     238        tstRTR0ThreadPreemptionDriver \
     239        tstRTR0ThreadDriver
     240   else
     241    PROGRAMS += \
     242        tstRTR0MemUserKernelDriver \
     243        tstRTR0SemMutexDriver \
     244        tstRTR0TimerDriver \
     245        tstRTR0ThreadPreemptionDriver \
     246        tstRTR0ThreadDriver
     247   endif
     248   if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
     249    $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
     250        tstLdrObjR0
     251    ifdef VBOX_WITH_RAW_MODE
     252     SYSMODS += tstLdrObj
     253    endif
     254   endif
    249255   $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
    250         tstLdrObjR0
    251    ifdef VBOX_WITH_RAW_MODE
    252     SYSMODS += tstLdrObj
    253    endif
    254   endif
    255   $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
    256         tstRTR0MemUserKernel \
    257         tstRTR0SemMutex \
    258         tstRTR0Timer \
    259         tstRTR0ThreadPreemption \
    260         tstRTR0Thread
    261   if1of ($(KBUILD_TARGET), solaris darwin)
    262    PROGRAMS += tstRTR0DbgKrnlInfoDriver
    263    $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += tstRTR0DbgKrnlInfo
    264   endif # VBOX_SUPPORTED_HOST_ARCHS only
    265 
    266  endif
    267  if1of ($(VBOX_LDR_FMT)), lx pe)
    268   LIBRARIES += \
    269         tstLdr-4Imp
    270  endif
    271 
    272 endif # !VBOX_ONLY_VALIDATIONKIT
    273 
    274 
    275 #
    276 # Target configs in almost alphabetical order.
    277 #
    278 
    279 tstRTAssertCompile_TEMPLATE = VBoxR3TstExe
    280 tstRTAssertCompile_INSTTYPE = none
    281 tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
    282 
    283 tstRTAvl_TEMPLATE = VBoxR3TstExe
    284 tstRTAvl_SOURCES = tstRTAvl.cpp
    285 
    286 tstRTBase64_TEMPLATE = VBoxR3TstExe
    287 tstRTBase64_SOURCES = tstRTBase64.cpp
    288 
    289 tstRTBigNum_TEMPLATE = VBoxR3TstExe
    290 tstRTBigNum_SOURCES = tstRTBigNum.cpp
    291 tstRTBigNum_SDKS = VBoxOpenSsl
    292 tstRTBigNum_CXXFLAGS.win = -bigobj
    293 
    294 tstRTBitOperations_TEMPLATE = VBoxR3TstExe
    295 tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
    296 
    297 tstRTBitOperationsPIC3_TEMPLATE = VBoxR3TstExe
    298 tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
    299 tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
    300 tstRTBitOperationsPIC3_DEFS = PIC
    301 
    302 tstRTCidr_TEMPLATE = VBoxR3TstExe
    303 tstRTCidr_SOURCES = tstRTCidr.cpp
    304 
    305 tstRTCritSect_TEMPLATE = VBoxR3TstExe
    306 tstRTCritSect_SOURCES = tstRTCritSect.cpp
    307 
    308 tstRTCritSectRw_TEMPLATE = VBoxR3TstExe
    309 tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
    310 
    311 tstRTCritSectW32_TEMPLATE = VBoxR3TstExe
    312 tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
    313 tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
    314 
    315 tstRTCrPkix-1_TEMPLATE      = VBoxR3TstExe
    316 tstRTCrPkix-1_SOURCES       = tstRTCrPkix-1.cpp
    317 
    318 ifndef VBOX_ONLY_VALIDATIONKIT
    319  tstRTCrX509-1_TEMPLATE      = VBoxR3TstExe
    320  tstRTCrX509-1_SOURCES       = tstRTCrX509-1.cpp
    321  tstRTCrX509-1_INCS          = $(tstRTCrX509-1_0_OUTDIR)
    322  tstRTCrX509-1_CLEAN         = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
    323  tstRTCrX509-1_INTERMEDIATES = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
    324  tstRTCrX509-1_VBOX_FILES := \
    325         Pem_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4.pem \
    326         Pem_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5.pem \
    327         Pem_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1.pem \
    328         Pem_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224.pem \
    329         Pem_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256.pem \
    330         Pem_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384.pem \
    331         Pem_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512.pem \
    332         Pem_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.pem \
    333         \
    334         Der_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4-cert.der \
    335         Der_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5-cert.der \
    336         Der_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1-cert.der \
    337         Der_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224-cert.der \
    338         Der_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256-cert.der \
    339         Der_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384-cert.der \
    340         Der_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512-cert.der \
    341         Der_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.der \
    342         $(NO_SUCH_VARIABLE)
    343  $$(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h: \
    344                 $(foreach file,$(tstRTCrX509-1_VBOX_FILES),$(lastword  $(subst =,$(SP) ,$(file)))) \
    345                 $(VBOX_BIN2C) \
    346                 | $$(dir $$@)
     256        tstRTR0MemUserKernel \
     257        tstRTR0SemMutex \
     258        tstRTR0Timer \
     259        tstRTR0ThreadPreemption \
     260        tstRTR0Thread
     261   if1of ($(KBUILD_TARGET), solaris darwin)
     262    PROGRAMS += tstRTR0DbgKrnlInfoDriver
     263    $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += tstRTR0DbgKrnlInfo
     264   endif # VBOX_SUPPORTED_HOST_ARCHS only
     265
     266  endif
     267  if1of ($(VBOX_LDR_FMT)), lx pe)
     268   LIBRARIES += \
     269        tstLdr-4Imp
     270  endif
     271
     272 endif # !VBOX_ONLY_VALIDATIONKIT
     273
     274
     275 #
     276 # Target configs in almost alphabetical order.
     277 #
     278
     279 tstRTAssertCompile_TEMPLATE = VBoxR3TstExe
     280 tstRTAssertCompile_INSTTYPE = none
     281 tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
     282
     283 tstRTAvl_TEMPLATE = VBoxR3TstExe
     284 tstRTAvl_SOURCES = tstRTAvl.cpp
     285
     286 tstRTBase64_TEMPLATE = VBoxR3TstExe
     287 tstRTBase64_SOURCES = tstRTBase64.cpp
     288
     289 tstRTBigNum_TEMPLATE = VBoxR3TstExe
     290 tstRTBigNum_SOURCES = tstRTBigNum.cpp
     291 tstRTBigNum_SDKS = VBoxOpenSsl
     292 tstRTBigNum_CXXFLAGS.win = -bigobj
     293
     294 tstRTBitOperations_TEMPLATE = VBoxR3TstExe
     295 tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
     296
     297 tstRTBitOperationsPIC3_TEMPLATE = VBoxR3TstExe
     298 tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
     299 tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
     300 tstRTBitOperationsPIC3_DEFS = PIC
     301
     302 tstRTCidr_TEMPLATE = VBoxR3TstExe
     303 tstRTCidr_SOURCES = tstRTCidr.cpp
     304
     305 tstRTCritSect_TEMPLATE = VBoxR3TstExe
     306 tstRTCritSect_SOURCES = tstRTCritSect.cpp
     307
     308 tstRTCritSectRw_TEMPLATE = VBoxR3TstExe
     309 tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
     310
     311 tstRTCritSectW32_TEMPLATE = VBoxR3TstExe
     312 tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
     313 tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
     314
     315 tstRTCrPkix-1_TEMPLATE     = VBoxR3TstExe
     316 tstRTCrPkix-1_SOURCES      = tstRTCrPkix-1.cpp
     317
     318 ifndef VBOX_ONLY_VALIDATIONKIT
     319  tstRTCrX509-1_TEMPLATE     = VBoxR3TstExe
     320  tstRTCrX509-1_SOURCES      = tstRTCrX509-1.cpp
     321  tstRTCrX509-1_INCS         = $(tstRTCrX509-1_0_OUTDIR)
     322  tstRTCrX509-1_CLEAN        = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
     323  tstRTCrX509-1_INTERMEDIATES = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
     324  tstRTCrX509-1_VBOX_FILES := \
     325        Pem_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4.pem \
     326        Pem_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5.pem \
     327        Pem_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1.pem \
     328        Pem_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224.pem \
     329        Pem_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256.pem \
     330        Pem_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384.pem \
     331        Pem_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512.pem \
     332        Pem_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.pem \
     333        \
     334        Der_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4-cert.der \
     335        Der_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5-cert.der \
     336        Der_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1-cert.der \
     337        Der_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224-cert.der \
     338        Der_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256-cert.der \
     339        Der_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384-cert.der \
     340        Der_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512-cert.der \
     341        Der_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.der \
     342        $(NO_SUCH_VARIABLE)
     343  $$(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h: \
     344                $(foreach file,$(tstRTCrX509-1_VBOX_FILES),$(lastword  $(subst =,$(SP) ,$(file)))) \
     345                $(VBOX_BIN2C) \
     346                | $$(dir $$@)
    347347        $(RM) -f -- "$@"
    348348        $(foreach file,$(tstRTCrX509-1_VBOX_FILES) \
     
    351351                "$(lastword  $(subst =,$(SP) ,$(file)))" \
    352352                "$@")
    353 endif # !VBOX_ONLY_VALIDATIONKIT
    354 
    355 
    356 tstRTCType_TEMPLATE = VBoxR3TstExe
    357 tstRTCType_SOURCES = tstRTCType.cpp
    358 
    359 ifdef VBOX_WITH_LIBCURL
    360  tstRTCRest-1_TEMPLATE = VBoxR3TstExe
    361  tstRTCRest-1_SOURCES = tstRTCRest-1.cpp
    362 endif
    363 
    364 tstRTDigest_TEMPLATE = VBoxR3TstExe
    365 tstRTDigest_SOURCES = tstRTDigest.cpp
    366 
    367 tstRTDigest-2_TEMPLATE = VBoxR3TstExe
    368 ifndef VBOX_WITH_ALT_HASH_CODE
    369  tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
    370 endif
    371 tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
    372 
    373 ifdef VBOX_WITH_LIBCURL
    374 tstRTHttp-1_TEMPLATE = VBoxR3TstExe
    375 tstRTHttp-1_SOURCES = tstRTHttp-1.cpp
    376 tstRTHttp-1_SDKS = VBoxLibCurl
    377 endif
    378 
    379 tstDir_TEMPLATE = VBoxR3TstExe
    380 tstDir_SOURCES = tstDir.cpp
    381 
    382 tstDir-2_TEMPLATE = VBoxR3TstExe
    383 tstDir-2_SOURCES = tstDir-2.cpp
    384 
    385 tstDir-3_TEMPLATE = VBoxR3TstExe
    386 tstDir-3_SOURCES = tstDir-3.cpp
    387 
    388 tstRTDvm_TEMPLATE = VBoxR3TstExe
    389 tstRTDvm_SOURCES = tstRTDvm.cpp
    390 
    391 tstRTEnv_TEMPLATE = VBoxR3TstExe
    392 tstRTEnv_SOURCES = tstRTEnv.cpp
    393 
    394 tstRTErr-1_TEMPLATE = VBoxR3TstExe
    395 tstRTErr-1_SOURCES = tstRTErr-1.cpp
    396 
    397 tstFile_TEMPLATE = VBoxR3TstExe
    398 tstFile_SOURCES = tstFile.cpp
    399 
    400 tstRTFileAio_SOURCES = VBoxR3TstExe
    401 tstRTFileAio_SOURCES = tstRTFileAio.cpp
    402 
    403 tstRTFileAppend-1_TEMPLATE = VBoxR3TstExe
    404 tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
    405 
    406 tstRTFileQuerySize-1_TEMPLATE = VBoxR3TstExe
    407 tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp
    408 
    409 tstRTFileModeStringToFlags_TEMPLATE = VBoxR3TstExe
    410 tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
    411 
    412 tstRTFileOpenEx-1_TEMPLATE = VBoxR3TstExe
    413 tstRTFileOpenEx-1_SOURCES = tstRTFileOpenEx-1.cpp
    414 
    415 tstFileAppendWin-1_TEMPLATE = VBoxR3TstExe
    416 tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
    417 
    418 tstFileLock_TEMPLATE = VBoxR3TstExe
    419 tstFileLock_SOURCES = tstFileLock.cpp
    420 
    421 tstFork_TEMPLATE = VBoxR3TstExe
    422 tstFork_SOURCES = tstFork.cpp
    423 
    424 tstRTFsQueries_TEMPLATE = VBoxR3TstExe
    425 tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
    426 
    427 tstRTFilesystem_TEMPLATE = VBoxR3TstExe
    428 tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
    429 
    430 tstRTExprEval_TEMPLATE = VBoxR3TstExe
    431 tstRTExprEval_SOURCES = tstRTExprEval.cpp
    432 
    433 tstRTGetOpt_TEMPLATE = VBoxR3TstExe
    434 tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
    435 
    436 tstRTGetOptArgv_TEMPLATE = VBoxR3TstExe
    437 tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
    438 
    439 tstHandleTable_SOURCES = tstHandleTable.cpp
    440 
    441 tstRTHeapOffset_TEMPLATE = VBoxR3TstExe
    442 tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
    443 
    444 tstRTHeapSimple_TEMPLATE = VBoxR3TstExe
    445 tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
    446 
    447 tstRTInlineAsm_TEMPLATE = VBoxR3TstExe
    448 tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
    449 
    450 tstRTInlineAsmPIC_TEMPLATE = VBoxR3TstExe
    451 tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
    452 tstRTInlineAsmPIC_CXXFLAGS = -fPIC
    453 tstRTInlineAsmPIC_DEFS = PIC
    454 
    455 tstRTInlineAsmPIC3_TEMPLATE = VBoxR3TstExe
    456 tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
    457 tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
    458 tstRTInlineAsmPIC3_DEFS = PIC
    459 
    460 tstIprtList_TEMPLATE = VBoxR3TstExe
    461 tstIprtList_SOURCES = tstIprtList.cpp
    462 
    463 tstIprtMiniList_TEMPLATE = VBoxR3TstExe
    464 tstIprtMiniList_SOURCES = tstIprtMiniList.cpp
    465 
    466 tstIprtMiniString_TEMPLATE = VBoxR3TstExe
    467 tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
    468 
    469 tstLdr_TEMPLATE = VBoxR3TstExe
    470 tstLdr_SOURCES = tstLdr.cpp
    471 
    472 tstLdr-2_TEMPLATE = VBoxR3TstExe
    473 tstLdr-2_SOURCES = tstLdr-2.cpp
    474 tstLdr-2_DEFS = IN_DIS
    475 tstLdr-2_LIBS = \
    476         $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
    477 
    478 ifdef VBOX_WITH_RAW_MODE
    479  tstLdrObj_TEMPLATE = VBoxRc
    480  tstLdrObj_INST = $(INST_TESTCASE)
    481  tstLdrObj_SYSSUFF = .gc
    482  tstLdrObj_SOURCES = tstLdrObj.cpp
    483  tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
     353 endif # !VBOX_ONLY_VALIDATIONKIT
     354
     355
     356 tstRTCType_TEMPLATE = VBoxR3TstExe
     357 tstRTCType_SOURCES = tstRTCType.cpp
     358
     359 ifdef VBOX_WITH_LIBCURL
     360  tstRTCRest-1_TEMPLATE = VBoxR3TstExe
     361  tstRTCRest-1_SOURCES = tstRTCRest-1.cpp
     362 endif
     363
     364 tstRTDigest_TEMPLATE = VBoxR3TstExe
     365 tstRTDigest_SOURCES = tstRTDigest.cpp
     366
     367 tstRTDigest-2_TEMPLATE = VBoxR3TstExe
     368 ifndef VBOX_WITH_ALT_HASH_CODE
     369  tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
     370 endif
     371 tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
     372
     373 ifdef VBOX_WITH_LIBCURL
     374  tstRTHttp-1_TEMPLATE = VBoxR3TstExe
     375  tstRTHttp-1_SOURCES = tstRTHttp-1.cpp
     376  tstRTHttp-1_SDKS = VBoxLibCurl
     377 endif
     378
     379 tstDir_TEMPLATE = VBoxR3TstExe
     380 tstDir_SOURCES = tstDir.cpp
     381
     382 tstDir-2_TEMPLATE = VBoxR3TstExe
     383 tstDir-2_SOURCES = tstDir-2.cpp
     384
     385 tstDir-3_TEMPLATE = VBoxR3TstExe
     386 tstDir-3_SOURCES = tstDir-3.cpp
     387
     388 tstRTDvm_TEMPLATE = VBoxR3TstExe
     389 tstRTDvm_SOURCES = tstRTDvm.cpp
     390
     391 tstRTEnv_TEMPLATE = VBoxR3TstExe
     392 tstRTEnv_SOURCES = tstRTEnv.cpp
     393
     394 tstRTErr-1_TEMPLATE = VBoxR3TstExe
     395 tstRTErr-1_SOURCES = tstRTErr-1.cpp
     396
     397 tstFile_TEMPLATE = VBoxR3TstExe
     398 tstFile_SOURCES = tstFile.cpp
     399
     400 tstRTFileAio_SOURCES = VBoxR3TstExe
     401 tstRTFileAio_SOURCES = tstRTFileAio.cpp
     402
     403 tstRTFileAppend-1_TEMPLATE = VBoxR3TstExe
     404 tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
     405
     406 tstRTFileQuerySize-1_TEMPLATE = VBoxR3TstExe
     407 tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp
     408
     409 tstRTFileModeStringToFlags_TEMPLATE = VBoxR3TstExe
     410 tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
     411
     412 tstRTFileOpenEx-1_TEMPLATE = VBoxR3TstExe
     413 tstRTFileOpenEx-1_SOURCES = tstRTFileOpenEx-1.cpp
     414
     415 tstFileAppendWin-1_TEMPLATE = VBoxR3TstExe
     416 tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
     417
     418 tstFileLock_TEMPLATE = VBoxR3TstExe
     419 tstFileLock_SOURCES = tstFileLock.cpp
     420
     421 tstFork_TEMPLATE = VBoxR3TstExe
     422 tstFork_SOURCES = tstFork.cpp
     423
     424 tstRTFsQueries_TEMPLATE = VBoxR3TstExe
     425 tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
     426
     427 tstRTFilesystem_TEMPLATE = VBoxR3TstExe
     428 tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
     429
     430 tstRTExprEval_TEMPLATE = VBoxR3TstExe
     431 tstRTExprEval_SOURCES = tstRTExprEval.cpp
     432
     433 tstRTGetOpt_TEMPLATE = VBoxR3TstExe
     434 tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
     435
     436 tstRTGetOptArgv_TEMPLATE = VBoxR3TstExe
     437 tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
     438
     439 tstHandleTable_SOURCES = tstHandleTable.cpp
     440
     441 tstRTHeapOffset_TEMPLATE = VBoxR3TstExe
     442 tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
     443
     444 tstRTHeapSimple_TEMPLATE = VBoxR3TstExe
     445 tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
     446
     447 tstRTInlineAsm_TEMPLATE = VBoxR3TstExe
     448 tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
     449
     450 tstRTInlineAsmPIC_TEMPLATE = VBoxR3TstExe
     451 tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
     452 tstRTInlineAsmPIC_CXXFLAGS = -fPIC
     453 tstRTInlineAsmPIC_DEFS = PIC
     454
     455 tstRTInlineAsmPIC3_TEMPLATE = VBoxR3TstExe
     456 tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
     457 tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
     458 tstRTInlineAsmPIC3_DEFS = PIC
     459
     460 tstIprtList_TEMPLATE = VBoxR3TstExe
     461 tstIprtList_SOURCES = tstIprtList.cpp
     462
     463 tstIprtMiniList_TEMPLATE = VBoxR3TstExe
     464 tstIprtMiniList_SOURCES = tstIprtMiniList.cpp
     465
     466 tstIprtMiniString_TEMPLATE = VBoxR3TstExe
     467 tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
     468
     469 tstLdr_TEMPLATE = VBoxR3TstExe
     470 tstLdr_SOURCES = tstLdr.cpp
     471
     472 tstLdr-2_TEMPLATE = VBoxR3TstExe
     473 tstLdr-2_SOURCES = tstLdr-2.cpp
     474 tstLdr-2_DEFS = IN_DIS
     475 tstLdr-2_LIBS = \
     476        $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
     477
     478 ifdef VBOX_WITH_RAW_MODE
     479  tstLdrObj_TEMPLATE = VBoxRc
     480  tstLdrObj_INST = $(INST_TESTCASE)
     481  tstLdrObj_SYSSUFF = .gc
     482  tstLdrObj_SOURCES = tstLdrObj.cpp
     483  tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
     484  ifeq ($(VBOX_LDR_FMT32),elf)
     485   tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
     486  endif
     487  tstLdrObj_LIBS = \
     488        $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
     489        $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
     490  if1of ($(VBOX_LDR_FMT32), lx pe)
     491   tstLdrObj_LIBS += \
     492        $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
     493        $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
     494  endif
     495 endif # VBOX_WITH_RAW_MODE
     496
     497 tstLdr-3_TEMPLATE = VBoxR3TstExe
     498 tstLdr-3_SOURCES = tstLdr-3.cpp
     499 tstLdr-3_DEFS = IN_DIS
     500 tstLdr-3_LIBS = \
     501        $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
     502
     503 tstLdr-4Imp_TEMPLATE = VBoxR0
     504 ifeq ($(VBOX_LDR_FMT),lx)
     505  tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
     506 else ifeq ($(VBOX_LDR_FMT),pe)
     507  tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
     508 endif
     509
     510 tstLdrObjR0_TEMPLATE = VBoxR0
     511 tstLdrObjR0_INST = $(INST_TESTCASE)
     512 tstLdrObjR0_SYSSUFF = .r0
     513 tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
     514 tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
    484515 ifeq ($(VBOX_LDR_FMT32),elf)
    485  tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
    486  endif
    487  tstLdrObj_LIBS = \
    488         $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
    489         $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
    490  if1of ($(VBOX_LDR_FMT32),lx pe)
    491  tstLdrObj_LIBS += \
    492         $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
    493         $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
    494  endif
    495 endif # VBOX_WITH_RAW_MODE
    496 
    497 tstLdr-3_TEMPLATE = VBoxR3TstExe
    498 tstLdr-3_SOURCES = tstLdr-3.cpp
    499 tstLdr-3_DEFS = IN_DIS
    500 tstLdr-3_LIBS = \
    501         $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
    502 
    503 tstLdr-4Imp_TEMPLATE = VBoxR0
    504 ifeq ($(VBOX_LDR_FMT),lx)
    505  tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
    506 else ifeq ($(VBOX_LDR_FMT),pe)
    507  tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
    508 endif
    509 
    510 tstLdrObjR0_TEMPLATE = VBoxR0
    511 tstLdrObjR0_INST = $(INST_TESTCASE)
    512 tstLdrObjR0_SYSSUFF = .r0
    513 tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
    514 tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
    515 ifeq ($(VBOX_LDR_FMT32),elf)
    516  tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
    517 endif
    518 ifn1of ($(KBUILD_TARGET), win)
    519  tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
    520 endif
    521 tstLdrObjR0_LIBS = \
    522         $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
    523         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    524         $(VBOX_LIB_SUPR0)
    525 if1of ($(VBOX_LDR_FMT),pe lx)
    526  tstLdrObjR0_LIBS += \
    527         $(TARGET_tstLdr-4Imp)
    528 endif
    529 
    530 tstLdr-4_TEMPLATE = VBoxR3TstExe
    531 tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
    532 tstLdr-4_DEFS = IN_DIS
    533 tstLdr-4_LIBS = \
    534         $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
    535 
    536 tstLdrLoad_TEMPLATE = VBoxR3TstExe
    537 tstLdrLoad_SOURCES = tstLdrLoad.cpp
    538 
    539 tstRTLdrVerifyPeImage_TEMPLATE = VBoxR3TstExe
    540 tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
    541 
    542 tstRTList_TEMPLATE = VBoxR3TstExe
    543 tstRTList_SOURCES = tstRTList.cpp
    544 
    545 tstRTLocalIpc_TEMPLATE = VBoxR3TstExe
    546 tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
    547 
    548 tstRTLockValidator_TEMPLATE = VBoxR3TstExe
    549 tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
    550 
    551 ifndef VBOX_ONLY_VALIDATIONKIT
    552  tstLog_TEMPLATE      = VBoxR3TstExe
    553  tstLog_SOURCES       = tstLog.cpp
    554  tstLog_INCS          = $(tstLog_0_OUTDIR)
    555  tstLog_INTERMEDIATES = $(tstLog_0_OUTDIR)/tstLogGroups.h
    556  tstLog_CLEAN         = $(tstLog_0_OUTDIR)/tstLogGroups.h
    557  $$(tstLog_0_OUTDIR)/tstLogGroups.h: $(PATH_ROOT)/include/VBox/log.h
     516  tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
     517 endif
     518 ifn1of ($(KBUILD_TARGET), win)
     519  tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
     520 endif
     521 tstLdrObjR0_LIBS = \
     522        $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
     523        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     524        $(VBOX_LIB_SUPR0)
     525 if1of ($(VBOX_LDR_FMT), pe lx)
     526  tstLdrObjR0_LIBS += \
     527        $(TARGET_tstLdr-4Imp)
     528 endif
     529
     530 tstLdr-4_TEMPLATE = VBoxR3TstExe
     531 tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
     532 tstLdr-4_DEFS = IN_DIS
     533 tstLdr-4_LIBS = \
     534        $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
     535
     536 tstLdrLoad_TEMPLATE = VBoxR3TstExe
     537 tstLdrLoad_SOURCES = tstLdrLoad.cpp
     538
     539 tstRTLdrVerifyPeImage_TEMPLATE = VBoxR3TstExe
     540 tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
     541
     542 tstRTList_TEMPLATE = VBoxR3TstExe
     543 tstRTList_SOURCES = tstRTList.cpp
     544
     545 tstRTLocalIpc_TEMPLATE = VBoxR3TstExe
     546 tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
     547
     548 tstRTLockValidator_TEMPLATE = VBoxR3TstExe
     549 tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
     550
     551 ifndef VBOX_ONLY_VALIDATIONKIT
     552  tstLog_TEMPLATE     = VBoxR3TstExe
     553  tstLog_SOURCES      = tstLog.cpp
     554  tstLog_INCS         = $(tstLog_0_OUTDIR)
     555  tstLog_INTERMEDIATES = $(tstLog_0_OUTDIR)/tstLogGroups.h
     556  tstLog_CLEAN        = $(tstLog_0_OUTDIR)/tstLogGroups.h
     557  $$(tstLog_0_OUTDIR)/tstLogGroups.h: $(PATH_ROOT)/include/VBox/log.h
    558558        $(call MSG_GENERATE,,$@,$<)
    559559        $(QUIET)$(RM) -f -- "$@"
    560560        $(QUIET)$(SED) -n -e 's/^ *LOG_GROUP_\([A-Z0-9_]*\),.*$(DOLLAR)/{ LOG_GROUP_\1, "\1" },/p' --output "$@" "$<"
    561 endif # !VBOX_ONLY_VALIDATIONKIT
    562 
    563 tstRTMemEf_TEMPLATE = VBoxR3TstExe
    564 tstRTMemEf_SOURCES = tstRTMemEf.cpp
    565 
    566 tstRTMemCache_TEMPLATE = VBoxR3TstExe
    567 tstRTMemCache_SOURCES = tstRTMemCache.cpp
    568 
    569 tstRTMemPool_TEMPLATE = VBoxR3TstExe
    570 tstRTMemPool_SOURCES = tstRTMemPool.cpp
    571 
    572 tstRTMemWipe_TEMPLATE = VBoxR3TstExe
    573 tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
    574 
    575 tstRTMemSafer_TEMPLATE = VBoxR3TstExe
    576 tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
    577 
    578 tstMove_TEMPLATE = VBoxR3TstExe
    579 tstMove_SOURCES = tstMove.cpp
    580 
    581 tstRTMp-1_TEMPLATE = VBoxR3TstExe
    582 tstRTMp-1_SOURCES = tstRTMp-1.cpp
    583 
    584 tstRTNetIPv4_TEMPLATE = VBoxR3TstExe
    585 tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
    586 
    587 tstRTNetIPv6_TEMPLATE = VBoxR3TstExe
    588 tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
    589 
    590 tstNoCrt-1_TEMPLATE = VBoxR3TstExe
    591 tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
    592 tstNoCrt-1_SOURCES = \
    593         tstNoCrt-1.cpp \
    594         ../common/string/memcpy.asm \
    595         ../common/string/mempcpy.asm \
    596         ../common/string/memmove.asm \
    597         ../common/string/memset.asm \
    598         ../common/string/memchr.asm \
    599         ../common/string/memcmp.asm \
    600         ../common/string/strchr.asm \
    601         ../common/string/strcmp.asm \
    602         ../common/string/strcpy.asm \
    603         ../common/string/strlen.asm \
    604         ../common/string/wcslen.asm
    605 
    606 tstRTNoCrt-2_TEMPLATE = VBoxR3TstExe
    607 tstRTNoCrt-2_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
    608 tstRTNoCrt-2_INCS = ../include
    609 tstRTNoCrt-2_SDKS = VBoxSoftFloatR3Shared
    610 tstRTNoCrt-2_SOURCES = \
    611         tstRTNoCrt-2.cpp \
    612        \
    613         ../common/math/copysign.cpp \
    614         ../common/math/copysignf.cpp \
    615         ../common/math/copysignl.cpp \
    616         ../common/math/fma.cpp \
    617         ../common/math/fmaf.cpp \
    618         ../common/math/fmax.cpp \
    619         ../common/math/fmaxf.cpp \
    620         ../common/math/fmaxl.cpp \
    621         ../common/math/fmin.cpp \
    622         ../common/math/fminf.cpp \
    623         ../common/math/fminl.cpp \
    624         ../common/math/isinf.cpp \
    625         ../common/math/isnan.cpp \
    626         ../common/math/isnanf.cpp \
    627         ../common/math/llround.cpp \
    628         ../common/math/llroundf.cpp \
    629         ../common/math/lround.cpp \
    630         ../common/math/lroundf.cpp \
    631         ../common/math/nocrt-abs.cpp \
    632         ../common/math/nocrt-labs.cpp \
    633         ../common/math/nocrt-llabs.cpp \
    634         ../common/math/round.cpp \
    635         ../common/math/roundf.cpp \
    636         ../common/math/frexp.cpp \
    637         ../common/math/frexpf.cpp \
    638         ../common/math/frexpl.cpp \
    639         ../common/math/__fpclassifyd.cpp \
    640         ../common/math/__fpclassifyf.cpp \
    641         ../common/math/__fpclassifyl.cpp \
    642         ../common/math/__isfinite.cpp \
    643         ../common/math/__isfinitef.cpp \
    644         ../common/math/__isfinitel.cpp \
    645         ../common/math/__isinff.cpp \
    646         ../common/math/__isinfl.cpp \
    647         ../common/math/__isnanl.cpp \
    648         ../common/math/__isnormal.cpp \
    649         ../common/math/__isnormalf.cpp \
    650         ../common/math/__isnormall.cpp \
    651         ../common/math/__signbit.cpp \
    652         ../common/math/__signbitf.cpp \
    653         ../common/math/__signbitl.cpp
    654 
    655 if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
    656 tstRTNoCrt-2_SOURCES.x86 += \
     561 endif # !VBOX_ONLY_VALIDATIONKIT
     562
     563 tstRTMemEf_TEMPLATE = VBoxR3TstExe
     564 tstRTMemEf_SOURCES = tstRTMemEf.cpp
     565
     566 tstRTMemCache_TEMPLATE = VBoxR3TstExe
     567 tstRTMemCache_SOURCES = tstRTMemCache.cpp
     568
     569 tstRTMemPool_TEMPLATE = VBoxR3TstExe
     570 tstRTMemPool_SOURCES = tstRTMemPool.cpp
     571
     572 tstRTMemWipe_TEMPLATE = VBoxR3TstExe
     573 tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
     574
     575 tstRTMemSafer_TEMPLATE = VBoxR3TstExe
     576 tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
     577
     578 tstMove_TEMPLATE = VBoxR3TstExe
     579 tstMove_SOURCES = tstMove.cpp
     580
     581 tstRTMp-1_TEMPLATE = VBoxR3TstExe
     582 tstRTMp-1_SOURCES = tstRTMp-1.cpp
     583
     584 tstRTNetIPv4_TEMPLATE = VBoxR3TstExe
     585 tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
     586
     587 tstRTNetIPv6_TEMPLATE = VBoxR3TstExe
     588 tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
     589
     590 tstNoCrt-1_TEMPLATE = VBoxR3TstExe
     591 tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
     592 tstNoCrt-1_SOURCES = \
     593        tstNoCrt-1.cpp \
     594        ../common/string/memcpy.asm \
     595        ../common/string/mempcpy.asm \
     596        ../common/string/memmove.asm \
     597        ../common/string/memset.asm \
     598        ../common/string/memchr.asm \
     599        ../common/string/memcmp.asm \
     600        ../common/string/strchr.asm \
     601        ../common/string/strcmp.asm \
     602        ../common/string/strcpy.asm \
     603        ../common/string/strlen.asm \
     604        ../common/string/wcslen.asm
     605
     606 tstRTNoCrt-2_TEMPLATE = VBoxR3TstExe
     607 tstRTNoCrt-2_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
     608 tstRTNoCrt-2_INCS = ../include
     609 tstRTNoCrt-2_SDKS = VBoxSoftFloatR3Shared
     610 tstRTNoCrt-2_SOURCES = \
     611        tstRTNoCrt-2.cpp \
     612        \
     613        ../common/math/copysign.cpp \
     614        ../common/math/copysignf.cpp \
     615        ../common/math/copysignl.cpp \
     616        ../common/math/fma.cpp \
     617        ../common/math/fmaf.cpp \
     618        ../common/math/fmax.cpp \
     619        ../common/math/fmaxf.cpp \
     620        ../common/math/fmaxl.cpp \
     621        ../common/math/fmin.cpp \
     622        ../common/math/fminf.cpp \
     623        ../common/math/fminl.cpp \
     624        ../common/math/isinf.cpp \
     625        ../common/math/isnan.cpp \
     626        ../common/math/isnanf.cpp \
     627        ../common/math/llround.cpp \
     628        ../common/math/llroundf.cpp \
     629        ../common/math/lround.cpp \
     630        ../common/math/lroundf.cpp \
     631        ../common/math/nocrt-abs.cpp \
     632        ../common/math/nocrt-labs.cpp \
     633        ../common/math/nocrt-llabs.cpp \
     634        ../common/math/round.cpp \
     635        ../common/math/roundf.cpp \
     636        ../common/math/frexp.cpp \
     637        ../common/math/frexpf.cpp \
     638        ../common/math/frexpl.cpp \
     639        ../common/math/__fpclassifyd.cpp \
     640        ../common/math/__fpclassifyf.cpp \
     641        ../common/math/__fpclassifyl.cpp \
     642        ../common/math/__isfinite.cpp \
     643        ../common/math/__isfinitef.cpp \
     644        ../common/math/__isfinitel.cpp \
     645        ../common/math/__isinff.cpp \
     646        ../common/math/__isinfl.cpp \
     647        ../common/math/__isnanl.cpp \
     648        ../common/math/__isnormal.cpp \
     649        ../common/math/__isnormalf.cpp \
     650        ../common/math/__isnormall.cpp \
     651        ../common/math/__signbit.cpp \
     652        ../common/math/__signbitf.cpp \
     653        ../common/math/__signbitl.cpp
     654
     655 if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
     656  tstRTNoCrt-2_SOURCES.x86 += \
    657657        ../common/math/rtNoCrtHasSse.asm
    658 tstRTNoCrt-2_SOURCES += \
    659         ../common/math/atan.asm \
    660         ../common/math/atan2.asm \
    661         ../common/math/atan2f.asm \
    662         ../common/math/atanf.asm \
    663         ../common/math/ceil.asm \
    664         ../common/math/ceilf.asm \
    665         ../common/math/cos.asm \
    666         ../common/math/cosf.asm \
    667         ../common/math/cosl.asm \
    668         ../common/math/exp.asm \
    669         ../common/math/expf.asm \
    670         ../common/math/exp2.asm \
    671         ../common/math/exp2f.asm \
    672         ../common/math/fabs.asm \
    673         ../common/math/fabsf.asm \
     658  tstRTNoCrt-2_SOURCES += \
     659        ../common/math/atan.asm \
     660        ../common/math/atan2.asm \
     661        ../common/math/atan2f.asm \
     662        ../common/math/atanf.asm \
     663        ../common/math/ceil.asm \
     664        ../common/math/ceilf.asm \
     665        ../common/math/cos.asm \
     666        ../common/math/cosf.asm \
     667        ../common/math/cosl.asm \
     668        ../common/math/exp.asm \
     669        ../common/math/expf.asm \
     670        ../common/math/exp2.asm \
     671        ../common/math/exp2f.asm \
     672        ../common/math/fabs.asm \
     673        ../common/math/fabsf.asm \
    674674        ../common/math/fegetenv.asm \
    675675        ../common/math/fesetenv.asm \
     
    687687        ../common/math/fetestexcept.asm \
    688688        ../common/math/feraiseexcept.asm \
    689         ../common/math/floor.asm \
    690         ../common/math/floorf.asm \
    691         ../common/math/fma-asm.asm \
    692         ../common/math/fmaf-asm.asm \
    693         ../common/math/ldexp.asm \
    694         ../common/math/ldexpf.asm \
    695         ../common/math/llrint.asm \
    696         ../common/math/llrintf.asm \
    697         ../common/math/log.asm \
    698         ../common/math/logf.asm \
    699         ../common/math/log2.asm \
    700         ../common/math/log2f.asm \
    701         ../common/math/lrint.asm \
    702         ../common/math/lrintf.asm \
    703         ../common/math/pow.asm \
    704         ../common/math/powf.asm \
    705         ../common/math/powcore.asm \
    706         ../common/math/remainder.asm \
    707         ../common/math/remainderf.asm \
    708         ../common/math/rint.asm \
    709         ../common/math/rintf.asm \
    710         ../common/math/sin.asm \
    711         ../common/math/sinf.asm \
    712         ../common/math/sincore.asm \
    713         ../common/math/sqrt.asm \
    714         ../common/math/sqrtf.asm \
    715         ../common/math/tan.asm \
    716         ../common/math/tanf.asm \
    717         ../common/math/trunc.asm \
    718         ../common/math/truncf.asm
    719 endif
    720 
    721 #
    722 # For testing no-CRT exception handling we need to use the static build,
    723 # assuming ofc that VBOX_WITH_NOCRT_STATIC is in effect.
    724 #
    725 TEMPLATE_VBoxR3TstExeStatic         := Testcase for the static (no-CRT) libraries.
    726 TEMPLATE_VBoxR3TstExeStatic_EXTENDS := VBoxR3Static
    727 TEMPLATE_VBoxR3TstExeStatic_INST     = $(INST_TESTCASE)
    728 
    729 tstRTNoCrt-3_TEMPLATE := VBoxR3TstExeStatic
    730 tstRTNoCrt-3_SOURCES  := tstRTNoCrt-3.cpp
    731 
    732 tstRTNoCrt-3r_TEMPLATE := VBoxR3TstExe
    733 tstRTNoCrt-3r_SOURCES  := tstRTNoCrt-3.cpp
    734 
    735 tstRTNoCrt-4_TEMPLATE := VBoxR3TstExe
    736 tstRTNoCrt-4_SOURCES  := tstRTNoCrt-4.cpp
    737 
    738 tstRTNtPath-1_TEMPLATE = VBoxR3TstExe
    739 tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
    740 
    741 tstOnce_TEMPLATE = VBoxR3TstExe
    742 tstOnce_SOURCES = tstOnce.cpp
    743 
    744 tstRTPath_TEMPLATE = VBoxR3TstExe
    745 tstRTPath_SOURCES = tstRTPath.cpp
    746 
    747 tstRTPathFindCommon_TEMPLATE = VBoxR3TstExe
    748 tstRTPathFindCommon_SOURCES = tstRTPathFindCommon.cpp
    749 
    750 tstRTPathGlob_TEMPLATE = VBoxR3TstExe
    751 tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
    752 
    753 tstRTPathQueryInfo_TEMPLATE = VBoxR3TstExe
    754 tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
    755 
    756 tstRTPipe_TEMPLATE = VBoxR3TstExe
    757 tstRTPipe_SOURCES = tstRTPipe.cpp
    758 
    759 tstRTPoll_TEMPLATE = VBoxR3TstExe
    760 tstRTPoll_SOURCES  = tstRTPoll.cpp
    761 
    762 tstPrfRT_TEMPLATE = VBoxR3TstExe
    763 tstPrfRT_SOURCES = tstPrfRT.cpp
    764 tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
    765 tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
    766 
    767 tstRTPrfIO_TEMPLATE = VBoxR3TstExe
    768 tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
    769 
    770 tstRTProcCreateEx_TEMPLATE = VBoxR3TstExe
    771 tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
    772 
    773 tstRTProcCreatePrf_TEMPLATE = VBoxR3TstExe
    774 tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
    775 
    776 tstRTProcQueryUsername_TEMPLATE = VBoxR3TstExe
    777 tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
    778 
    779 tstRTProcWait_TEMPLATE = VBoxR3TstExe
    780 tstRTProcWait_SOURCES = tstRTProcWait.cpp
    781 
    782 tstRTProcIsRunningByName_TEMPLATE = VBoxR3TstExe
    783 tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
    784 
    785 tstRand_TEMPLATE = VBoxR3TstExe
    786 tstRand_SOURCES = tstRand.cpp
    787 
    788 tstRTReqPool_TEMPLATE = VBoxR3TstExe
    789 tstRTReqPool_SOURCES = tstRTReqPool.cpp
    790 
    791 tstSemMutex_TEMPLATE = VBoxR3TstExe
    792 tstSemMutex_SOURCES = tstSemMutex.cpp
    793 
    794 tstRTSemEvent_TEMPLATE = VBoxR3TstExe
    795 tstRTSemEvent_SOURCES = tstRTSemEvent.cpp
    796 
    797 tstRTSemEventMulti_TEMPLATE = VBoxR3TstExe
    798 tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
    799 
    800 tstRTSemRW_TEMPLATE = VBoxR3TstExe
    801 tstRTSemRW_SOURCES = tstRTSemRW.cpp
    802 
    803 tstSemPingPong_TEMPLATE = VBoxR3TstExe
    804 tstSemPingPong_SOURCES = tstSemPingPong.cpp
    805 
    806 tstRTSemXRoads_TEMPLATE = VBoxR3TstExe
    807 tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
    808 
    809 tstRTSort_TEMPLATE = VBoxR3TstExe
    810 tstRTSort_SOURCES = tstRTSort.cpp
    811 
    812 tstRTStrAlloc_TEMPLATE = VBoxR3TstExe
    813 tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
    814 
    815 tstRTStrCache_TEMPLATE = VBoxR3TstExe
    816 tstRTStrCache_SOURCES = tstRTStrCache.cpp
    817 
    818 tstRTStrCatCopy_TEMPLATE = VBoxR3TstExe
    819 tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
    820 
    821 tstRTStrFormat_TEMPLATE = VBoxR3TstExe
    822 tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
    823 
    824 tstRTStrSplit_TEMPLATE = VBoxR3TstExe
    825 tstRTStrSplit_SOURCES = tstRTStrSplit.cpp
    826 
    827 tstRTStrSimplePattern_TEMPLATE = VBoxR3TstExe
    828 tstRTStrSimplePattern_SOURCES = tstRTStrSimplePattern.cpp
    829 
    830 tstStrToNum_TEMPLATE = VBoxR3TstExe
    831 tstStrToNum_SOURCES = tstStrToNum.cpp
    832 
    833 tstRTStrVersion_TEMPLATE = VBoxR3TstExe
    834 tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
    835 
    836 tstRTSymlink_TEMPLATE = VBoxR3TstExe
    837 tstRTSymlink_SOURCES = tstRTSymlink.cpp
    838 
    839 tstRTSystemQueryDmi_TEMPLATE = VBoxR3TstExe
    840 tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
    841 
    842 tstRTSystemQueryFirmware_TEMPLATE = VBoxR3TstExe
    843 tstRTSystemQueryFirmware_SOURCES = tstRTSystemQueryFirmware.cpp
    844 
    845 tstRTSystemQueryOsInfo_TEMPLATE = VBoxR3TstExe
    846 tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
    847 
    848 tstRTTcp-1_TEMPLATE = VBoxR3TstExe
    849 tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
    850 
    851 tstRTTemp_TEMPLATE = VBoxR3TstExe
    852 tstRTTemp_SOURCES = tstRTTemp.cpp
    853 
    854 tstRTDirCreateUniqueNumbered_TEMPLATE = VBoxR3TstExe
    855 tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
    856 
    857 tstTermCallbacks_TEMPLATE = VBoxR3TstExe
    858 tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
    859 
    860 tstThread-1_TEMPLATE = VBoxR3TstExe
    861 tstThread-1_SOURCES = tstThread-1.cpp
    862 
    863 tstRTThreadPoke_TEMPLATE = VBoxR3TstExe
    864 tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
    865 
    866 tstRTThreadExecutionTime_TEMPLATE = VBoxR3TstExe
    867 tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
    868 
    869 tstRTTime_TEMPLATE = VBoxR3TstExe
    870 tstRTTime_SOURCES = tstRTTime.cpp
    871 
    872 tstRTTls-1_TEMPLATE = VBoxR3TstExe
    873 tstRTTls-1_SOURCES = tstRTTls-1.cpp
    874 
    875 tstRTTraceLog_TEMPLATE = VBoxR3TstExe
    876 tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
    877 
    878 tstTime-2_TEMPLATE = VBoxR3TstExe
    879 tstTime-2_SOURCES = tstTime-2.cpp
    880 
    881 tstTime-3_TEMPLATE = VBoxR3TstExe
    882 tstTime-3_SOURCES = tstTime-3.cpp
    883 
    884 tstTime-4_TEMPLATE = VBoxR3TstExe
    885 tstTime-4_SOURCES = tstTime-4.cpp
    886 
    887 tstTimer_TEMPLATE = VBoxR3TstExe
    888 tstTimer_SOURCES = tstTimer.cpp
    889 
    890 tstRTTimerLR_TEMPLATE = VBoxR3TstExe
    891 tstRTTimerLR_SOURCES = tstRTTimerLR.cpp
    892 
    893 tstRTTimeSpec_TEMPLATE = VBoxR3TstExe
    894 tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
    895 
    896 tstTSC_SOURCES = tstTSC.cpp
    897 tstTSC_CXXFLAGS.linux += -O3
    898 
    899 tstRTUuid_TEMPLATE = VBoxR3TstExe
    900 tstRTUuid_SOURCES = tstRTUuid.cpp
    901 
    902 tstRTUdp-1_TEMPLATE = VBoxR3TstExe
    903 tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
    904 
    905 tstUtf8_TEMPLATE = VBoxR3TstExe
    906 tstUtf8_SOURCES = tstUtf8.cpp
    907 
    908 tstRTCircBuf_TEMPLATE = VBoxR3TstExe
    909 tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
    910 
    911 tstRTManifest_TEMPLATE = VBoxR3TstExe
    912 tstRTManifest_SOURCES = tstRTManifest.cpp
    913 
    914 tstRTMath_TEMPLATE = VBoxR3TstExe
    915 tstRTMath_SOURCES  = \
    916         tstRTMath.cpp \
    917         ../common/math/gcc/udivmoddi4.c
    918 
    919 tstRTUri_TEMPLATE = VBoxR3TstExe
    920 tstRTUri_SOURCES = tstRTUri.cpp
    921 
    922 tstRTVfs_TEMPLATE = VBoxR3TstExe
    923 tstRTVfs_SOURCES = tstRTVfs.cpp
    924 
    925 tstRTCoreDump_TEMPLACE = VBoxR3TstExe
    926 tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
    927 
    928 tstVector_TEMPLATE = VBoxR3TstExe
    929 tstVector_SOURCES = tstVector.cpp
    930 
    931 
    932 tstRTZip_TEMPLATE = VBoxR3TstExe
    933 tstRTZip_SOURCES = tstRTZip.cpp
    934 
    935 tstRTJson_TEMPLATE = VBoxR3TstExe
    936 tstRTJson_SOURCES = tstRTJson.cpp
    937 
    938 tstRTShMem_TEMPLATE = VBoxR3TstExe
    939 tstRTShMem_SOURCES = tstRTShMem.cpp
    940 
    941 #
    942 # Ring-0 testcases.
    943 #
    944 
    945 ## @todo create a template for compiling the ring-0 part.
    946 tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
    947 tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
    948 tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
    949 tstRTR0DbgKrnlInfo_SYSSUFF = .r0
    950 tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
    951 tstRTR0DbgKrnlInfo_LIBS = \
    952         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    953         $(VBOX_LIB_SUPR0)
    954 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    955  tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
    956  tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
    957  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    958   tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0DbgKrnlInfoDriver"
     689        ../common/math/floor.asm \
     690        ../common/math/floorf.asm \
     691        ../common/math/fma-asm.asm \
     692        ../common/math/fmaf-asm.asm \
     693        ../common/math/ldexp.asm \
     694        ../common/math/ldexpf.asm \
     695        ../common/math/llrint.asm \
     696        ../common/math/llrintf.asm \
     697        ../common/math/log.asm \
     698        ../common/math/logf.asm \
     699        ../common/math/log2.asm \
     700        ../common/math/log2f.asm \
     701        ../common/math/lrint.asm \
     702        ../common/math/lrintf.asm \
     703        ../common/math/pow.asm \
     704        ../common/math/powf.asm \
     705        ../common/math/powcore.asm \
     706        ../common/math/remainder.asm \
     707        ../common/math/remainderf.asm \
     708        ../common/math/rint.asm \
     709        ../common/math/rintf.asm \
     710        ../common/math/sin.asm \
     711        ../common/math/sinf.asm \
     712        ../common/math/sincore.asm \
     713        ../common/math/sqrt.asm \
     714        ../common/math/sqrtf.asm \
     715        ../common/math/tan.asm \
     716        ../common/math/tanf.asm \
     717        ../common/math/trunc.asm \
     718        ../common/math/truncf.asm
     719 endif
     720
     721 #
     722 # For testing no-CRT exception handling we need to use the static build,
     723 # assuming ofc that VBOX_WITH_NOCRT_STATIC is in effect.
     724 #
     725 TEMPLATE_VBoxR3TstExeStatic        := Testcase for the static (no-CRT) libraries.
     726 TEMPLATE_VBoxR3TstExeStatic_EXTENDS := VBoxR3Static
     727 TEMPLATE_VBoxR3TstExeStatic_INST    = $(INST_TESTCASE)
     728
     729 tstRTNoCrt-3_TEMPLATE := VBoxR3TstExeStatic
     730 tstRTNoCrt-3_SOURCES := tstRTNoCrt-3.cpp
     731
     732 tstRTNoCrt-3r_TEMPLATE := VBoxR3TstExe
     733 tstRTNoCrt-3r_SOURCES := tstRTNoCrt-3.cpp
     734
     735 tstRTNoCrt-4_TEMPLATE := VBoxR3TstExe
     736 tstRTNoCrt-4_SOURCES := tstRTNoCrt-4.cpp
     737
     738 tstRTNtPath-1_TEMPLATE = VBoxR3TstExe
     739 tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
     740
     741 tstOnce_TEMPLATE = VBoxR3TstExe
     742 tstOnce_SOURCES = tstOnce.cpp
     743
     744 tstRTPath_TEMPLATE = VBoxR3TstExe
     745 tstRTPath_SOURCES = tstRTPath.cpp
     746
     747 tstRTPathFindCommon_TEMPLATE = VBoxR3TstExe
     748 tstRTPathFindCommon_SOURCES = tstRTPathFindCommon.cpp
     749
     750 tstRTPathGlob_TEMPLATE = VBoxR3TstExe
     751 tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
     752
     753 tstRTPathQueryInfo_TEMPLATE = VBoxR3TstExe
     754 tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
     755
     756 tstRTPipe_TEMPLATE = VBoxR3TstExe
     757 tstRTPipe_SOURCES = tstRTPipe.cpp
     758
     759 tstRTPoll_TEMPLATE = VBoxR3TstExe
     760 tstRTPoll_SOURCES = tstRTPoll.cpp
     761
     762 tstPrfRT_TEMPLATE = VBoxR3TstExe
     763 tstPrfRT_SOURCES = tstPrfRT.cpp
     764 tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
     765 tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
     766
     767 tstRTPrfIO_TEMPLATE = VBoxR3TstExe
     768 tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
     769
     770 tstRTProcCreateEx_TEMPLATE = VBoxR3TstExe
     771 tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
     772
     773 tstRTProcCreatePrf_TEMPLATE = VBoxR3TstExe
     774 tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
     775
     776 tstRTProcQueryUsername_TEMPLATE = VBoxR3TstExe
     777 tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
     778
     779 tstRTProcWait_TEMPLATE = VBoxR3TstExe
     780 tstRTProcWait_SOURCES = tstRTProcWait.cpp
     781
     782 tstRTProcIsRunningByName_TEMPLATE = VBoxR3TstExe
     783 tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
     784
     785 tstRand_TEMPLATE = VBoxR3TstExe
     786 tstRand_SOURCES = tstRand.cpp
     787
     788 tstRTReqPool_TEMPLATE = VBoxR3TstExe
     789 tstRTReqPool_SOURCES = tstRTReqPool.cpp
     790
     791 tstSemMutex_TEMPLATE = VBoxR3TstExe
     792 tstSemMutex_SOURCES = tstSemMutex.cpp
     793
     794 tstRTSemEvent_TEMPLATE = VBoxR3TstExe
     795 tstRTSemEvent_SOURCES = tstRTSemEvent.cpp
     796
     797 tstRTSemEventMulti_TEMPLATE = VBoxR3TstExe
     798 tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
     799
     800 tstRTSemRW_TEMPLATE = VBoxR3TstExe
     801 tstRTSemRW_SOURCES = tstRTSemRW.cpp
     802
     803 tstSemPingPong_TEMPLATE = VBoxR3TstExe
     804 tstSemPingPong_SOURCES = tstSemPingPong.cpp
     805
     806 tstRTSemXRoads_TEMPLATE = VBoxR3TstExe
     807 tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
     808
     809 tstRTSort_TEMPLATE = VBoxR3TstExe
     810 tstRTSort_SOURCES = tstRTSort.cpp
     811
     812 tstRTStrAlloc_TEMPLATE = VBoxR3TstExe
     813 tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
     814
     815 tstRTStrCache_TEMPLATE = VBoxR3TstExe
     816 tstRTStrCache_SOURCES = tstRTStrCache.cpp
     817
     818 tstRTStrCatCopy_TEMPLATE = VBoxR3TstExe
     819 tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
     820
     821 tstRTStrFormat_TEMPLATE = VBoxR3TstExe
     822 tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
     823
     824 tstRTStrSplit_TEMPLATE = VBoxR3TstExe
     825 tstRTStrSplit_SOURCES = tstRTStrSplit.cpp
     826
     827 tstRTStrSimplePattern_TEMPLATE = VBoxR3TstExe
     828 tstRTStrSimplePattern_SOURCES = tstRTStrSimplePattern.cpp
     829
     830 tstStrToNum_TEMPLATE = VBoxR3TstExe
     831 tstStrToNum_SOURCES = tstStrToNum.cpp
     832
     833 tstRTStrVersion_TEMPLATE = VBoxR3TstExe
     834 tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
     835
     836 tstRTSymlink_TEMPLATE = VBoxR3TstExe
     837 tstRTSymlink_SOURCES = tstRTSymlink.cpp
     838
     839 tstRTSystemQueryDmi_TEMPLATE = VBoxR3TstExe
     840 tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
     841
     842 tstRTSystemQueryFirmware_TEMPLATE = VBoxR3TstExe
     843 tstRTSystemQueryFirmware_SOURCES = tstRTSystemQueryFirmware.cpp
     844
     845 tstRTSystemQueryOsInfo_TEMPLATE = VBoxR3TstExe
     846 tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
     847
     848 tstRTTcp-1_TEMPLATE = VBoxR3TstExe
     849 tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
     850
     851 tstRTTemp_TEMPLATE = VBoxR3TstExe
     852 tstRTTemp_SOURCES = tstRTTemp.cpp
     853
     854 tstRTDirCreateUniqueNumbered_TEMPLATE = VBoxR3TstExe
     855 tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
     856
     857 tstTermCallbacks_TEMPLATE = VBoxR3TstExe
     858 tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
     859
     860 tstThread-1_TEMPLATE = VBoxR3TstExe
     861 tstThread-1_SOURCES = tstThread-1.cpp
     862
     863 tstRTThreadPoke_TEMPLATE = VBoxR3TstExe
     864 tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
     865
     866 tstRTThreadExecutionTime_TEMPLATE = VBoxR3TstExe
     867 tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
     868
     869 tstRTTime_TEMPLATE = VBoxR3TstExe
     870 tstRTTime_SOURCES = tstRTTime.cpp
     871
     872 tstRTTls-1_TEMPLATE = VBoxR3TstExe
     873 tstRTTls-1_SOURCES = tstRTTls-1.cpp
     874
     875 tstRTTraceLog_TEMPLATE = VBoxR3TstExe
     876 tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
     877
     878 tstTime-2_TEMPLATE = VBoxR3TstExe
     879 tstTime-2_SOURCES = tstTime-2.cpp
     880
     881 tstTime-3_TEMPLATE = VBoxR3TstExe
     882 tstTime-3_SOURCES = tstTime-3.cpp
     883
     884 tstTime-4_TEMPLATE = VBoxR3TstExe
     885 tstTime-4_SOURCES = tstTime-4.cpp
     886
     887 tstTimer_TEMPLATE = VBoxR3TstExe
     888 tstTimer_SOURCES = tstTimer.cpp
     889
     890 tstRTTimerLR_TEMPLATE = VBoxR3TstExe
     891 tstRTTimerLR_SOURCES = tstRTTimerLR.cpp
     892
     893 tstRTTimeSpec_TEMPLATE = VBoxR3TstExe
     894 tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
     895
     896 tstTSC_SOURCES = tstTSC.cpp
     897 tstTSC_CXXFLAGS.linux += -O3
     898
     899 tstRTUuid_TEMPLATE = VBoxR3TstExe
     900 tstRTUuid_SOURCES = tstRTUuid.cpp
     901
     902 tstRTUdp-1_TEMPLATE = VBoxR3TstExe
     903 tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
     904
     905 tstUtf8_TEMPLATE = VBoxR3TstExe
     906 tstUtf8_SOURCES = tstUtf8.cpp
     907
     908 tstRTCircBuf_TEMPLATE = VBoxR3TstExe
     909 tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
     910
     911 tstRTManifest_TEMPLATE = VBoxR3TstExe
     912 tstRTManifest_SOURCES = tstRTManifest.cpp
     913
     914 tstRTMath_TEMPLATE = VBoxR3TstExe
     915 tstRTMath_SOURCES = \
     916        tstRTMath.cpp \
     917        ../common/math/gcc/udivmoddi4.c
     918
     919 tstRTUri_TEMPLATE = VBoxR3TstExe
     920 tstRTUri_SOURCES = tstRTUri.cpp
     921
     922 tstRTVfs_TEMPLATE = VBoxR3TstExe
     923 tstRTVfs_SOURCES = tstRTVfs.cpp
     924
     925 tstRTCoreDump_TEMPLACE = VBoxR3TstExe
     926 tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
     927
     928 tstVector_TEMPLATE = VBoxR3TstExe
     929 tstVector_SOURCES = tstVector.cpp
     930
     931
     932 tstRTZip_TEMPLATE = VBoxR3TstExe
     933 tstRTZip_SOURCES = tstRTZip.cpp
     934
     935 tstRTJson_TEMPLATE = VBoxR3TstExe
     936 tstRTJson_SOURCES = tstRTJson.cpp
     937
     938 tstRTShMem_TEMPLATE = VBoxR3TstExe
     939 tstRTShMem_SOURCES = tstRTShMem.cpp
     940
     941 #
     942 # Ring-0 testcases.
     943 #
     944
     945 ## @todo create a template for compiling the ring-0 part.
     946 tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
     947 tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
     948 tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
     949 tstRTR0DbgKrnlInfo_SYSSUFF = .r0
     950 tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
     951 tstRTR0DbgKrnlInfo_LIBS = \
     952        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     953        $(VBOX_LIB_SUPR0)
     954 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     955  tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     956  tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
     957  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     958   tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0DbgKrnlInfoDriver"
     959  else
     960   tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
     961  endif
     962  tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
     963  tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
    959964 else
    960   tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
    961  endif
    962  tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    963  tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
    964 else
     965  tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
     966 endif
    965967 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
    966 endif
    967 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
    968 tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
    969 
    970 
    971 tstRTR0MemUserKernel_TEMPLATE = VBoxR0
    972 tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
    973 tstRTR0MemUserKernel_DEFS = IN_RT_R0
    974 tstRTR0MemUserKernel_SYSSUFF = .r0
    975 tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
    976 tstRTR0MemUserKernel_LIBS = \
    977         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    978         $(VBOX_LIB_SUPR0)
    979 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    980  tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
    981  tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
    982  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    983   tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0MemUserKernelDriver"
     968 tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
     969
     970
     971 tstRTR0MemUserKernel_TEMPLATE = VBoxR0
     972 tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
     973 tstRTR0MemUserKernel_DEFS = IN_RT_R0
     974 tstRTR0MemUserKernel_SYSSUFF = .r0
     975 tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
     976 tstRTR0MemUserKernel_LIBS = \
     977        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     978        $(VBOX_LIB_SUPR0)
     979 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     980  tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     981  tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
     982  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     983   tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0MemUserKernelDriver"
     984  else
     985   tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
     986  endif
     987  tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
     988  tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
    984989 else
    985   tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
    986  endif
    987  tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    988  tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
    989 else
    990  tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3TstExe
    991 endif
    992 tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
    993 
    994 
    995 tstRTR0SemMutex_TEMPLATE = VBoxR0
    996 tstRTR0SemMutex_INST = $(INST_TESTCASE)
    997 tstRTR0SemMutex_DEFS = IN_RT_R0
    998 tstRTR0SemMutex_SYSSUFF = .r0
    999 tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
    1000 tstRTR0SemMutex_LIBS = \
    1001         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    1002         $(VBOX_LIB_SUPR0)
    1003 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    1004  tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
    1005  tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
    1006  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    1007   tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0SemMutexDriver"
     990  tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3TstExe
     991 endif
     992 tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
     993
     994
     995 tstRTR0SemMutex_TEMPLATE = VBoxR0
     996 tstRTR0SemMutex_INST = $(INST_TESTCASE)
     997 tstRTR0SemMutex_DEFS = IN_RT_R0
     998 tstRTR0SemMutex_SYSSUFF = .r0
     999 tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
     1000 tstRTR0SemMutex_LIBS = \
     1001        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     1002        $(VBOX_LIB_SUPR0)
     1003 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     1004  tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     1005  tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
     1006  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     1007   tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0SemMutexDriver"
     1008  else
     1009   tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
     1010  endif
     1011  tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
     1012  tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
    10081013 else
    1009   tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
    1010  endif
    1011  tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    1012  tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
    1013 else
    1014  tstRTR0SemMutexDriver_TEMPLATE = VBoxR3TstExe
    1015 endif
    1016 tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
    1017 
    1018 
    1019 tstRTR0Thread_TEMPLATE = VBoxR0
    1020 tstRTR0Thread_INST = $(INST_TESTCASE)
    1021 tstRTR0Thread_DEFS = IN_RT_R0
    1022 tstRTR0Thread_SYSSUFF = .r0
    1023 tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
    1024 tstRTR0Thread_LIBS = \
    1025         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    1026         $(VBOX_LIB_SUPR0)
    1027 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    1028  tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
    1029  tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
    1030  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    1031   tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadDriver"
     1014  tstRTR0SemMutexDriver_TEMPLATE = VBoxR3TstExe
     1015 endif
     1016 tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
     1017
     1018
     1019 tstRTR0Thread_TEMPLATE = VBoxR0
     1020 tstRTR0Thread_INST = $(INST_TESTCASE)
     1021 tstRTR0Thread_DEFS = IN_RT_R0
     1022 tstRTR0Thread_SYSSUFF = .r0
     1023 tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
     1024 tstRTR0Thread_LIBS = \
     1025        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     1026        $(VBOX_LIB_SUPR0)
     1027 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     1028  tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     1029  tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
     1030  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     1031   tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadDriver"
     1032  else
     1033   tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
     1034  endif
     1035  tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
     1036  tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
    10321037 else
    1033   tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
    1034  endif
    1035  tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    1036  tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
    1037 else
    1038  tstRTR0ThreadDriver_TEMPLATE = VBoxR3TstExe
    1039 endif
    1040 tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
    1041 
    1042 
    1043 tstRTR0Timer_TEMPLATE = VBoxR0
    1044 tstRTR0Timer_INST = $(INST_TESTCASE)
    1045 tstRTR0Timer_DEFS = IN_RT_R0
    1046 tstRTR0Timer_SYSSUFF = .r0
    1047 tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
    1048 tstRTR0Timer_LIBS = \
    1049         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    1050         $(VBOX_LIB_SUPR0)
    1051 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    1052  tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
    1053  tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
    1054  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    1055   tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0TimerDriver"
     1038  tstRTR0ThreadDriver_TEMPLATE = VBoxR3TstExe
     1039 endif
     1040 tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
     1041
     1042
     1043 tstRTR0Timer_TEMPLATE = VBoxR0
     1044 tstRTR0Timer_INST = $(INST_TESTCASE)
     1045 tstRTR0Timer_DEFS = IN_RT_R0
     1046 tstRTR0Timer_SYSSUFF = .r0
     1047 tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
     1048 tstRTR0Timer_LIBS = \
     1049        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     1050        $(VBOX_LIB_SUPR0)
     1051 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     1052  tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     1053  tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
     1054  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     1055   tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0TimerDriver"
     1056  else
     1057   tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
     1058  endif
     1059  tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
     1060  tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
    10561061 else
    1057   tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
    1058  endif
    1059  tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    1060  tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
    1061 else
    1062  tstRTR0TimerDriver_TEMPLATE = VBoxR3TstExe
    1063 endif
    1064 tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
    1065 
    1066 
    1067 tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
    1068 tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
    1069 tstRTR0ThreadPreemption_DEFS = IN_RT_R0
    1070 tstRTR0ThreadPreemption_SYSSUFF = .r0
    1071 tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
    1072 tstRTR0ThreadPreemption_LIBS = \
    1073         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    1074         $(VBOX_LIB_SUPR0)
    1075 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    1076  tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
    1077  tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
    1078  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    1079   tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadPreemptionDriver"
     1062  tstRTR0TimerDriver_TEMPLATE = VBoxR3TstExe
     1063 endif
     1064 tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
     1065
     1066
     1067 tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
     1068 tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
     1069 tstRTR0ThreadPreemption_DEFS = IN_RT_R0
     1070 tstRTR0ThreadPreemption_SYSSUFF = .r0
     1071 tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
     1072 tstRTR0ThreadPreemption_LIBS = \
     1073        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     1074        $(VBOX_LIB_SUPR0)
     1075 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     1076  tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     1077  tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
     1078  ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     1079   tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadPreemptionDriver"
     1080  else
     1081   tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
     1082  endif
     1083  tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
     1084  tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
    10801085 else
    1081   tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
    1082  endif
    1083  tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
    1084  tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
    1085 else
    1086  tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3TstExe
    1087 endif
    1088 tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
    1089 
    1090 
    1091 #
    1092 # Odds and ends.
    1093 #
    1094 
    1095 tstDarwinSched_TEMPLATE = VBoxR3TstExe
    1096 tstDarwinSched_SOURCES = tstDarwinSched.cpp
    1097 
    1098 tstRTDarwinMachKernel_TEMPLATE = VBoxR3TstExe
    1099 tstRTDarwinMachKernel_INCS     = ../include
    1100 tstRTDarwinMachKernel_SOURCES  = \
    1101         tstRTDarwinMachKernel.cpp \
    1102         ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
    1103 
    1104 ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
    1105 ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
    1106 
    1107 
    1108 #
    1109 # ValKit versions of selected tests.
    1110 #
    1111 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
    1112  define def_valkit_unittest_iprt
    1113   PROGRAMS += $(unittest)-ValKit
    1114   $(unittest)-ValKit_TEMPLATE := VBoxValidationKitR3TstExe
    1115   $(unittest)-ValKit_EXTENDS  := $(unittest)
    1116   $(unittest)-ValKit_NAME     := $(unittest)
    1117  endef
    1118  $(foreach unittest, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $($(VALKIT_UNITTESTS_WHITELIST_IPRT).$(KBUILD_TARGET)) \
     1086  tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3TstExe
     1087 endif
     1088 tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
     1089
     1090
     1091 #
     1092 # Odds and ends.
     1093 #
     1094
     1095 tstDarwinSched_TEMPLATE = VBoxR3TstExe
     1096 tstDarwinSched_SOURCES = tstDarwinSched.cpp
     1097
     1098 tstRTDarwinMachKernel_TEMPLATE = VBoxR3TstExe
     1099 tstRTDarwinMachKernel_INCS    = ../include
     1100 tstRTDarwinMachKernel_SOURCES = \
     1101        tstRTDarwinMachKernel.cpp \
     1102        ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
     1103
     1104 ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
     1105 ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
     1106
     1107
     1108 #
     1109 # ValKit versions of selected tests.
     1110 #
     1111 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
     1112  define def_valkit_unittest_iprt
     1113   PROGRAMS += $(unittest)-ValKit
     1114   $(unittest)-ValKit_TEMPLATE := VBoxValidationKitR3TstExe
     1115   $(unittest)-ValKit_EXTENDS := $(unittest)
     1116   $(unittest)-ValKit_NAME    := $(unittest)
     1117  endef
     1118  $(foreach unittest, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $($(VALKIT_UNITTESTS_WHITELIST_IPRT).$(KBUILD_TARGET)) \
    11191119        ,$(evalcall2 def_valkit_unittest_iprt))
    1120 endif
     1120 endif
    11211121
    11221122endif # VBOX_WITH_TESTCASES
  • trunk/src/VBox/Runtime/tools/Makefile.kmk

    r98241 r98409  
    4141if !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_DOCS)
    4242 # RTIsoMaker - ISO image maker - build version.
    43  ifeq ($(KBUILD_TARGET), win) # Needed for repacking guest additions.
     43 ifeq ($(KBUILD_TARGET),win) # Needed for repacking guest additions.
    4444  PROGRAMS += bldRTIsoMaker
    4545  bldRTIsoMaker_INSTTYPE = stage
     
    5050 bldRTIsoMaker_SOURCES = \
    5151        RTIsoMaker.cpp \
    52         ../common/misc/buildconfig.cpp
     52        ../common/misc/buildconfig.cpp
    5353 bldRTIsoMaker_DEFS = \
    5454        IPRT_BLDCFG_SCM_REV=$(if $(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV)) \
     
    5858 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    5959  bldRTIsoMaker_DEFS += \
    60         IPRT_BLDCFG_VERSION_STRING="$(VBOX_VERSION_STRING)" \
    61         IPRT_BLDCFG_TARGET="$(KBUILD_TARGET)" \
    62         IPRT_BLDCFG_TARGET_ARCH="$(KBUILD_TARGET_ARCH)" \
    63         IPRT_BLDCFG_TYPE="$(KBUILD_TYPE)"
     60        IPRT_BLDCFG_VERSION_STRING="$(VBOX_VERSION_STRING)" \
     61        IPRT_BLDCFG_TARGET="$(KBUILD_TARGET)" \
     62        IPRT_BLDCFG_TARGET_ARCH="$(KBUILD_TARGET_ARCH)" \
     63        IPRT_BLDCFG_TYPE="$(KBUILD_TYPE)"
    6464 else
    6565  bldRTIsoMaker_DEFS += \
    66         IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
    67         IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
    68         IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
    69         IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
     66        IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
     67        IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
     68        IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
     69        IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
    7070 endif
    7171 bldRTIsoMaker_INCS = ../include
     
    8989  bldRTSignTool_DEFS      := IPRT_IN_BUILD_TOOL
    9090  bldRTSignTool_LDFLAGS.darwin := \
    91         -framework CoreFoundation \
    92         -framework Security
     91        -framework CoreFoundation \
     92        -framework Security
    9393  bldRTSignTool_LIBS.win  := Crypt32.lib NCrypt.lib
    9494  ifndef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING
     
    9898   bldRTSignTool_DEFS     += IPRT_WITH_OPENSSL
    9999   bldRTSignTool_SOURCES  += \
    100        ../common/crypto/pkix-signature-builtin.cpp \
    101        ../common/crypto/store.cpp \
    102        ../common/crypto/digest-builtin.cpp \
    103         ../common/crypto/iprt-openssl.cpp\
    104        ../common/crypto/key.cpp \
    105        ../common/crypto/key-file.cpp \
    106         ../common/crypto/key-openssl.cpp \
    107         ../common/crypto/pkcs7-sign.cpp \
    108         ../common/crypto/RTCrRandBytes-openssl.cpp
     100        ../common/crypto/pkix-signature-builtin.cpp \
     101        ../common/crypto/store.cpp \
     102        ../common/crypto/digest-builtin.cpp \
     103        ../common/crypto/iprt-openssl.cpp \
     104        ../common/crypto/key.cpp \
     105        ../common/crypto/key-file.cpp \
     106        ../common/crypto/key-openssl.cpp \
     107        ../common/crypto/pkcs7-sign.cpp \
     108        ../common/crypto/RTCrRandBytes-openssl.cpp
    109109   if1of ($(KBUILD_HOST), darwin win)
    110110    bldRTSignTool_SOURCES += ../r3/$(KBUILD_HOST)/RTCrStoreCreateSnapshotById-$(KBUILD_HOST).cpp
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette