VirtualBox

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

Last change on this file since 2981 was 2981, checked in by vboxsync, 17 years ago

InnoTek -> innotek: all the headers and comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 2981 2007-06-01 16:01:28Z 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#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../../..
23include $(PATH_KBUILD)/header.kmk
24
25PROGRAMS = VBoxBFE
26
27#
28# VBoxBFE
29#
30VBoxBFE_TEMPLATE = VBOXR3NPEXE
31ifneq ($(BUILD_TARGET),l4)
32VBoxBFE_SDKS = LIBSDL
33VBoxBFE_DEFS = USE_SDL
34endif
35#ifdef VBOX_WITH_SECURELABEL
36#VBoxBFE_DEFS += VBOX_SECURELABEL
37#endif
38ifdef VBOX_WITH_VRDP
39VBoxBFE_DEFS += VBOX_VRDP
40endif
41ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
42VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
43endif
44ifdef VBOX_WITHOUT_LINUX_COMPILER_H
45VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
46endif
47VBoxBFE_DEFS.l4 = _GNU_SOURCE
48VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
49VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
50
51VBoxBFE_SOURCES = \
52 VBoxBFE.cpp \
53 VMMDevInterface.cpp \
54 DisplayImpl.cpp \
55 MouseImpl.cpp \
56 KeyboardImpl.cpp \
57 StatusImpl.cpp \
58 MachineDebuggerImpl.cpp
59
60# USB Support
61ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
62VBoxBFE_DEFS += VBOXBFE_WITH_USB
63VBoxBFE_SOURCES += \
64 HostUSBImpl.cpp \
65 HostUSBDeviceImpl.cpp \
66 USBProxyService.cpp
67endif
68
69VBoxBFE_SOURCES.win = \
70 SDLConsole.cpp \
71 SDLFramebuffer.cpp
72VBoxBFE_SOURCES.os2 = \
73 SDLConsole.cpp \
74 SDLFramebuffer.cpp
75VBoxBFE_SOURCES.linux = \
76 SDLConsole.cpp \
77 SDLFramebuffer.cpp \
78 USBProxyServiceLinux.cpp
79VBoxBFE_SOURCES.l4 = \
80 L4Console.cpp \
81 L4Framebuffer.cpp \
82 EmulCpp.cpp \
83 USBProxyServiceLinux.cpp
84VBoxBFE_SOURCES.darwin = \
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)
98ifndef VBOX_WITHOUT_COM
99VBoxBFE_LIBS.win = \
100 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
101endif
102VBoxBFE_LIBS.linux = \
103 $(LIB_RUNTIME) \
104 $(LIB_XCURSOR)
105VBoxBFE_LIBS.l4 = \
106 $(L4_LIBDIR)/libl4con-idl.a \
107 $(L4_LIBDIR)/libdm_generic.a \
108 $(L4_LIBDIR)/libdm_mem.a \
109 $(L4_LIBDIR)/libnames.a \
110 $(L4_LIBDIR)/libconstream-server.a \
111 $(L4_LIBDIR)/libl4sys.a
112VBoxBFE_LIBS.darwin = \
113 $(LIB_REM) \
114 $(LIB_SDK_LIBSDL_SDLMAIN)
115VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
116
117VBoxBFE_LIBPATH.linux = \
118 $(LIBPATH_XPCOM) \
119 $(VBOX_LIBPATH_X11)
120
121
122VBoxBFE_CXXFLAGS.win = \
123 -EHsc
124VBoxBFE_CXXFLAGS.linux = \
125 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
126 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
127VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
128 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
129VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
130
131
132include $(PATH_KBUILD)/footer.kmk
133
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