VirtualBox

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

Last change on this file since 4876 was 4861, checked in by vboxsync, 18 years ago

Solaris is using X11. But it's currently missing Xcursor, so disable that until we've time to build it ourselves.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Makefile.kmk 4861 2007-09-17 15:48:39Z 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.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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16
17DEPTH = ../../../..
18include $(PATH_KBUILD)/header.kmk
19
20PROGRAMS = VBoxBFE
21
22#
23# VBoxBFE
24#
25VBoxBFE_TEMPLATE = VBOXR3NPEXE
26ifneq ($(BUILD_TARGET),l4)
27VBoxBFE_SDKS = LIBSDL
28VBoxBFE_DEFS = USE_SDL
29endif
30#ifdef VBOX_WITH_SECURELABEL
31#VBoxBFE_DEFS += VBOX_SECURELABEL
32#endif
33ifdef VBOX_WITH_VRDP
34VBoxBFE_DEFS += VBOX_VRDP
35endif
36ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
37VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
38endif
39ifdef VBOX_WITHOUT_LINUX_COMPILER_H
40VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
41endif
42VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
43VBoxBFE_DEFS.l4 = _GNU_SOURCE
44VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
45VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11 VBOXBFE_WITHOUT_XCURSOR
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
57# USB Support
58ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
59VBoxBFE_DEFS += VBOXBFE_WITH_USB
60VBoxBFE_SOURCES += \
61 HostUSBImpl.cpp \
62 HostUSBDeviceImpl.cpp \
63 USBProxyService.cpp
64endif
65
66VBoxBFE_SOURCES.win = \
67 SDLConsole.cpp \
68 SDLFramebuffer.cpp
69VBoxBFE_SOURCES.os2 = \
70 SDLConsole.cpp \
71 SDLFramebuffer.cpp
72VBoxBFE_SOURCES.linux = \
73 SDLConsole.cpp \
74 SDLFramebuffer.cpp \
75 USBProxyServiceLinux.cpp
76VBoxBFE_SOURCES.l4 = \
77 L4Console.cpp \
78 L4Framebuffer.cpp \
79 EmulCpp.cpp \
80 USBProxyServiceLinux.cpp
81VBoxBFE_SOURCES.darwin = \
82 SDLConsole.cpp \
83 SDLFramebuffer.cpp
84VBoxBFE_SOURCES.solaris = \
85 SDLConsole.cpp \
86 SDLFramebuffer.cpp
87
88VBoxBFE_INCS = \
89 $(PATH_VBoxBFE) \
90 $(PATH_BIN)/sdk/include
91VBoxBFE_INCS.linux = \
92 $(PATH_BIN)/sdk/include \
93 $(VBOX_XPCOM_INCS)
94
95VBoxBFE_LIBS = \
96 $(LIB_RUNTIME) \
97 $(LIB_VMM)
98ifneq ($(filter-out win os2 l4,$(BUILD_TARGET)),)
99VBoxBFE_LIBS += \
100 $(LIB_REM)
101endif
102ifndef VBOX_WITHOUT_COM
103VBoxBFE_LIBS.win = \
104 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
105endif
106VBoxBFE_LIBS.linux = \
107 $(LIB_RUNTIME) \
108 $(LIB_XCURSOR)
109VBoxBFE_LIBS.l4 = \
110 $(L4_LIBDIR)/libl4con-idl.a \
111 $(L4_LIBDIR)/libdm_generic.a \
112 $(L4_LIBDIR)/libdm_mem.a \
113 $(L4_LIBDIR)/libnames.a \
114 $(L4_LIBDIR)/libconstream-server.a \
115 $(L4_LIBDIR)/libl4sys.a
116VBoxBFE_LIBS.darwin = \
117 $(LIB_SDK_LIBSDL_SDLMAIN)
118VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
119
120VBoxBFE_LIBPATH.linux = \
121 $(LIBPATH_XPCOM) \
122 $(VBOX_LIBPATH_X11)
123
124
125VBoxBFE_CXXFLAGS.win = \
126 -EHsc
127VBoxBFE_CXXFLAGS.linux = \
128 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
129 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
130VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
131 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
132VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
133
134
135include $(PATH_KBUILD)/footer.kmk
136
Note: See TracBrowser for help on using the repository browser.

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