VirtualBox

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

Last change on this file since 4225 was 4178, checked in by vboxsync, 18 years ago

Solaris changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 4178 2007-08-16 15:07:51Z 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.l4 = _GNU_SOURCE
43VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
44VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
45
46VBoxBFE_SOURCES = \
47 VBoxBFE.cpp \
48 VMMDevInterface.cpp \
49 DisplayImpl.cpp \
50 MouseImpl.cpp \
51 KeyboardImpl.cpp \
52 StatusImpl.cpp \
53 MachineDebuggerImpl.cpp
54
55# USB Support
56ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
57VBoxBFE_DEFS += VBOXBFE_WITH_USB
58VBoxBFE_SOURCES += \
59 HostUSBImpl.cpp \
60 HostUSBDeviceImpl.cpp \
61 USBProxyService.cpp
62endif
63
64VBoxBFE_SOURCES.win = \
65 SDLConsole.cpp \
66 SDLFramebuffer.cpp
67VBoxBFE_SOURCES.os2 = \
68 SDLConsole.cpp \
69 SDLFramebuffer.cpp
70VBoxBFE_SOURCES.linux = \
71 SDLConsole.cpp \
72 SDLFramebuffer.cpp \
73 USBProxyServiceLinux.cpp
74VBoxBFE_SOURCES.l4 = \
75 L4Console.cpp \
76 L4Framebuffer.cpp \
77 EmulCpp.cpp \
78 USBProxyServiceLinux.cpp
79VBoxBFE_SOURCES.darwin = \
80 SDLConsole.cpp \
81 SDLFramebuffer.cpp
82VBoxBFE_SOURCES.solaris = \
83 SDLConsole.cpp \
84 SDLFramebuffer.cpp
85
86VBoxBFE_INCS = \
87 $(PATH_VBoxBFE) \
88 $(PATH_BIN)/sdk/include
89VBoxBFE_INCS.linux = \
90 $(PATH_BIN)/sdk/include \
91 $(VBOX_XPCOM_INCS)
92
93VBoxBFE_LIBS = \
94 $(LIB_RUNTIME) \
95 $(LIB_VMM)
96ifndef VBOX_WITHOUT_COM
97VBoxBFE_LIBS.win = \
98 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
99endif
100VBoxBFE_LIBS.linux = \
101 $(LIB_RUNTIME) \
102 $(LIB_XCURSOR)
103VBoxBFE_LIBS.l4 = \
104 $(L4_LIBDIR)/libl4con-idl.a \
105 $(L4_LIBDIR)/libdm_generic.a \
106 $(L4_LIBDIR)/libdm_mem.a \
107 $(L4_LIBDIR)/libnames.a \
108 $(L4_LIBDIR)/libconstream-server.a \
109 $(L4_LIBDIR)/libl4sys.a
110VBoxBFE_LIBS.darwin = \
111 $(LIB_REM) \
112 $(LIB_SDK_LIBSDL_SDLMAIN)
113VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
114
115VBoxBFE_LIBPATH.linux = \
116 $(LIBPATH_XPCOM) \
117 $(VBOX_LIBPATH_X11)
118
119
120VBoxBFE_CXXFLAGS.win = \
121 -EHsc
122VBoxBFE_CXXFLAGS.linux = \
123 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
124 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
125VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
126 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
127VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
128
129
130include $(PATH_KBUILD)/footer.kmk
131
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