VirtualBox

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

Last change on this file since 10058 was 10058, checked in by vboxsync, 16 years ago

VBOX_KBUILD_HACKING.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Makefile.kmk 10058 2008-07-01 02:01:46Z 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
22ifdef VBOX_KBUILD_HACKING
23SUB_DEPTH = ../../../..
24else
25DEPTH ?= ../../../..
26SUB_DEPTH = ..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30PROGRAMS += VBoxBFE
31
32#
33# VBoxBFE
34#
35VBoxBFE_TEMPLATE = VBOXR3NPEXE
36#ifdef VBOX_WITH_SECURELABEL
37#VBoxBFE_DEFS += VBOX_SECURELABEL
38#endif
39ifdef VBOX_WITH_VRDP
40VBoxBFE_DEFS += VBOX_VRDP
41endif
42ifneq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
43VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
44endif
45ifdef VBOX_WITHOUT_LINUX_COMPILER_H
46VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
47endif
48VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
49VBoxBFE_DEFS.l4 = _GNU_SOURCE
50VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
51VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11
52ifdef VBOX_WITH_CROSSBOW
53 VBoxBFE_DEFS.solaris += VBOX_WITH_CROSSBOW
54endif
55VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
56
57VBoxBFE_SOURCES = \
58 VBoxBFE.cpp \
59 VMMDevInterface.cpp \
60 DisplayImpl.cpp \
61 MouseImpl.cpp \
62 KeyboardImpl.cpp \
63 StatusImpl.cpp \
64 MachineDebuggerImpl.cpp \
65 VMControl.cpp
66
67ifdef VBOX_WITH_HGCM
68VBoxBFE_DEFS += VBOX_HGCM
69VBoxBFE_SOURCES += \
70 HGCM.cpp \
71 HGCMThread.cpp \
72 HGCMObjects.cpp
73endif
74
75VBoxBFE_SOURCES.darwin = \
76 VBoxBFEMain-darwin.m
77
78VBoxBFE_SOURCES.l4 = \
79 L4Console.cpp \
80 L4Framebuffer.cpp \
81 L4IDLInterface.cpp \
82 EmulCpp.cpp
83
84# SDL
85ifneq ($(KBUILD_TARGET),l4)
86VBoxBFE_SDKS += LIBSDL
87VBoxBFE_DEFS += USE_SDL
88VBoxBFE_SOURCES += \
89 SDLConsole.cpp \
90 SDLFramebuffer.cpp
91endif
92
93# USB Support
94if1of ($(KBUILD_TARGET), l4 win)
95VBoxBFE_DEFS += VBOXBFE_WITH_USB
96VBoxBFE_SOURCES += \
97 HostUSBImpl.cpp \
98 HostUSBDeviceImpl.cpp \
99 USBProxyService.cpp
100VBoxBFE_SOURCES.l4 += \
101 USBProxyServiceLinux.cpp
102VBoxBFE_SOURCES.linux += \
103 USBProxyServiceLinux.cpp
104endif
105
106VBoxBFE_INCS = \
107 $(PATH_VBoxBFE) \
108 $(VBOX_PATH_SDK)/include
109ifneq ($(filter-out win os2 l4 darwin,$(KBUILD_TARGET)),) # X11
110VBoxBFE_INCS += \
111 $(VBOX_XCURSOR_INCS)
112endif
113VBoxBFE_INCS.freebsd = \
114 /usr/include \
115 /usr/local/include
116
117VBoxBFE_LIBS = \
118 $(LIB_RUNTIME) \
119 $(LIB_VMM)
120ifneq ($(filter-out win os2 l4,$(KBUILD_TARGET)),)
121VBoxBFE_LIBS += \
122 $(LIB_REM)
123endif
124ifneq ($(filter-out win os2 l4 darwin,$(KBUILD_TARGET)),) # X11
125VBoxBFE_LIBS += \
126 $(VBOX_XCURSOR_LIBS) \
127 X11
128VBoxBFE_LIBPATH += \
129 $(VBOX_LIBPATH_X11)
130endif
131ifndef VBOX_WITHOUT_COM
132VBoxBFE_LIBS.win = \
133 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
134endif
135VBoxBFE_LIBS.l4 = \
136 $(L4_LIBDIR)/libl4con-idl.a \
137 $(L4_LIBDIR)/libconstream-server.a \
138 $(L4_LIBDIR)/libvboxctrl-server.a \
139 $(L4_LIBDIR)/libl4sys.a
140VBoxBFE_LIBS.darwin = \
141 $(LIB_SDK_LIBSDL_SDLMAIN)
142VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
143
144VBoxBFE_CXXFLAGS.win = \
145 -EHsc
146VBoxBFE_CXXFLAGS.linux = \
147 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
148 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
149VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
150 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
151VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
152
153VBoxBFE_CLEAN = $(PATH_VBoxBFE)/Ico64x01.h
154VBoxBFE_SDLConsole.cpp_DEPS = $(PATH_VBoxBFE)/Ico64x01.h
155
156
157include $(KBUILD_PATH)/subfooter.kmk
158
159# Convert the pnm-file to a byte array.
160$(PATH_VBoxBFE)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxBFE/ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxBFE))
161 $(call MSG_TOOL,bin2c,VBoxBFE,$<,$@)
162 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
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