1 | # $Id: Makefile.kmk 8155 2008-04-18 15:16:47Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxBFE (a basic frontend which doesn't make use of Main).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | DEPTH ?= ../../../..
|
---|
23 | SUB_DEPTH = ..
|
---|
24 | include $(PATH_KBUILD)/subheader.kmk
|
---|
25 |
|
---|
26 | PROGRAMS += VBoxBFE
|
---|
27 |
|
---|
28 | #
|
---|
29 | # VBoxBFE
|
---|
30 | #
|
---|
31 | VBoxBFE_TEMPLATE = VBOXR3NPEXE
|
---|
32 | #ifdef VBOX_WITH_SECURELABEL
|
---|
33 | #VBoxBFE_DEFS += VBOX_SECURELABEL
|
---|
34 | #endif
|
---|
35 | ifdef VBOX_WITH_VRDP
|
---|
36 | VBoxBFE_DEFS += VBOX_VRDP
|
---|
37 | endif
|
---|
38 | ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
|
---|
39 | VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
|
---|
40 | endif
|
---|
41 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
42 | VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
43 | endif
|
---|
44 | VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
|
---|
45 | VBoxBFE_DEFS.l4 = _GNU_SOURCE
|
---|
46 | VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
|
---|
47 | VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11
|
---|
48 | ifdef VBOX_WITH_CROSSBOW
|
---|
49 | VBoxBFE_DEFS.solaris += VBOX_WITH_CROSSBOW
|
---|
50 | endif
|
---|
51 | VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
|
---|
52 |
|
---|
53 | VBoxBFE_SOURCES = \
|
---|
54 | VBoxBFE.cpp \
|
---|
55 | VMMDevInterface.cpp \
|
---|
56 | DisplayImpl.cpp \
|
---|
57 | MouseImpl.cpp \
|
---|
58 | KeyboardImpl.cpp \
|
---|
59 | StatusImpl.cpp \
|
---|
60 | MachineDebuggerImpl.cpp \
|
---|
61 | VMControl.cpp
|
---|
62 |
|
---|
63 | ifdef VBOX_WITH_HGCM
|
---|
64 | VBoxBFE_DEFS += VBOX_HGCM
|
---|
65 | VBoxBFE_SOURCES += \
|
---|
66 | HGCM.cpp \
|
---|
67 | HGCMThread.cpp \
|
---|
68 | HGCMObjects.cpp
|
---|
69 | endif
|
---|
70 |
|
---|
71 | VBoxBFE_SOURCES.darwin = \
|
---|
72 | VBoxBFEMain-darwin.m
|
---|
73 |
|
---|
74 | VBoxBFE_SOURCES.l4 = \
|
---|
75 | L4Console.cpp \
|
---|
76 | L4Framebuffer.cpp \
|
---|
77 | L4IDLInterface.cpp \
|
---|
78 | EmulCpp.cpp
|
---|
79 |
|
---|
80 | # SDL
|
---|
81 | ifneq ($(BUILD_TARGET),l4)
|
---|
82 | VBoxBFE_SDKS += LIBSDL
|
---|
83 | VBoxBFE_DEFS += USE_SDL
|
---|
84 | VBoxBFE_SOURCES += \
|
---|
85 | SDLConsole.cpp \
|
---|
86 | SDLFramebuffer.cpp
|
---|
87 | endif
|
---|
88 |
|
---|
89 | # USB Support
|
---|
90 | ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
|
---|
91 | VBoxBFE_DEFS += VBOXBFE_WITH_USB
|
---|
92 | VBoxBFE_SOURCES += \
|
---|
93 | HostUSBImpl.cpp \
|
---|
94 | HostUSBDeviceImpl.cpp \
|
---|
95 | USBProxyService.cpp
|
---|
96 | VBoxBFE_SOURCES.l4 += \
|
---|
97 | USBProxyServiceLinux.cpp
|
---|
98 | VBoxBFE_SOURCES.linux += \
|
---|
99 | USBProxyServiceLinux.cpp
|
---|
100 | endif
|
---|
101 |
|
---|
102 | VBoxBFE_INCS = \
|
---|
103 | $(PATH_VBoxBFE) \
|
---|
104 | $(VBOX_PATH_SDK)/include
|
---|
105 | ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
|
---|
106 | VBoxBFE_INCS += \
|
---|
107 | $(VBOX_XCURSOR_INCS)
|
---|
108 | endif
|
---|
109 | VBoxBFE_INCS.freebsd = \
|
---|
110 | /usr/include \
|
---|
111 | /usr/local/include
|
---|
112 |
|
---|
113 | VBoxBFE_LIBS = \
|
---|
114 | $(LIB_RUNTIME) \
|
---|
115 | $(LIB_VMM)
|
---|
116 | ifneq ($(filter-out win os2 l4,$(BUILD_TARGET)),)
|
---|
117 | VBoxBFE_LIBS += \
|
---|
118 | $(LIB_REM)
|
---|
119 | endif
|
---|
120 | ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
|
---|
121 | VBoxBFE_LIBS += \
|
---|
122 | $(VBOX_XCURSOR_LIBS) \
|
---|
123 | X11
|
---|
124 | VBoxBFE_LIBPATH += \
|
---|
125 | $(VBOX_LIBPATH_X11)
|
---|
126 | endif
|
---|
127 | ifndef VBOX_WITHOUT_COM
|
---|
128 | VBoxBFE_LIBS.win = \
|
---|
129 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
|
---|
130 | endif
|
---|
131 | VBoxBFE_LIBS.l4 = \
|
---|
132 | $(L4_LIBDIR)/libl4con-idl.a \
|
---|
133 | $(L4_LIBDIR)/libconstream-server.a \
|
---|
134 | $(L4_LIBDIR)/libvboxctrl-server.a \
|
---|
135 | $(L4_LIBDIR)/libl4sys.a
|
---|
136 | VBoxBFE_LIBS.darwin = \
|
---|
137 | $(LIB_SDK_LIBSDL_SDLMAIN)
|
---|
138 | VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
|
---|
139 |
|
---|
140 | VBoxBFE_CXXFLAGS.win = \
|
---|
141 | -EHsc
|
---|
142 | VBoxBFE_CXXFLAGS.linux = \
|
---|
143 | -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
|
---|
144 | -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
|
---|
145 | VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
|
---|
146 | $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
|
---|
147 | VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
|
---|
148 |
|
---|
149 | VBoxBFE_SDLConsole.cpp_DEPS = $(PATH_VBoxBFE)/Ico64x01.h
|
---|
150 |
|
---|
151 |
|
---|
152 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
153 |
|
---|
154 | # Convert the pnm-file to a byte array.
|
---|
155 | $(PATH_VBoxBFE)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxBFE/ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxBFE))
|
---|
156 | $(call MSG_TOOL,bin2c,VBoxBFE,$<,$@)
|
---|
157 | $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
|
---|