VirtualBox

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

Last change on this file since 26951 was 26850, checked in by vboxsync, 15 years ago

attempt to fix the win builds

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
Line 
1# $Id: Makefile.kmk 26850 2010-02-26 13:37:20Z vboxsync $
2## @file
3# Sub-Makefile for VBoxBFE (a basic frontend which doesn't make use of Main).
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
24if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "darwin" # No hardened VBoxBFE on darwin (.m).
25
26#
27# Targets.
28#
29ifdef VBOX_WITH_HARDENING
30 PROGRAMS += VBoxBFEHardened
31 DLLS += VBoxBFE
32else
33 PROGRAMS += VBoxBFE
34endif
35
36
37#
38# Hardened VBoxBFE.
39#
40VBoxBFEHardened_TEMPLATE = VBOXR3HARDENEDEXE
41VBoxBFEHardened_SOURCES = VBoxBFEHardened.cpp
42VBoxBFEHardened_NAME = VBoxBFE
43
44
45#
46# VBoxBFE
47#
48VBoxBFE_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXR3NP,VBOXR3NPEXE)
49#ifdef VBOX_WITH_SECURELABEL
50#VBoxBFE_DEFS += VBOX_SECURELABEL
51#endif
52ifdef VBOX_WITH_VRDP
53VBoxBFE_DEFS += VBOX_WITH_VRDP
54endif
55VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
56ifdef VBOX_WITH_LINUX_COMPILER_H
57VBoxBFE_DEFS += VBOX_WITH_LINUX_COMPILER_H
58endif
59VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
60VBoxBFE_DEFS.l4 = _GNU_SOURCE
61VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
62VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11
63ifdef VBOX_WITH_CROSSBOW
64 VBoxBFE_DEFS.solaris += VBOX_WITH_CROSSBOW
65endif
66VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
67
68VBoxBFE_SOURCES = \
69 VBoxBFE.cpp \
70 VMMDevInterface.cpp \
71 DisplayImpl.cpp \
72 MouseImpl.cpp \
73 KeyboardImpl.cpp \
74 StatusImpl.cpp \
75 MachineDebuggerImpl.cpp \
76 VMControl.cpp
77
78ifdef VBOX_WITH_HGCM
79VBoxBFE_DEFS += VBOX_WITH_HGCM
80VBoxBFE_SOURCES += \
81 HGCM.cpp \
82 HGCMThread.cpp \
83 HGCMObjects.cpp
84endif
85
86VBoxBFE_SOURCES.darwin = \
87 VBoxBFEMain-darwin.m
88
89VBoxBFE_SOURCES.l4 = \
90 L4Console.cpp \
91 L4Framebuffer.cpp \
92 L4IDLInterface.cpp \
93 EmulCpp.cpp
94
95# SDL
96ifneq ($(KBUILD_TARGET),l4)
97VBoxBFE_SDKS += LIBSDL
98VBoxBFE_DEFS += USE_SDL
99VBoxBFE_SOURCES += \
100 SDLConsole.cpp \
101 SDLFramebuffer.cpp
102endif
103
104# USB Support
105if1of ($(KBUILD_TARGET), l4 win)
106VBoxBFE_DEFS += VBOXBFE_WITH_USB
107VBoxBFE_SOURCES += \
108 HostUSBImpl.cpp \
109 HostUSBDeviceImpl.cpp \
110 USBProxyService.cpp
111VBoxBFE_SOURCES.l4 += \
112 USBProxyServiceLinux.cpp
113VBoxBFE_SOURCES.linux += \
114 USBProxyServiceLinux.cpp
115endif
116
117VBoxBFE_INCS = \
118 $(PATH_VBoxBFE) \
119 $(VBOX_PATH_SDK)/include
120ifneq ($(filter-out win os2 l4 darwin,$(KBUILD_TARGET)),) # X11
121VBoxBFE_INCS += \
122 $(VBOX_XCURSOR_INCS)
123endif
124
125VBoxBFE_LIBS = \
126 $(LIB_RUNTIME) \
127 $(LIB_VMM)
128ifneq ($(filter-out win os2 l4,$(KBUILD_TARGET)),)
129VBoxBFE_LIBS += \
130 $(LIB_REM)
131endif
132ifneq ($(filter-out win os2 l4 darwin,$(KBUILD_TARGET)),) # X11
133VBoxBFE_LIBS += \
134 $(VBOX_XCURSOR_LIBS) \
135 X11
136VBoxBFE_LIBPATH += \
137 $(VBOX_LIBPATH_X11)
138endif
139ifndef VBOX_WITHOUT_COM
140VBoxBFE_LIBS.win = \
141 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
142endif
143VBoxBFE_LIBS.l4 = \
144 $(L4_LIBDIR)/libl4con-idl.a \
145 $(L4_LIBDIR)/libconstream-server.a \
146 $(L4_LIBDIR)/libvboxctrl-server.a \
147 $(L4_LIBDIR)/libl4sys.a
148VBoxBFE_LIBS.darwin = \
149 $(LIB_SDK_LIBSDL_SDLMAIN)
150VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
151
152VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
153 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
154## @todo why is it all this cool stuff here only for linux? If it's important, -fshort-wchar would apply to all GCC platforms.
155VBoxBFE_DEFS.linux = \
156 NDEBUG TRIMMED
157VBoxBFE_CXXFLAGS.linux = \
158 -fno-rtti -fno-exceptions -fshort-wchar -pthread
159
160VBoxBFE_CLEAN = $(PATH_VBoxBFE)/Ico64x01.h
161VBoxBFE_SDLConsole.cpp_DEPS = $(PATH_VBoxBFE)/Ico64x01.h
162
163# Convert the pnm-file to a byte array.
164$$(PATH_VBoxBFE)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxBFE/ico64x01.pnm $(VBOX_BIN2C) | $$(dir $$@)
165 $(call MSG_TOOL,bin2c,VBoxBFE,$<,$@)
166 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
167
168
169endif # !VBOX_WITH_HARDENING || !darwin
170include $(KBUILD_PATH)/subfooter.kmk
171
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