VirtualBox

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

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

VBoxBFE: Forward port of the 1.5 branch enhancements (shared folders, savestate, L4 IDL interface)

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