VirtualBox

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

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

Various Makefiles: Cleaning out uncessary _INCS.freebsd props (moved to the templates).

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