Changeset 5976 in vbox
- Timestamp:
- Dec 6, 2007 4:25:40 AM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
r5898 r5976 6 6 # 7 7 # Copyright (C) 2006-2007 innotek GmbH 8 # 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as 10 10 # available from http://www.virtualbox.org. This file is free software; … … 66 66 67 67 # 1. create vbetables.h 68 $(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) 69 ifdef KMK_USE_REDIRECT 68 $(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) $(TARGET_vbetables-gen) 70 69 $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen) 71 else72 $(QUIET)$(TARGET_vbetables-gen) > $@73 endif74 70 75 71 # 2. precompile 76 72 $(PATH_TARGET)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $(PATH_TARGET)/vbetables.h 77 73 $(call MSG_TOOL,cpp,VgaBiosBin,$<,$@) 78 ifdef KMK_USE_REDIRECT79 74 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -o $@ $< 80 else81 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -E -P $< -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) > $@82 endif83 75 84 76 # 3. compile - tempfile clashes, so make sure it's built in solitude. … … 91 83 $(PATH_TARGET)/vgabios1.s: $(PATH_TARGET)/vgabios0.s 92 84 $(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@) 93 ifdef KMK_NEW_SED94 85 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 95 else96 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@97 endif98 86 99 87 # 5. assemble 100 88 $(PATH_TARGET)/vgabios.tmp $(PATH_TARGET)/vgabios.lst: $(PATH_TARGET)/vgabios1.s 101 89 $(call MSG_COMPILE,VgaBiosBin,$<,$@,AS) 102 ifdef KMK_USE_REDIRECT103 90 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst 104 else105 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst < $^106 endif107 91 108 92 # 6. checksums -
trunk/src/VBox/Devices/PC/BIOS/Makefile.kmk
r5898 r5976 6 6 # 7 7 # Copyright (C) 2006-2007 innotek GmbH 8 # 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as 10 10 # available from http://www.virtualbox.org. This file is free software; … … 63 63 $(PATH_TARGET)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S | $(call DIRDEP,$(TARGET_PATH)) 64 64 $(call MSG_TOOL,cpp,PcBiosBin,$<,$@) 65 ifdef KMK_USE_REDIRECT66 65 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P -o $@ $< 67 else68 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P $< > $@69 endif70 66 71 67 # 2. compile to intermediate asm file - tempfile clashes, make sure it's built alone. … … 78 74 $(PATH_TARGET)/rombios1.s: $(PATH_TARGET)/rombios0.s 79 75 $(call MSG_TOOL,Adjusting BCC Assembly,PcBiosBin,$<,$@) 80 ifdef KMK_NEW_SED81 76 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 82 else83 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@84 endif85 77 86 78 # 4. assemble the intermediate asm file. (also creates a listing rombios.lst) 87 79 $(PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.lst: $(PATH_TARGET)/rombios1.s 88 80 $(call MSG_COMPILE,PcBiosBin,$<,$@,AS) 89 ifdef KMK_USE_REDIRECT90 81 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst 91 else92 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst < $^93 endif94 82 95 83 # 5. calculate checksums for the final BIOS image. … … 102 90 $(PATH_TARGET)/pcbios-syms.h: $(PATH_TARGET)/pcbios.lst $(MAKEFILE_CURRENT) 103 91 $(call MSG_GENERATE,PcBiosBin,$<,$@) 104 ifdef KMK_NEW_SED105 92 $(QUIET)$(SED) \ 106 93 -e '/^[0-9][0-9][0-9][0-9][0-9] 000[0-9A-F]* [[:space:]]*[a-zA-Z0-9_]*:/!d' \ 107 94 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 108 95 --output $@ \ 109 $(PATH_TARGET)/pcbios.lst 110 else 111 $(QUIET)$(SED) \ 112 -e '/^[0-9][0-9][0-9][0-9][0-9] 000[0-9A-F]* [[:space:]]*[a-zA-Z0-9_]*:/!d' \ 113 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 114 $(PATH_TARGET)/pcbios.lst > $@ 115 endif 96 $(PATH_TARGET)/pcbios.lst 116 97 117 98 -
trunk/src/VBox/Devices/testcase/Makefile.kmk
r5898 r5976 6 6 # 7 7 # Copyright (C) 2006-2007 innotek GmbH 8 # 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as 10 10 # available from http://www.virtualbox.org. This file is free software; … … 87 87 $(PATH_TARGET)/tstDeviceStructSizeGC.h: $$(INSTARGET_tstDeviceStructSizeGC) 88 88 $(call MSG_GENERATE,,$@) 89 ifdef KMK_USE_REDIRECT90 89 $(QUIET)$(REDIRECT) -wo $@ -- $(INSTARGET_tstDeviceStructSizeGC) 91 else92 $(QUIET)$(INSTARGET_tstDeviceStructSizeGC) > $@93 endif94 90 95 91 # 3. run it. -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r5933 r5976 329 329 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@) 330 330 $(QUIET)$(RM) -f $@ 331 ifdef KMK_NEW_SED332 331 $(QUIET)$(SED) \ 333 332 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ … … 336 335 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ 337 336 --output $@ $< 338 else339 $(QUIET)$(SED) \340 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \341 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \342 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \343 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \344 $< > $@345 endif346 337 347 338 # -
trunk/src/VBox/Main/Makefile.kmk
r5903 r5976 86 86 $(RM) -f $(wildcard $(PATH_OUT)/docs/Main/html/*) 87 87 $(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl idl/doxygen.xsl idl/VirtualBox.xidl 88 ifdef KMK_USE_REDIRECT89 88 $(REDIRECT) -E 'PATH_OUT=$(PATH_OUT)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(PATH_BIN)/VirtualBoxAPI.chm)' \ 90 89 -- doxygen Doxyfile.Main 91 else92 PATH_OUT="$(PATH_OUT)" PATH_TARGET="$(PATH_TARGET)" PATH_CHM="$(subst /,\\,$(PATH_BIN)/VirtualBoxAPI.chm)" doxygen Doxyfile.Main93 endif94 90 -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(PATH_OUT)/docs/Main/html/index.hhp) 95 91 $(APPEND) $(PATH_TARGET)/docs.Main -
trunk/src/VBox/Runtime/Makefile.kmk
r5897 r5976 1075 1075 $(call MSG_GENERATE,,$@,$(filter %.h,$^)) 1076 1076 $(QUIET)$(MKDIR) -p $(PATH_TARGET) 1077 ifdef KMK_USE_REDIRECT1078 1077 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^) 1079 else 1080 $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@ 1081 endif 1078 1082 1079 ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors. 1083 1080 $(PATH_TARGET)/errmsgcomdata.h: common/err/errmsgcom.sed $(PATH_SDK_WINPSDK_INC)/WinError.h 1084 1081 $(call MSG_GENERATE,,$@,$(filter %.h,$^)) 1085 1082 $(QUIET)$(MKDIR) -p $(PATH_TARGET) 1086 ifdef KMK_USE_REDIRECT1087 1083 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^) 1088 else 1089 $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@ 1090 endif 1084 1091 1085 $(PATH_TARGET)/errmsgxpcomdata.h: common/err/errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h 1092 1086 $(call MSG_GENERATE,,$@,$(filter %.h,$^)) 1093 1087 $(QUIET)$(MKDIR) -p $(PATH_TARGET) 1094 ifdef KMK_USE_REDIRECT1095 1088 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^) 1096 else1097 $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@1098 endif1099 1089 1100 1090 -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r5904 r5976 236 236 ifndef DONT_USE_YASM 237 237 $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $< 238 ifdef KMK_NEW_SED239 238 $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed --output $@ [email protected] 240 else241 $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed [email protected] > $@242 endif243 239 else 244 240 $(QUIET)$(TOOL_NASM_AS) -g $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $< … … 266 262 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 267 263 $(QUIET)$(RM) -f $@ [email protected] [email protected] 268 ifdef KMK_USE_REDIRECT269 264 $(QUIET)$(REDIRECT) -wo [email protected] -- $(VBOX_NM) $< 270 else271 $(VBOX_NM) $< > [email protected]272 endif273 ifdef KMK_NEW_SED274 265 $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \ 275 266 -e '/00[0-9a-fA-F]* [aA] [^_.]*\./!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \ 276 --output [email protected] [email protected] 267 --output [email protected] [email protected] 277 268 $(QUIET)$(SED) -e '/VM_size$$/d' \ 278 269 -e '/00[0-9a-fA-F]* [aA] [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \ 279 270 --append [email protected] [email protected] 280 else281 $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \282 -e '/00[0-9a-fA-F]* [aA] [^_.]*\./!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \283 [email protected] > [email protected]284 $(QUIET)$(SED) -e '/VM_size$$/d' \285 -e '/00[0-9a-fA-F]* [aA] [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \286 [email protected] >> [email protected]287 endif288 271 $(QUIET)$(MV) -f [email protected] $@ 289 272 $(QUIET)$(RM) -f [email protected] … … 292 275 $(PATH_TARGET)/tstAsmStructsGC.h: $(PATH_TARGET)/tstAsmStructsHC.h 293 276 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 294 ifdef KMK_NEW_SED295 277 $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' --output $@ $^ 296 else297 $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' \298 $^ > $@299 endif300 278 301 279 ## @todo make this default kBuild behaviour. … … 318 296 $(PATH_TARGET)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC) 319 297 $(call MSG_GENERATE,tstVMStructSize,$@) 320 ifdef KMK_USE_REDIRECT321 298 $(QUIET)$(REDIRECT) -wo $@ -- $(INSTARGET_tstVMStructGC) 322 else323 $(QUIET)$(INSTARGET_tstVMStructGC) > $@324 endif325 299 326 300 # 2. run it.
Note:
See TracChangeset
for help on using the changeset viewer.