VirtualBox

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

Last change on this file since 17417 was 17322, checked in by vboxsync, 16 years ago

VBoxManage: hostif->bridged, hostonly fixes for windows

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 17322 2009-03-04 07:20:59Z vboxsync $
2## @file
3# Sub-Makefile for VBoxManage (the cli frontend).
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25PROGRAMS += VBoxManage
26ifdef VBOX_ONLY_DOCS
27 VBoxManage_TEMPLATE = VBOXR3NPEXE
28 VBoxManage_DEFS += VBOX_ONLY_DOCS
29 VBoxManage_SOURCES = \
30 VBoxManage.cpp \
31 VBoxManageHelp.cpp \
32 VBoxManageSVN.cpp
33 VBoxManage_LIBS += $(LIB_RUNTIME)
34else # !VBOX_ONLY_DOCS
35 VBoxManage_TEMPLATE = VBOXMAINCLIENTEXE
36 VBoxManage_DEFS += \
37 $(if $(VBOX_WITH_VRDP), VBOX_WITH_VRDP) \
38 $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \
39 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
40 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
41 $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
42 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
43 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API)
44 VBoxManage_DEFS.win = _WIN32_WINNT=0x0500
45ifdef VBOX_WITH_NETFLT
46 VBoxManage_DEFS += VBOX_WITH_NETFLT
47endif
48 VBoxManage_SOURCES = \
49 VBoxManage.cpp \
50 VBoxManageHelp.cpp \
51 VBoxManageModifyVM.cpp \
52 VBoxManageInfo.cpp \
53 VBoxManageImport.cpp \
54 VBoxManageMetrics.cpp \
55 VBoxManageList.cpp \
56 VBoxManageDisk.cpp \
57 VBoxManageSnapshot.cpp \
58 VBoxManageUSB.cpp \
59 VBoxInternalManage.cpp \
60 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
61 VBoxManageSVN.cpp
62endif # !VBOX_ONLY_DOCS
63ifneq ($(KBUILD_TARGET),win)
64 # Workaround for buggy gcc-4.3 compilers, see
65 #
66 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36474
67 #
68 # Some later revisions of version 4.3.1 are known to work so we assume
69 # that version 4.3.2 or later has this bug definitely fixed.
70 VBoxManage_CXXFLAGS.release += \
71 $(if $(VBOX_GCC_VERSION_CXX),$(if-expr $(VBOX_GCC_VERSION_CXX) < 40300 || $(VBOX_GCC_VERSION_CXX) > 40301,,--param max-fields-for-field-sensitive=0),)
72endif
73ifndef VBOX_ONLY_DOCS
74 VBoxManage_LIBS += $(LIB_DDU)
75endif # !VBOX_ONLY_DOCS
76
77# VBoxManageSVN.cpp uses VBOX_SVN_REV.
78VBoxManageSVN.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
79VBoxManageSVN.cpp_DEPS = $(VBOX_SVN_REV_KMK)
80
81include $(KBUILD_PATH)/subfooter.kmk
82
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