- Timestamp:
- May 30, 2007 9:26:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/Makefile.kmk
r2943 r2946 2 2 ## @file 3 3 # Top-level makefile for the VirtualBox Guest Additions. 4 # 5 # This makefile and all it's sub-makefiles are involved in remote 6 # building of additions that cannot be build locally. Typically 7 # tools/env.sh kmk -C src/VBox/Additions build-somehost-additions 8 # is send as a command and the source tree is accessed using an 9 # SMB mount. 10 # 11 # When doing these operations BUILD_TARGET remains the same (not 12 # yet true for linux), and it's therefore important that 13 # Config.kmk and all the involved (sub-)makefiles doesn't make 14 # assumptions about BUILD_TARGET being the same as the additions 15 # target. 4 16 # 5 17 … … 23 35 include $(PATH_KBUILD)/subheader.kmk 24 36 37 # 38 # Make some indicator adjustments to keep things simple in these makefiles. 39 # 40 ifdef VBOX_ADDITIONS_LINUX_ONLY 41 VBOX_ADDITIONS_XYZ_ONLY = 1 42 VBOX_WITH_LINUX_ADDITIONS = 1 43 VBOX_REMOTE_LINUX_ADDITIONS_BUILD = 44 VBOX_WITH_WIN32_ADDITIONS = 45 else ifdef VBOX_ADDITIONS_WIN32_ONLY 46 VBOX_ADDITIONS_XYZ_ONLY = 1 47 VBOX_WITH_WIN32_ADDITIONS = 1 48 VBOX_REMOTE_WIN32_ADDITIONS_BUILD = 49 VBOX_WITH_LINUX_ADDITIONS = 50 endif 51 25 52 # Include sub-makefiles. 26 53 include $(PATH_SUB_CURRENT)/common/Makefile.kmk 27 54 ifdef VBOX_WITH_WIN32_ADDITIONS 28 ifndef VBOX_REMOTE_ BUILD_WIN32_ADDITIONS55 ifndef VBOX_REMOTE_WIN32_ADDITIONS_BUILD 29 56 include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk 30 57 endif … … 32 59 33 60 ifdef VBOX_WITH_LINUX_ADDITIONS 34 SUBDIRS += linux35 LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run61 SUBDIRS += linux 62 LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run 36 63 endif 37 ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),) 38 PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso 64 LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run 65 ifdef VBOX_ADDITIONS_LINUX_CROSS 66 OTHER_CLEAN += $(LINUXINSTALLER_CROSS) 67 LINUXINSTALLER = $(LINUXINSTALLER_CROSS) 39 68 endif 40 69 41 LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run 42 # If the build (Windows host only, problem doesn't exist for Linux) should 43 # include Linux additions, set VBOX_ADDITIONS_LINUX_CROSS. This causes the 44 # Linux additions to be built via a ssh session (to the host specified in 45 # VBOX_ADDITIONS_LINUX_CROSS_HOST, usually set in LocalConfig.kmk. Needs 46 # eventually be generalized once more additions platforms are supported. 47 # This host has the Windows build box tree mounted, in order to make 100% sure 48 # that a complete build is created from a single consistent revision. 49 ifdef VBOX_ADDITIONS_LINUX_CROSS 50 OTHER_CLEAN += $(LINUXINSTALLER_CROSS) 51 LINUXINSTALLER = $(LINUXINSTALLER_CROSS) 70 # The packing target rule, but only if we're on the local build box. 71 ifndef VBOX_ADDITIONS_XYZ_ONLY 72 ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),) 73 PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso 74 endif 52 75 endif 53 54 76 55 77 include $(PATH_KBUILD)/subfooter.kmk … … 110 132 # Remote building. 111 133 # 112 ifdef VBOX_REMOTE_ BUILD_WIN32_ADDITIONS134 ifdef VBOX_REMOTE_WIN32_ADDITIONS_BUILD 113 135 OTHER_CLEAN += $(PATH_TARGET)/ts-remote-build-win32-additions 114 136 $(GUESTADDITIONS_WIN32_DEPS): $(PATH_TARGET)/ts-remote-build-win32-additions
Note:
See TracChangeset
for help on using the changeset viewer.