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 |
|
---|
21 | DEPTH = ../../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 | PROGRAMS = VBoxBFE
|
---|
25 |
|
---|
26 | #
|
---|
27 | # VBoxBFE
|
---|
28 | #
|
---|
29 | VBoxBFE_TEMPLATE = VBOXR3NPEXE
|
---|
30 | ifneq ($(BUILD_TARGET),l4)
|
---|
31 | VBoxBFE_SDKS = LIBSDL
|
---|
32 | VBoxBFE_DEFS = USE_SDL
|
---|
33 | endif
|
---|
34 | #ifdef VBOX_WITH_SECURELABEL
|
---|
35 | #VBoxBFE_DEFS += VBOX_SECURELABEL
|
---|
36 | #endif
|
---|
37 | ifdef VBOX_WITH_VRDP
|
---|
38 | VBoxBFE_DEFS += VBOX_VRDP
|
---|
39 | endif
|
---|
40 | ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
|
---|
41 | VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
|
---|
42 | endif
|
---|
43 | VBoxBFE_DEFS.l4 = _GNU_SOURCE
|
---|
44 | VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
|
---|
45 | VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
|
---|
46 |
|
---|
47 | VBoxBFE_SOURCES = \
|
---|
48 | VBoxBFE.cpp \
|
---|
49 | VMMDevInterface.cpp \
|
---|
50 | DisplayImpl.cpp \
|
---|
51 | MouseImpl.cpp \
|
---|
52 | KeyboardImpl.cpp \
|
---|
53 | StatusImpl.cpp \
|
---|
54 | MachineDebuggerImpl.cpp
|
---|
55 |
|
---|
56 | # USB Support
|
---|
57 | ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
|
---|
58 | VBoxBFE_DEFS += VBOXBFE_WITH_USB
|
---|
59 | VBoxBFE_SOURCES += \
|
---|
60 | HostUSBImpl.cpp \
|
---|
61 | HostUSBDeviceImpl.cpp \
|
---|
62 | USBProxyService.cpp
|
---|
63 | endif
|
---|
64 |
|
---|
65 | VBoxBFE_SOURCES.win = \
|
---|
66 | SDLConsole.cpp \
|
---|
67 | SDLFramebuffer.cpp
|
---|
68 | VBoxBFE_SOURCES.os2 = \
|
---|
69 | SDLConsole.cpp \
|
---|
70 | SDLFramebuffer.cpp
|
---|
71 | VBoxBFE_SOURCES.linux = \
|
---|
72 | SDLConsole.cpp \
|
---|
73 | SDLFramebuffer.cpp \
|
---|
74 | USBProxyServiceLinux.cpp
|
---|
75 | VBoxBFE_SOURCES.l4 = \
|
---|
76 | L4Console.cpp \
|
---|
77 | L4Framebuffer.cpp \
|
---|
78 | EmulCpp.cpp \
|
---|
79 | USBProxyServiceLinux.cpp
|
---|
80 | VBoxBFE_SOURCES.darwin = \
|
---|
81 | SDLConsole.cpp \
|
---|
82 | SDLFramebuffer.cpp
|
---|
83 |
|
---|
84 | VBoxBFE_INCS = \
|
---|
85 | $(PATH_VBoxBFE) \
|
---|
86 | $(PATH_BIN)/sdk/include
|
---|
87 | VBoxBFE_INCS.linux = \
|
---|
88 | $(PATH_BIN)/sdk/include \
|
---|
89 | $(VBOX_XPCOM_INCS)
|
---|
90 |
|
---|
91 | VBoxBFE_LIBS = \
|
---|
92 | $(LIB_RUNTIME) \
|
---|
93 | $(LIB_VMM)
|
---|
94 | ifndef VBOX_WITHOUT_COM
|
---|
95 | VBoxBFE_LIBS.win = \
|
---|
96 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
|
---|
97 | endif
|
---|
98 | VBoxBFE_LIBS.linux = \
|
---|
99 | $(LIB_RUNTIME) \
|
---|
100 | $(LIB_UUID) \
|
---|
101 | $(LIB_XCURSOR)
|
---|
102 | VBoxBFE_LIBS.l4 = \
|
---|
103 | $(L4_LIBDIR)/libl4con-idl.a \
|
---|
104 | $(L4_LIBDIR)/libdm_generic.a \
|
---|
105 | $(L4_LIBDIR)/libdm_mem.a \
|
---|
106 | $(L4_LIBDIR)/libnames.a \
|
---|
107 | $(L4_LIBDIR)/libconstream-server.a \
|
---|
108 | $(L4_LIBDIR)/libl4sys.a
|
---|
109 | VBoxBFE_LIBS.darwin = \
|
---|
110 | $(LIB_REM) \
|
---|
111 | $(LIB_SDK_LIBSDL_SDLMAIN)
|
---|
112 | VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
|
---|
113 |
|
---|
114 | VBoxBFE_LIBPATH.linux = \
|
---|
115 | $(LIBPATH_XPCOM) \
|
---|
116 | /usr/X11R6/lib
|
---|
117 |
|
---|
118 |
|
---|
119 | VBoxBFE_CXXFLAGS.win = \
|
---|
120 | -EHsc
|
---|
121 | VBoxBFE_CXXFLAGS.linux = \
|
---|
122 | -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
|
---|
123 | -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
|
---|
124 | VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
|
---|
125 | $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
|
---|
126 | VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
|
---|
127 |
|
---|
128 |
|
---|
129 | include $(PATH_KBUILD)/footer.kmk
|
---|
130 |
|
---|