VirtualBox

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

Last change on this file since 7285 was 6759, checked in by vboxsync, 17 years ago

Converted all but VirtualBox/Makefile.kmk to sub-makefiles.

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