VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxBFE/Makefile@ 1939

Last change on this file since 1939 was 1564, checked in by vboxsync, 18 years ago

Removed libuuid dependency.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1#
2# Makefile for VBoxBFE (a basic frontend which doesn't make use of Main).
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../../..
22include $(PATH_KBUILD)/header.kmk
23
24PROGRAMS = VBoxBFE
25
26#
27# VBoxBFE
28#
29VBoxBFE_TEMPLATE = VBOXR3NPEXE
30ifneq ($(BUILD_TARGET),l4)
31VBoxBFE_SDKS = LIBSDL
32VBoxBFE_DEFS = USE_SDL
33endif
34#ifdef VBOX_WITH_SECURELABEL
35#VBoxBFE_DEFS += VBOX_SECURELABEL
36#endif
37ifdef VBOX_WITH_VRDP
38VBoxBFE_DEFS += VBOX_VRDP
39endif
40ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
41VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
42endif
43ifdef VBOX_WITHOUT_LINUX_COMPILER_H
44VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
45endif
46VBoxBFE_DEFS.l4 = _GNU_SOURCE
47VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
48VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
49
50VBoxBFE_SOURCES = \
51 VBoxBFE.cpp \
52 VMMDevInterface.cpp \
53 DisplayImpl.cpp \
54 MouseImpl.cpp \
55 KeyboardImpl.cpp \
56 StatusImpl.cpp \
57 MachineDebuggerImpl.cpp
58
59# USB Support
60ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
61VBoxBFE_DEFS += VBOXBFE_WITH_USB
62VBoxBFE_SOURCES += \
63 HostUSBImpl.cpp \
64 HostUSBDeviceImpl.cpp \
65 USBProxyService.cpp
66endif
67
68VBoxBFE_SOURCES.win = \
69 SDLConsole.cpp \
70 SDLFramebuffer.cpp
71VBoxBFE_SOURCES.os2 = \
72 SDLConsole.cpp \
73 SDLFramebuffer.cpp
74VBoxBFE_SOURCES.linux = \
75 SDLConsole.cpp \
76 SDLFramebuffer.cpp \
77 USBProxyServiceLinux.cpp
78VBoxBFE_SOURCES.l4 = \
79 L4Console.cpp \
80 L4Framebuffer.cpp \
81 EmulCpp.cpp \
82 USBProxyServiceLinux.cpp
83VBoxBFE_SOURCES.darwin = \
84 SDLConsole.cpp \
85 SDLFramebuffer.cpp
86
87VBoxBFE_INCS = \
88 $(PATH_VBoxBFE) \
89 $(PATH_BIN)/sdk/include
90VBoxBFE_INCS.linux = \
91 $(PATH_BIN)/sdk/include \
92 $(VBOX_XPCOM_INCS)
93
94VBoxBFE_LIBS = \
95 $(LIB_RUNTIME) \
96 $(LIB_VMM)
97ifndef VBOX_WITHOUT_COM
98VBoxBFE_LIBS.win = \
99 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
100endif
101VBoxBFE_LIBS.linux = \
102 $(LIB_RUNTIME) \
103 $(LIB_XCURSOR)
104VBoxBFE_LIBS.l4 = \
105 $(L4_LIBDIR)/libl4con-idl.a \
106 $(L4_LIBDIR)/libdm_generic.a \
107 $(L4_LIBDIR)/libdm_mem.a \
108 $(L4_LIBDIR)/libnames.a \
109 $(L4_LIBDIR)/libconstream-server.a \
110 $(L4_LIBDIR)/libl4sys.a
111VBoxBFE_LIBS.darwin = \
112 $(LIB_REM) \
113 $(LIB_SDK_LIBSDL_SDLMAIN)
114VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
115
116VBoxBFE_LIBPATH.linux = \
117 $(LIBPATH_XPCOM) \
118 $(VBOX_LIBPATH_X11)
119
120
121VBoxBFE_CXXFLAGS.win = \
122 -EHsc
123VBoxBFE_CXXFLAGS.linux = \
124 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
125 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
126VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
127 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
128VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
129
130
131include $(PATH_KBUILD)/footer.kmk
132
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