VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk@ 54934

Last change on this file since 54934 was 53844, checked in by vboxsync, 10 years ago

fixed resource files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 53844 2015-01-16 08:16:28Z vboxsync $
2## @file
3# Sub-Makefile for VBoxManage (the cli frontend).
4#
5
6#
7# Copyright (C) 2006-2013 Oracle Corporation
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#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifdef VBOX_WITH_DOCS
22 PROGRAMS += VBoxManageHelp
23endif
24VBoxManageHelp_TEMPLATE = VBoxAdvBldProg
25VBoxManageHelp_DEFS += \
26 VBOX_ONLY_DOCS \
27 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL)
28VBoxManageHelp_SOURCES = \
29 VBoxManage.cpp \
30 VBoxManageHelp.cpp \
31 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
32 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp)
33
34ifndef VBOX_ONLY_DOCS
35 PROGRAMS += VBoxManage
36endif
37VBoxManage_TEMPLATE = VBOXMAINCLIENTEXE
38VBoxManage_DEFS.win = _WIN32_WINNT=0x0500
39VBoxManage_SOURCES = \
40 VBoxManage.cpp \
41 VBoxInternalManage.cpp \
42 VBoxManageAppliance.cpp \
43 VBoxManageBandwidthControl.cpp \
44 VBoxManageControlVM.cpp \
45 VBoxManageDebugVM.cpp \
46 VBoxManageDHCPServer.cpp \
47 VBoxManageDisk.cpp \
48 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp) \
49 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrlListener.cpp) \
50 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
51 VBoxManageHelp.cpp \
52 VBoxManageHostonly.cpp \
53 VBoxManageInfo.cpp \
54 VBoxManageList.cpp \
55 VBoxManageMetrics.cpp \
56 VBoxManageMisc.cpp \
57 VBoxManageModifyVM.cpp \
58 VBoxManageSnapshot.cpp \
59 VBoxManageStorageController.cpp \
60 VBoxManageUSB.cpp \
61 $(if $(VBOX_WITH_NAT_SERVICE),VBoxManageNATNetwork.cpp,) \
62 $(if $(VBOX_WITH_NAT_SERVICE),../../NetworkServices/NetLib/VBoxNetPortForwardString.cpp,)
63VBoxManage_SOURCES.win = \
64 VBoxManage.rc
65VBoxManage_LIBS += $(LIB_DDU)
66
67VBoxManage_DEFS += \
68 $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
69 $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \
70 $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST) \
71 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
72 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
73 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
74 $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \
75 $(if $(VBOX_WITH_HGCM), VBOX_WITH_HGCM) \
76 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \
77 $(if $(VBOX_WITH_NETFLT), VBOX_WITH_NETFLT) \
78 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
79 $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
80 $(if $(VBOX_WITH_SOLARIS_OSS), VBOX_WITH_SOLARIS_OSS) \
81 $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \
82 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL) \
83 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
84 $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER) \
85 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH) \
86 $(if $(VBOX_WITH_VPX),VBOX_WITH_VPX) \
87 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE) \
88 $(if $(VBOX_WITH_VMSVGA),VBOX_WITH_VMSVGA)
89
90# VBoxNetPortForwardString.h
91VBoxManageNATNetwork.cpp_INCS += ../../NetworkServices/NetLib/
92
93ifneq ($(KBUILD_TARGET),win)
94 # Workaround for buggy gcc-4.3 compilers, see
95 #
96 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36474
97 #
98 # Some later revisions of version 4.3.1 are known to work so we assume
99 # that version 4.3.2 or later has this bug definitely fixed.
100 VBoxManage_CXXFLAGS.release += \
101 $(if $(VBOX_GCC_VERSION_CXX),$(if-expr $(VBOX_GCC_VERSION_CXX) < 40300 || $(VBOX_GCC_VERSION_CXX) > 40301,,--param max-fields-for-field-sensitive=0),)
102 VBoxManageHelp_CXXFLAGS.release = $(VBoxManage_CXXFLAGS.release)
103endif
104
105include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette