[2478] | 1 | # $Id: Makefile.kmk 42838 2012-08-16 09:21:09Z vboxsync $
|
---|
| 2 | ## @file
|
---|
[6759] | 3 | # Sub-Makefile for VBoxManage (the cli frontend).
|
---|
[1] | 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[41477] | 7 | # Copyright (C) 2006-2012 Oracle Corporation
|
---|
[5999] | 8 | #
|
---|
| 9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
| 10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
| 11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
| 12 | # General Public License (GPL) as published by the Free Software
|
---|
| 13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
| 14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
| 15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
| 16 | #
|
---|
[1] | 17 |
|
---|
[10058] | 18 | SUB_DEPTH = ../../../..
|
---|
[8760] | 19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[1] | 20 |
|
---|
[38416] | 21 | ifdef VBOX_WITH_DOCS
|
---|
| 22 | PROGRAMS += VBoxManageHelp
|
---|
| 23 | endif
|
---|
| 24 | VBoxManageHelp_TEMPLATE = VBoxAdvBldProg
|
---|
| 25 | VBoxManageHelp_DEFS += VBOX_ONLY_DOCS
|
---|
| 26 | VBoxManageHelp_SOURCES = \
|
---|
[11703] | 27 | VBoxManage.cpp \
|
---|
[36630] | 28 | VBoxManageHelp.cpp \
|
---|
| 29 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
|
---|
[32712] | 30 | $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp)
|
---|
[38416] | 31 |
|
---|
| 32 | ifndef VBOX_ONLY_DOCS
|
---|
| 33 | PROGRAMS += VBoxManage
|
---|
| 34 | endif
|
---|
| 35 | VBoxManage_TEMPLATE = VBOXMAINCLIENTEXE
|
---|
| 36 | VBoxManage_DEFS.win = _WIN32_WINNT=0x0500
|
---|
| 37 | VBoxManage_SOURCES = \
|
---|
[36630] | 38 | VBoxManage.cpp \
|
---|
| 39 | VBoxInternalManage.cpp \
|
---|
[37402] | 40 | VBoxManageAppliance.cpp \
|
---|
| 41 | VBoxManageBandwidthControl.cpp \
|
---|
[36630] | 42 | VBoxManageControlVM.cpp \
|
---|
| 43 | VBoxManageDebugVM.cpp \
|
---|
| 44 | VBoxManageDHCPServer.cpp \
|
---|
| 45 | VBoxManageDisk.cpp \
|
---|
[37402] | 46 | $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp) \
|
---|
[36630] | 47 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
|
---|
| 48 | VBoxManageHelp.cpp \
|
---|
| 49 | VBoxManageHostonly.cpp \
|
---|
| 50 | VBoxManageInfo.cpp \
|
---|
| 51 | VBoxManageList.cpp \
|
---|
| 52 | VBoxManageMetrics.cpp \
|
---|
| 53 | VBoxManageMisc.cpp \
|
---|
| 54 | VBoxManageModifyVM.cpp \
|
---|
| 55 | VBoxManageSnapshot.cpp \
|
---|
| 56 | VBoxManageStorageController.cpp \
|
---|
[37402] | 57 | VBoxManageUSB.cpp
|
---|
[38416] | 58 | VBoxManage_LIBS += $(LIB_DDU)
|
---|
[32712] | 59 |
|
---|
| 60 | VBoxManage_DEFS += \
|
---|
[36630] | 61 | $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
|
---|
| 62 | $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \
|
---|
[32866] | 63 | $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST) \
|
---|
[36630] | 64 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
|
---|
| 65 | $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
|
---|
| 66 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
|
---|
| 67 | $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \
|
---|
[32719] | 68 | $(if $(VBOX_WITH_HGCM), VBOX_WITH_HGCM) \
|
---|
[36630] | 69 | $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \
|
---|
[32719] | 70 | $(if $(VBOX_WITH_NETFLT), VBOX_WITH_NETFLT) \
|
---|
[36630] | 71 | $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
|
---|
| 72 | $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
|
---|
| 73 | $(if $(VBOX_WITH_SOLARIS_OSS), VBOX_WITH_SOLARIS_OSS) \
|
---|
| 74 | $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \
|
---|
[32719] | 75 | $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL) \
|
---|
[36630] | 76 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
|
---|
[41371] | 77 | $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER) \
|
---|
[42838] | 78 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH) \
|
---|
| 79 | $(if $(VBOX_WITH_VPX),VBOX_WITH_VPX)
|
---|
[32712] | 80 |
|
---|
[11345] | 81 | ifneq ($(KBUILD_TARGET),win)
|
---|
| 82 | # Workaround for buggy gcc-4.3 compilers, see
|
---|
| 83 | #
|
---|
| 84 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36474
|
---|
| 85 | #
|
---|
| 86 | # Some later revisions of version 4.3.1 are known to work so we assume
|
---|
| 87 | # that version 4.3.2 or later has this bug definitely fixed.
|
---|
| 88 | VBoxManage_CXXFLAGS.release += \
|
---|
[13855] | 89 | $(if $(VBOX_GCC_VERSION_CXX),$(if-expr $(VBOX_GCC_VERSION_CXX) < 40300 || $(VBOX_GCC_VERSION_CXX) > 40301,,--param max-fields-for-field-sensitive=0),)
|
---|
[38416] | 90 | VBoxManageHelp_CXXFLAGS.release = $(VBoxManage_CXXFLAGS.release)
|
---|
[11345] | 91 | endif
|
---|
[1] | 92 |
|
---|
[41477] | 93 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|