VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxBFE/Makefile.kmk@ 6124

最後變更 在這個檔案從6124是 5999,由 vboxsync 提交於 17 年 前

The Giant CDDL Dual-License Header Change.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 3.7 KB
 
1# $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z vboxsync $
2## @file
3# Makefile for VBoxBFE (a basic frontend which doesn't make use of Main).
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.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
18DEPTH = ../../../..
19include $(PATH_KBUILD)/header.kmk
20
21PROGRAMS = VBoxBFE
22
23#
24# VBoxBFE
25#
26VBoxBFE_TEMPLATE = VBOXR3NPEXE
27#ifdef VBOX_WITH_SECURELABEL
28#VBoxBFE_DEFS += VBOX_SECURELABEL
29#endif
30ifdef VBOX_WITH_VRDP
31VBoxBFE_DEFS += VBOX_VRDP
32endif
33ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
34VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
35endif
36ifdef VBOX_WITHOUT_LINUX_COMPILER_H
37VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
38endif
39VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
40VBoxBFE_DEFS.l4 = _GNU_SOURCE
41VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
42VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11
43ifdef VBOX_WITH_CROSSBOW
44 VBoxBFE_DEFS.solaris += VBOX_WITH_CROSSBOW
45endif
46VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
47
48VBoxBFE_SOURCES = \
49 VBoxBFE.cpp \
50 VMMDevInterface.cpp \
51 DisplayImpl.cpp \
52 MouseImpl.cpp \
53 KeyboardImpl.cpp \
54 StatusImpl.cpp \
55 MachineDebuggerImpl.cpp \
56 VMControl.cpp
57
58ifdef VBOX_WITH_HGCM
59VBoxBFE_DEFS += VBOX_HGCM
60VBoxBFE_SOURCES += \
61 HGCM.cpp \
62 HGCMThread.cpp \
63 HGCMObjects.cpp
64endif
65
66VBoxBFE_SOURCES.darwin = \
67 VBoxBFEMain-darwin.m
68
69VBoxBFE_SOURCES.l4 = \
70 L4Console.cpp \
71 L4Framebuffer.cpp \
72 L4IDLInterface.cpp \
73 EmulCpp.cpp
74
75# SDL
76ifneq ($(BUILD_TARGET),l4)
77VBoxBFE_SDKS += LIBSDL
78VBoxBFE_DEFS += USE_SDL
79VBoxBFE_SOURCES += \
80 SDLConsole.cpp \
81 SDLFramebuffer.cpp
82endif
83
84# USB Support
85ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
86VBoxBFE_DEFS += VBOXBFE_WITH_USB
87VBoxBFE_SOURCES += \
88 HostUSBImpl.cpp \
89 HostUSBDeviceImpl.cpp \
90 USBProxyService.cpp
91VBoxBFE_SOURCES.l4 += \
92 USBProxyServiceLinux.cpp
93VBoxBFE_SOURCES.linux += \
94 USBProxyServiceLinux.cpp
95endif
96
97VBoxBFE_INCS = \
98 $(PATH_VBoxBFE) \
99 $(PATH_BIN)/sdk/include
100ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
101VBoxBFE_INCS += \
102 $(VBOX_XCURSOR_INCS)
103endif
104VBoxBFE_INCS.freebsd = \
105 /usr/include \
106 /usr/local/include
107
108VBoxBFE_LIBS = \
109 $(LIB_RUNTIME) \
110 $(LIB_VMM)
111ifneq ($(filter-out win os2 l4,$(BUILD_TARGET)),)
112VBoxBFE_LIBS += \
113 $(LIB_REM)
114endif
115ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
116VBoxBFE_LIBS += \
117 $(VBOX_XCURSOR_LIBS) \
118 X11
119VBoxBFE_LIBPATH += \
120 $(VBOX_LIBPATH_X11)
121endif
122ifndef VBOX_WITHOUT_COM
123VBoxBFE_LIBS.win = \
124 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
125endif
126VBoxBFE_LIBS.l4 = \
127 $(L4_LIBDIR)/libl4con-idl.a \
128 $(L4_LIBDIR)/libconstream-server.a \
129 $(L4_LIBDIR)/libvboxctrl-server.a \
130 $(L4_LIBDIR)/libl4sys.a
131VBoxBFE_LIBS.darwin = \
132 $(LIB_SDK_LIBSDL_SDLMAIN)
133VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
134
135VBoxBFE_CXXFLAGS.win = \
136 -EHsc
137VBoxBFE_CXXFLAGS.linux = \
138 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
139 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
140VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
141 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
142VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
143
144VBoxBFE_SDLConsole.cpp_DEPS = $(PATH_VBoxBFE)/Ico64x01.h
145
146
147include $(PATH_KBUILD)/footer.kmk
148
149# Convert the pnm-file to a byte array.
150$(PATH_VBoxBFE)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxBFE))
151 $(call MSG_TOOL,bin2c,VBoxBFE,$<,$@)
152 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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