1 | # $Id: Makefile.kmk 5965 2007-12-05 14:56:09Z 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 | DEPTH = ../../../..
|
---|
18 | include $(PATH_KBUILD)/header.kmk
|
---|
19 |
|
---|
20 | PROGRAMS = VBoxBFE
|
---|
21 |
|
---|
22 | #
|
---|
23 | # VBoxBFE
|
---|
24 | #
|
---|
25 | VBoxBFE_TEMPLATE = VBOXR3NPEXE
|
---|
26 | #ifdef VBOX_WITH_SECURELABEL
|
---|
27 | #VBoxBFE_DEFS += VBOX_SECURELABEL
|
---|
28 | #endif
|
---|
29 | ifdef VBOX_WITH_VRDP
|
---|
30 | VBoxBFE_DEFS += VBOX_VRDP
|
---|
31 | endif
|
---|
32 | ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
|
---|
33 | VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
|
---|
34 | endif
|
---|
35 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
36 | VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
37 | endif
|
---|
38 | VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
|
---|
39 | VBoxBFE_DEFS.l4 = _GNU_SOURCE
|
---|
40 | VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
|
---|
41 | VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11
|
---|
42 | ifdef VBOX_WITH_CROSSBOW
|
---|
43 | VBoxBFE_DEFS.solaris += VBOX_WITH_CROSSBOW
|
---|
44 | endif
|
---|
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 | VMControl.cpp
|
---|
56 |
|
---|
57 | ifdef VBOX_WITH_HGCM
|
---|
58 | VBoxBFE_DEFS += VBOX_HGCM
|
---|
59 | VBoxBFE_SOURCES += \
|
---|
60 | HGCM.cpp \
|
---|
61 | HGCMThread.cpp \
|
---|
62 | HGCMObjects.cpp
|
---|
63 | endif
|
---|
64 |
|
---|
65 | VBoxBFE_SOURCES.darwin = \
|
---|
66 | VBoxBFEMain-darwin.m
|
---|
67 |
|
---|
68 | VBoxBFE_SOURCES.l4 = \
|
---|
69 | L4Console.cpp \
|
---|
70 | L4Framebuffer.cpp \
|
---|
71 | L4IDLInterface.cpp \
|
---|
72 | EmulCpp.cpp
|
---|
73 |
|
---|
74 | # SDL
|
---|
75 | ifneq ($(BUILD_TARGET),l4)
|
---|
76 | VBoxBFE_SDKS += LIBSDL
|
---|
77 | VBoxBFE_DEFS += USE_SDL
|
---|
78 | VBoxBFE_SOURCES += \
|
---|
79 | SDLConsole.cpp \
|
---|
80 | SDLFramebuffer.cpp
|
---|
81 | endif
|
---|
82 |
|
---|
83 | # USB Support
|
---|
84 | ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
|
---|
85 | VBoxBFE_DEFS += VBOXBFE_WITH_USB
|
---|
86 | VBoxBFE_SOURCES += \
|
---|
87 | HostUSBImpl.cpp \
|
---|
88 | HostUSBDeviceImpl.cpp \
|
---|
89 | USBProxyService.cpp
|
---|
90 | VBoxBFE_SOURCES.l4 += \
|
---|
91 | USBProxyServiceLinux.cpp
|
---|
92 | VBoxBFE_SOURCES.linux += \
|
---|
93 | USBProxyServiceLinux.cpp
|
---|
94 | endif
|
---|
95 |
|
---|
96 | VBoxBFE_INCS = \
|
---|
97 | $(PATH_VBoxBFE) \
|
---|
98 | $(PATH_BIN)/sdk/include
|
---|
99 | ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
|
---|
100 | VBoxBFE_INCS += \
|
---|
101 | $(VBOX_XCURSOR_INCS)
|
---|
102 | endif
|
---|
103 | VBoxBFE_INCS.freebsd = \
|
---|
104 | /usr/include \
|
---|
105 | /usr/local/include
|
---|
106 |
|
---|
107 | VBoxBFE_LIBS = \
|
---|
108 | $(LIB_RUNTIME) \
|
---|
109 | $(LIB_VMM)
|
---|
110 | ifneq ($(filter-out win os2 l4,$(BUILD_TARGET)),)
|
---|
111 | VBoxBFE_LIBS += \
|
---|
112 | $(LIB_REM)
|
---|
113 | endif
|
---|
114 | ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
|
---|
115 | VBoxBFE_LIBS += \
|
---|
116 | $(VBOX_XCURSOR_LIBS) \
|
---|
117 | X11
|
---|
118 | VBoxBFE_LIBPATH += \
|
---|
119 | $(VBOX_LIBPATH_X11)
|
---|
120 | endif
|
---|
121 | ifndef VBOX_WITHOUT_COM
|
---|
122 | VBoxBFE_LIBS.win = \
|
---|
123 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
|
---|
124 | endif
|
---|
125 | VBoxBFE_LIBS.l4 = \
|
---|
126 | $(L4_LIBDIR)/libl4con-idl.a \
|
---|
127 | $(L4_LIBDIR)/libconstream-server.a \
|
---|
128 | $(L4_LIBDIR)/libvboxctrl-server.a \
|
---|
129 | $(L4_LIBDIR)/libl4sys.a
|
---|
130 | VBoxBFE_LIBS.darwin = \
|
---|
131 | $(LIB_SDK_LIBSDL_SDLMAIN)
|
---|
132 | VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
|
---|
133 |
|
---|
134 | VBoxBFE_CXXFLAGS.win = \
|
---|
135 | -EHsc
|
---|
136 | VBoxBFE_CXXFLAGS.linux = \
|
---|
137 | -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
|
---|
138 | -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
|
---|
139 | VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
|
---|
140 | $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
|
---|
141 | VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
|
---|
142 |
|
---|
143 | VBoxBFE_SDLConsole.cpp_DEPS = $(PATH_VBoxBFE)/Ico64x01.h
|
---|
144 |
|
---|
145 |
|
---|
146 | include $(PATH_KBUILD)/footer.kmk
|
---|
147 |
|
---|
148 | # Convert the pnm-file to a byte array.
|
---|
149 | $(PATH_VBoxBFE)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxBFE))
|
---|
150 | $(call MSG_TOOL,bin2c,VBoxBFE,$<,$@)
|
---|
151 | $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
|
---|