Changeset 1279 in vbox
- Timestamp:
- Mar 6, 2007 8:16:19 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19231
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/Makefile
r1210 r1279 21 21 DEPTH = ../../../.. 22 22 include $(PATH_KBUILD)/header.kmk 23 include $(PATH_KBUILD)/tools/MINGW32.kmk24 23 25 24 # 26 25 # Target lists. 27 26 # 28 #LIBRARIES = tstHelp 29 PROGRAMS = tstVMStructSize tstVMStructGC 30 ifneq ($(BUILD_TARGET),darwin) 31 PROGRAMS += tstAsmStructs tstAsmStructsGC 32 endif 33 PROGRAMS += tstVMM tstVMM-HwAccm 27 PROGRAMS = tstVMStructSize tstVMStructGC tstAsmStructs tstAsmStructsGC tstVMM tstVMM-HwAccm 34 28 ifdef VBOX_WITH_TESTCASES 35 PROGRAMS += tstCFGM tstSSM tstMMHyperHeap tstVMM-2 tstVMREQ tstMicro tstCompiler tstVMMR0CallHost-1 36 ifneq ($(BUILD_TARGET),l4) 37 PROGRAMS += tstAnimate 38 endif 39 #PROGRAMS += tstProg1 tstProg2 tstProg3 40 SYSMODS = tstMicroGC 29 PROGRAMS += tstCFGM tstSSM tstMMHyperHeap tstVMM-2 tstVMREQ tstMicro tstCompiler tstVMMR0CallHost-1 30 ifneq ($(BUILD_TARGET),l4) 31 PROGRAMS += tstAnimate 32 endif 33 SYSMODS = tstMicroGC 41 34 endif # VBOX_WITH_TESTCASES 42 35 … … 67 60 # Targets 68 61 # 69 tstHelp_TEMPLATE = VBOXLNX32GUESTR370 tstHelp_SOURCES = tstHelpA.asm tstHelp.c71 72 tstProg1_TEMPLATE = VBOXLNX32GUESTR373 tstProg1_SOURCES = tstProg-1.c tstProg-1A.asm74 tstProg1_LIBS = $(PATH_LIB)/tstHelp$(VBOX_SUFF_LIB)75 tstProg1_LDFLAGS.linux = -static76 77 tstProg2_TEMPLATE = VBOXLNX32GUESTR378 tstProg2_SOURCES = tstProg-2.c tstProg-2A.asm79 tstProg2_LDFLAGS.linux = -static80 81 tstProg3_TEMPLATE = VBOXLNX32GUESTR382 tstProg3_SOURCES = tstProg-3.c83 tstProg3_LDFLAGS.linux = -static84 85 86 62 tstVMStructGC_TEMPLATE = VBOXGCEXE 87 63 tstVMStructGC_DEFS = IN_VMM_GC IN_PDM_GC IN_CFGM_GC IN_IOM_GC IN_VM_GC IN_CPUM_GC IN_SELM_GC IN_PGM_GC IN_TRPM_GC IN_MM_GC IN_PDM_GC IN_DBGF_GC IN_PATM_GC IN_DIS_GC IN_STAM_GC IN_VGADEVICE_GC IN_CSAM_GC IN_SSM_GC IN_REM_GC IN_RRM_GC … … 185 161 ../TRPMInternal.mac \ 186 162 ../VMMInternal.mac \ 187 Makefile 163 Makefile \ 164 | $(call DIRDEP,$(PATH_TARGET)) 188 165 $(call MSG_L1,Compiling $<) 189 166 ifndef DONT_USE_YASM … … 197 174 $(DEFS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) \ 198 175 ) \ 199 -f elf -g stabs $(foreach inc,$(INCS),-I$(inc)/) -o $@ $< 176 -f $(if $(eq $(BUILD_TARGET),darwin),macho,elf) -g stabs \ 177 $(foreach inc,$(INCS),-I$(inc)/) -o $@ $< 200 178 else 201 179 $(QUIET)$(TOOL_NASM_AS) \ … … 208 186 $(DEFS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) \ 209 187 ) \ 210 -f elf $(foreach inc,$(INCS),-I$(inc)/) -o $@ $< 211 endif 212 213 # 2. use objdump and sed to transform this into the header we want. 188 -f $(if $(eq $(BUILD_TARGET),darwin),macho,elf) \ 189 $(foreach inc,$(INCS),-I$(inc)/) -o $@ $< 190 endif 191 192 # 2. use nm and sed to transform this into the header we want. 193 ifeq ($(BUILD_PLATFORM),win) 194 include $(PATH_KBUILD)/tools/MINGW32.kmk 195 VBOX_NM ?= $(PATH_TOOL_MINGW32)/bin/nm.exe -p 196 else 197 VBOX_NM ?= nm -p 198 endif 214 199 $(PATH_TARGET)/tstAsmStructsHC.h: $(PATH_TARGET)/tstAsmStructsAsm.o 215 200 $(call MSG_L1,Generating $@) 216 201 $(QUIET)$(RM) -f $@ [email protected] [email protected] 217 ifeq ($(BUILD_PLATFORM),win) 218 $(QUIET)$(PATH_TOOL_MINGW32)/bin/objdump.exe -x $< > [email protected] 219 else 220 $(QUIET)objdump -x $< > [email protected] 221 endif 202 $(VBOX_NM) $< > [email protected] 222 203 $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \ 223 -e '/ l[[:space:]]*\*ABS\*[[:space:]]*00000000[[:space:]]*[^_.]*\./!d' -e 's/^[0]*\(.*\) l.*00000000\([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \204 -e '/00[0-9a-fA-F]* a [^_.]*\./!d' -e 's/\(00[0-9a-fA-F]*\) a \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \ 224 205 [email protected] > [email protected] 225 206 $(QUIET)$(SED) -e '/VM_size$$/d' \ 226 -e '/ l[[:space:]]*\*ABS\*[[:space:]]*00000000[[:space:]]*[^_.]*\_size/!d' -e 's/^[0]*\(.*\) l.*00000000 \([^.]*\)\_size/ CHECK_SIZE(\2, 0x0\1);/' \207 -e '/00[0-9a-fA-F]* a [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) a \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \ 227 208 [email protected] >> [email protected] 228 209 $(QUIET)$(MV) -f [email protected] $@ … … 263 244 # alias for the two struct tests. 264 245 run-struct-tests: $(PATH_TARGET)/tstAsmStructs.run $(PATH_TARGET)/tstVMStructSize.run 265 246 run-asm-tests: $(PATH_TARGET)/tstAsmStructs.run 247 $(ECHO) $< 248
Note:
See TracChangeset
for help on using the changeset viewer.