Changeset 6752 in vbox
- Timestamp:
- Feb 2, 2008 7:21:42 AM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r6511 r6752 18 18 19 19 DEPTH = ../../.. 20 include $(PATH_KBUILD)/header.kmk 21 22 SUBDIRS_AFTER = testcase 23 ifdef VBOX_WITH_WEBSERVICES 24 SUBDIRS_AFTER += webservice 25 endif 26 27 ifndef VBOX_OSE 28 DEFS += VBOX_WITH_E1000 29 endif 30 31 LIBRARIES = VBoxCOM 32 DLLS = VBoxSettings VBoxC 33 PROGRAMS = VBoxSVC 20 include $(PATH_KBUILD)/subheader.kmk 21 22 # The KMK_OPTS_JOBS is a kmk v0.1.3 feature. Fake it for now. 23 ifndef KMK_OPTS_JOBS 24 KMK_OPTS_JOBS = 1 25 endif 26 27 # Include sub-makefile(s) first if we're doing parallel building. 28 # This is primarily a hack to try avoid idling all but one cpu when 29 # building the gigant soap sources. 30 ifneq ($(KMK_OPTS_JOBS),1) 31 ifndef VBOX_OSE 32 include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk 33 endif 34 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk 35 endif 36 37 # targets++ 38 LIBRARIES += VBoxCOM 39 DLLS += VBoxSettings VBoxC 40 PROGRAMS += VBoxSVC 41 VBOX_MAIN_DEFS = 34 42 ifneq ($(BUILD_TARGET),win) 35 43 ifndef VBOX_WITH_XPCOM … … 38 46 DLLS += VBoxSVCM 39 47 ifneq ($(BUILD_TARGET),os2) 40 DEFS+= VBOX_WITH_SYS_V_IPC_SESSION_WATCHER48 VBOX_MAIN_DEFS+= VBOX_WITH_SYS_V_IPC_SESSION_WATCHER 41 49 endif 42 DEFS += VBOX_WITH_UNIXY_TAP_NETWORKING 43 endif 44 50 VBOX_MAIN_DEFS += VBOX_WITH_UNIXY_TAP_NETWORKING 51 endif 52 ifndef VBOX_OSE 53 VBOX_MAIN_DEFS += VBOX_WITH_E1000 54 endif 55 ## @todo eliminate or expand VBOX_MAIN_DEFS. 56 57 #PROGRAMS += tstCFGLdr 45 58 46 59 ifeq ($(BUILD_TARGET),win) 47 OTHERS 60 OTHERS += $(PATH_BIN)/comregister.cmd 48 61 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox.idl 49 OTHER_CLEAN 50 $(PATH_BIN)/comregister.cmd \51 52 53 54 55 56 57 62 OTHER_CLEAN += \ 63 $(PATH_BIN)/comregister.cmd \ 64 $(VBOX_PATH_SDK)/include/VirtualBox.h \ 65 $(IDLFILE) \ 66 $(VBOX_PATH_SDK)/lib/VirtualBox.tlb \ 67 $(VBOX_PATH_SDK)/lib/VirtualBox_i.c \ 68 $(PATH_VBoxCOM)/VirtualBox.h \ 69 $(PATH_VBoxCOM)/VirtualBox_i.c \ 70 $(PATH_VBoxCOM)/VirtualBox.tlb 58 71 else 59 INSTALLS 72 INSTALLS += xpcom-components 60 73 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox_XPCOM.idl 61 74 ifeq ($(BUILD_TARGET),linux) … … 65 78 endif 66 79 IDLHEADER = $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h 67 OTHERS 68 OTHER_CLEAN 80 OTHERS += $(IDLTYPELIB) 81 OTHER_CLEAN += \ 69 82 $(IDLFILE) \ 70 83 $(IDLHEADER) \ 71 84 $(IDLTYPELIB) 72 85 86 endif 87 88 # Include sub-makefile(s) last if we're not doing parallel building. 89 ifeq ($(KMK_OPTS_JOBS),1) 90 ifndef VBOX_OSE 91 include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk 92 endif 93 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk 73 94 endif 74 95 … … 99 120 # VBoxSVC executable 100 121 # 101 102 122 VBoxSVC_TEMPLATE = VBOXMAINEXE 103 VBoxSVC_DEFS = VBOX_MAIN_SETTINGS_ADDONS 123 VBoxSVC_DEFS = VBOX_MAIN_SETTINGS_ADDONS $(VBOX_MAIN_DEFS) 104 124 ifdef VBOX_WITH_VRDP 105 125 VBoxSVC_DEFS += VBOX_VRDP … … 236 256 # VBoxSVC wrapper module 237 257 # 238 239 258 ifdef VBOX_WITH_XPCOM 240 259 … … 243 262 VBoxSVCM_INST = $(INST_BIN)components/ 244 263 endif 245 VBoxSVCM_DEFS = IN_RING3 264 VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS) 246 265 VBoxSVCM_INCS = \ 247 266 include \ … … 267 286 # VBoxC module 268 287 # 269 270 288 VBoxC_TEMPLATE = VBOXMAINDLL 271 289 ifneq ($(filter-out linux win,$(BUILD_TARGET)),) … … 273 291 endif 274 292 275 VBoxC_DEFS = IN_RING3 293 VBoxC_DEFS = IN_RING3 $(VBOX_MAIN_DEFS) 276 294 VBoxC_DEFS += VBOX_COM_INPROC 277 295 … … 390 408 # VBoxSettings 391 409 # 392 393 410 VBoxSettings_TEMPLATE = VBOXMAINDLL 394 411 VBoxSettings_NAME = $(basename $(notdir $(LIB_SETTINGS))) … … 406 423 # VBoxCOM - COM Abstraction Layer library 407 424 # 408 409 425 VBoxCOM_TEMPLATE = VBOXMAINLIB 410 426 VBoxCOM_SOURCES = \ … … 519 535 520 536 # generate 521 include $(PATH_KBUILD)/ footer.kmk537 include $(PATH_KBUILD)/subfooter.kmk 522 538 523 539 … … 573 589 # 574 590 # What needs to be done is to not depend on _i.c in the object subdir, but on all the final outputs. 575 $(PATH_VBoxCOM)/VirtualBox_i.c: $(IDLFILE) | $(call DIRDEP,$(PATH_VBoxCOM)) 591 $(PATH_VBoxCOM)/VirtualBox_i.c \ 592 + $(VBOX_PATH_SDK)/lib/VirtualBox_i.c \ 593 + $(PATH_VBoxCOM)/VirtualBox.h \ 594 + $(VBOX_PATH_SDK)/include/VirtualBox.h \ 595 + $(PATH_VBoxCOM)/VirtualBox.tlb \ 596 + $(VBOX_PATH_SDK)/lib/VirtualBox.tlb: $(IDLFILE) | $(call DIRDEP,$(PATH_VBoxCOM)) 576 597 $(MAIN_IDL) $(IDL_DEFS) \ 577 598 /out $(subst /,\\,$(PATH_VBoxCOM)) \ -
trunk/src/VBox/Main/testcase/Makefile.kmk
r5999 r6752 16 16 # 17 17 18 DEPTH = ../../../.. 19 include $(PATH_KBUILD)/header.kmk 18 DEPTH ?= ../../../.. 19 SUB_DEPTH = .. 20 include $(PATH_KBUILD)/subheader.kmk 20 21 21 22 ifdef VBOX_WITH_TESTCASES 22 PROGRAMS = tstAPI23 PROGRAMS.linux = tstVBoxAPILinux24 PROGRAMS.win = tstVBoxAPIWin23 PROGRAMS += tstAPI 24 PROGRAMS.linux += tstVBoxAPILinux 25 PROGRAMS.win += tstVBoxAPIWin 25 26 else ifeq ($(USERNAME),dmik) 26 PROGRAMS = tstAPI27 PROGRAMS.linux = tstVBoxAPILinux28 PROGRAMS.win = tstVBoxAPIWin27 PROGRAMS += tstAPI 28 PROGRAMS.linux += tstVBoxAPILinux 29 PROGRAMS.win += tstVBoxAPIWin 29 30 endif # VBOX_WITH_TESTCASES 30 31 31 INSTALLS = samples32 INSTALLS += samples 32 33 33 34 # … … 50 51 tstAPI_TEMPLATE = VBOXMAINCLIENTEXE 51 52 tstAPI_SOURCES = tstAPI.cpp 53 ifeq ($(BUILD_TARGET),win) ## @todo just add this to the template. 54 tstAPI_DEPS = $(VBOX_PATH_SDK)/include/VirtualBox.h 55 else 56 tstAPI_DEPS = $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h 57 endif 58 52 59 53 60 # … … 65 72 tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM) 66 73 tstVBoxAPILinux_LIBS = $(LIB_XPCOM) 74 tstVBoxAPILinux_DEPS = \ 75 $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h 67 76 68 77 # … … 73 82 tstVBoxAPIWin.cpp \ 74 83 $(PATH_BIN)/sdk/lib/VirtualBox_i.c 84 tstVBoxAPIWin_DEPS = \ 85 $(VBOX_PATH_SDK)/include/VirtualBox.h 75 86 76 87 # generate rules. 77 include $(PATH_KBUILD)/ footer.kmk88 include $(PATH_KBUILD)/subfooter.kmk 78 89
Note:
See TracChangeset
for help on using the changeset viewer.