VirtualBox

Changeset 8727

Show
Ignore:
Timestamp:
05/09/08 00:58:01 (2 months ago)
Author:
vboxsync
Message:

sorted the stuff.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r8295 r8727  
    3333 
    3434ifdef VBOX_WITH_TESTCASES 
     35 
     36# 
     37# Globals 
     38# 
     39# WARNING: Careful with this wrt to the other sub-makefiles this joins. 
     40# 
     41TEMPLATE = VBOXR3TSTEXE 
     42 
     43 
     44# 
     45# Target lists 
     46# 
    3547PROGRAMS = \ 
    3648        tstAvl \ 
     
    7082        tstUtf8 \ 
    7183        tstUuid 
     84# tstSems 
    7285PROGRAMS.win = \ 
    7386        tstRTProcWait \ 
     
    8598        tstLdrObj \ 
    8699        tstLdrObjR0 
    87 ifeq ($(filter-out lx pe,$(VBOX_LDR_FMT)),
     100if1of ($(VBOX_LDR_FMT)), lx pe
    88101LIBRARIES += \ 
    89102        tstLdr-4Imp 
    90103endif 
    91104 
    92 # tstSems 
    93 endif # VBOX_WITH_TESTCASES 
    94  
    95  
    96 TEMPLATE = VBOXR3TSTEXE 
    97  
    98 tstTime_SOURCES = tstTime.cpp 
    99  
    100 tstTime-2_SOURCES = tstTime-2.cpp 
    101  
    102 tstTime-3_SOURCES = tstTime-3.cpp 
    103  
    104 tstTime-4_SOURCES = tstTime-4.cpp 
    105  
    106 tstTimeSpec_SOURCES = tstTimeSpec.cpp 
    107  
    108 tstTimer_SOURCES = tstTimer.cpp 
    109  
    110 tstTSC_SOURCES = tstTSC.cpp 
    111 tstTSC_CXXFLAGS.linux += -O3 
    112  
    113 tstStrFormat_SOURCES = tstStrFormat.cpp 
     105 
     106 
     107
     108# Target configs in almost alphabetical order. 
     109
     110 
     111tstAvl_SOURCES = tstAvl.cpp 
     112 
     113tstBitOperations_TEMPLATE = VBOXR3TSTEXE 
     114tstBitOperations_SOURCES = tstBitOperations.cpp 
     115 
     116tstBitOperationsPIC3_SOURCES = tstBitOperations.cpp 
     117tstBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3 
     118tstBitOperationsPIC3_DEFS = PIC 
    114119 
    115120tstCidr_SOURCES = tstCidr.cpp 
    116121 
    117 tstLog_SOURCES  = tstLog.cpp 
    118  
    119 tstPath_SOURCES = tstPath.cpp 
    120  
    121 tstSems_SOURCES = tstSems.cpp 
    122  
    123 tstSemMutex_SOURCES = tstSemMutex.cpp 
    124  
    125 tstAvl_SOURCES  = tstAvl.cpp 
     122tstCritSect_SOURCES = tstCritSect.cpp 
     123 
     124tstCritSectW32_SOURCES = tstCritSect.cpp 
     125tstCritSectW32_DEFS = TRY_WIN32_CRIT 
     126 
     127tstDeadlock_SOURCES = tstDeadlock.cpp 
     128 
     129tstDir_SOURCES = tstDir.cpp 
     130 
     131tstDir-2_SOURCES = tstDir-2.cpp 
     132 
     133tstEnv_SOURCES = tstEnv.cpp 
     134 
     135# Note: tstErrUnique.cpp depends on a header generated by the makefile above us. 
     136tstErrUnique_SOURCES = tstErrUnique.cpp 
     137tstErrUnique_INCS = $(PATH_TARGET)/.. 
     138tstErrUnique.cpp_DEPS = $(PATH_TARGET)/../errmsgdata.h 
    126139 
    127140tstFile_SOURCES = tstFile.cpp 
     
    129142tstFileLock_SOURCES = tstFileLock.cpp 
    130143 
    131 tstBitOperations_SOURCES = tstBitOperations.cpp 
    132  
    133 tstBitOperationsPIC3_SOURCES  = tstBitOperations.cpp 
    134 tstBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3 
    135 tstBitOperationsPIC3_DEFS     = PIC 
    136  
    137 tstInlineAsm_SOURCES     = tstInlineAsm.cpp 
    138  
    139 tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp 
     144tstGetOpt_SOURCES = tstGetOpt.cpp 
     145 
     146tstHeapSimple_SOURCES = tstHeapSimple.cpp 
     147 
     148tstIoCtl_SOURCES = tstIoCtl.cpp 
     149 
     150tstInlineAsm_SOURCES = tstInlineAsm.cpp 
     151 
     152tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp 
    140153tstInlineAsmPIC_CXXFLAGS = -fPIC 
    141 tstInlineAsmPIC_DEFS     = PIC 
    142  
    143 tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp 
     154tstInlineAsmPIC_DEFS = PIC 
     155 
     156tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp 
    144157tstInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3 
    145 tstInlineAsmPIC3_DEFS     = PIC 
    146  
    147 tstCritSect_SOURCES     = tstCritSect.cpp 
    148  
    149 tstCritSectW32_SOURCES  = tstCritSect.cpp 
    150 tstCritSectW32_DEFS     = TRY_WIN32_CRIT 
     158tstInlineAsmPIC3_DEFS = PIC 
    151159 
    152160tstLdr_SOURCES = tstLdr.cpp 
    153161 
    154162tstLdr-2_SOURCES = tstLdr-2.cpp 
    155 tstLdr-2_DEFS    = IN_DIS_R3 
    156 tstLdr-2_LIBS    = \ 
     163tstLdr-2_DEFS = IN_DIS_R3 
     164tstLdr-2_LIBS = \ 
    157165        $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 
    158166 
    159167tstLdrObj_TEMPLATE = VBOXGC 
    160 tstLdrObj_INST     = $(INST_TESTCASE) 
    161 tstLdrObj_SYSSUFF = .gc 
    162 tstLdrObj_SOURCES = tstLdrObj.cpp 
    163 tstLdrObj_DEFS     = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY 
     168tstLdrObj_INST = $(INST_TESTCASE) 
     169tstLdrObj_SYSSUFF = .gc 
     170tstLdrObj_SOURCES = tstLdrObj.cpp 
     171tstLdrObj_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY 
    164172ifeq ($(VBOX_LDR_FMT32),elf) 
    165 tstLdrObj_DEFS    += VBOX_SOME_IMPORT_FUNCTION 
    166 endif 
    167 tstLdrObj_LIBS     = \ 
     173tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION 
     174endif 
     175tstLdrObj_LIBS = \ 
    168176        $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \ 
    169177        $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB) 
    170178ifeq ($(VBOX_LDR_FMT32),pe) 
    171 tstLdrObj_LDFLAGS = -Entry:Entrypoint 
    172 tstLdrObj_LIBS    += \ 
     179tstLdrObj_LDFLAGS = -Entry:Entrypoint 
     180tstLdrObj_LIBS += \ 
    173181        $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) 
    174182endif # PE 
     
    177185endif 
    178186ifeq ($(VBOX_LDR_FMT32),lx) 
    179 tstLdrObj_LIBS    += \ 
     187tstLdrObj_LIBS += \ 
    180188        $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) 
    181189endif 
    182190 
    183  
    184191tstLdr-3_SOURCES = tstLdr-3.cpp 
    185 tstLdr-3_DEFS    = IN_DIS_R3 
    186 tstLdr-3_LIBS    = \ 
     192tstLdr-3_DEFS = IN_DIS_R3 
     193tstLdr-3_LIBS = \ 
    187194        $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 
    188195 
     
    195202 
    196203tstLdrObjR0_TEMPLATE = VBOXR0 
    197 tstLdrObjR0_INST     = $(INST_TESTCASE) 
    198 tstLdrObjR0_SYSSUFF = .r0 
    199 tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp 
    200 tstLdrObjR0_DEFS     = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY 
     204tstLdrObjR0_INST = $(INST_TESTCASE) 
     205tstLdrObjR0_SYSSUFF = .r0 
     206tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp 
     207tstLdrObjR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY 
    201208ifeq ($(VBOX_LDR_FMT32),elf) 
    202  tstLdrObjR0_DEFS   += VBOX_SOME_IMPORT_FUNCTION 
    203 endif 
    204 tstLdrObjR0_LIBS     = \ 
     209 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION 
     210endif 
     211tstLdrObjR0_LIBS = \ 
    205212        $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB) \ 
    206213        $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 
    207214ifeq ($(VBOX_LDR_FMT),pe) 
    208215 tstLdrObjR0_LDFLAGS = -Entry:Entrypoint 
    209  tstLdrObjR0_LIBS   += \ 
     216 tstLdrObjR0_LIBS += \ 
    210217        $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \ 
    211218        $(TARGET_tstLdr-4Imp) 
    212219endif 
    213220ifeq ($(VBOX_LDR_FMT),elf) 
    214   tstLdrObjR0_LDFLAGS = -e Entrypoint 
     221 tstLdrObjR0_LDFLAGS = -e Entrypoint 
    215222endif 
    216223ifeq ($(VBOX_LDR_FMT),lx) 
    217  tstLdrObjR0_LIBS   += \ 
     224 tstLdrObjR0_LIBS += \ 
    218225        $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \ 
    219226        $(TARGET_tstLdr-4Imp) 
     
    221228 
    222229tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp 
    223 tstLdr-4_DEFS    = IN_DIS_R3 
    224 tstLdr-4_LIBS    = \ 
     230tstLdr-4_DEFS = IN_DIS_R3 
     231tstLdr-4_LIBS = \ 
    225232        $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 
    226233 
    227234tstLdrLoad_SOURCES = tstLdrLoad.cpp 
    228235 
    229 tstPrfRT_SOURCES = tstPrfRT.cpp 
    230  
    231 tstRTProcWait_SOURCES = tstRTProcWait.cpp 
    232  
    233 tstStrToNum_SOURCES = tstStrToNum.cpp 
    234  
    235 tstUtf8_SOURCES     = tstUtf8.cpp 
    236  
    237 tstDir_SOURCES      = tstDir.cpp 
    238  
    239 tstDir-2_SOURCES    = tstDir-2.cpp 
    240  
    241 tstRTFsQueries_SOURCES = tstRTFsQueries.cpp 
    242  
    243 tstMove_SOURCES     = tstMove.cpp 
     236tstLog_SOURCES = tstLog.cpp 
     237 
     238tstMove_SOURCES = tstMove.cpp 
    244239 
    245240tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES 
     
    255250        ../common/string/strcmp.asm 
    256251 
     252tstPath_SOURCES = tstPath.cpp 
     253 
     254tstPrfRT_SOURCES = tstPrfRT.cpp 
     255 
     256tstRTFsQueries_SOURCES = tstRTFsQueries.cpp 
     257 
     258tstRTProcWait_SOURCES = tstRTProcWait.cpp 
     259 
     260tstSemMutex_SOURCES = tstSemMutex.cpp 
     261 
     262tstSems_SOURCES = tstSems.cpp 
     263 
     264tstStrFormat_SOURCES = tstStrFormat.cpp 
     265 
     266tstStrToNum_SOURCES = tstStrToNum.cpp 
     267 
     268tstTime_SOURCES = tstTime.cpp 
     269 
     270tstTime-2_SOURCES = tstTime-2.cpp 
     271 
     272tstTime-3_SOURCES = tstTime-3.cpp 
     273 
     274tstTime-4_SOURCES = tstTime-4.cpp 
     275 
     276tstTimer_SOURCES = tstTimer.cpp 
     277 
     278tstTimeSpec_SOURCES = tstTimeSpec.cpp 
     279 
     280tstTSC_SOURCES = tstTSC.cpp 
     281tstTSC_CXXFLAGS.linux += -O3 
     282 
     283tstUuid_SOURCES = tstUuid.cpp 
     284 
     285tstUtf8_SOURCES = tstUtf8.cpp 
     286 
    257287ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp 
    258 ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK  VBOX_NTDLL 
    259  
    260 tstIoCtl_SOURCES = tstIoCtl.cpp 
    261  
    262 tstDeadlock_SOURCES = tstDeadlock.cpp 
    263  
    264 tstUuid_SOURCES = tstUuid.cpp 
    265  
    266 tstEnv_SOURCES = tstEnv.cpp 
    267  
    268 tstErrUnique_SOURCES = tstErrUnique.cpp 
    269 tstErrUnique_INCS    = $(PATH_TARGET)/.. 
    270 ## tstErrUnique.cpp depends on a generated header. 
    271 tstErrUnique.cpp_DEPS = $(PATH_TARGET)/../errmsgdata.h 
    272  
    273 tstGetOpt_SOURCES = tstGetOpt.cpp 
    274  
    275 tstHeapSimple_SOURCES = tstHeapSimple.cpp 
     288ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL 
     289 
     290endif # VBOX_WITH_TESTCASES 
    276291 
    277292include $(PATH_KBUILD)/footer.kmk 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy