VirtualBox

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

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

Solaris: LIB_XCURSOR -> VBOX_XCURSOR_LIBS/INCS. Qt in tools (solaris only).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Makefile.kmk 5359 2007-10-17 15:19:01Z 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 VBOXBFE_WITHOUT_XCURSOR
42VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
43
44VBoxBFE_SOURCES = \
45 VBoxBFE.cpp \
46 VMMDevInterface.cpp \
47 DisplayImpl.cpp \
48 MouseImpl.cpp \
49 KeyboardImpl.cpp \
50 StatusImpl.cpp \
51 MachineDebuggerImpl.cpp
52
53VBoxBFE_SOURCES.l4 = \
54 L4Console.cpp \
55 L4Framebuffer.cpp \
56 EmulCpp.cpp
57
58# SDL
59ifneq ($(BUILD_TARGET),l4)
60VBoxBFE_SDKS += LIBSDL
61VBoxBFE_DEFS += USE_SDL
62VBoxBFE_SOURCES += \
63 SDLConsole.cpp \
64 SDLFramebuffer.cpp
65endif
66
67# USB Support
68ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
69VBoxBFE_DEFS += VBOXBFE_WITH_USB
70VBoxBFE_SOURCES += \
71 HostUSBImpl.cpp \
72 HostUSBDeviceImpl.cpp \
73 USBProxyService.cpp
74VBoxBFE_SOURCES.l4 += \
75 USBProxyServiceLinux.cpp
76VBoxBFE_SOURCES.linux += \
77 USBProxyServiceLinux.cpp
78endif
79
80VBoxBFE_INCS = \
81 $(PATH_VBoxBFE) \
82 $(PATH_BIN)/sdk/include
83ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
84VBoxBFE_INCS += \
85 $(VBOX_XCURSOR_INCS)
86endif
87VBoxBFE_INCS.freebsd = \
88 /usr/include \
89 /usr/local/include
90VBoxBFE_INCS.linux = \
91 $(PATH_BIN)/sdk/include \
92 $(VBOX_XPCOM_INCS)
93
94VBoxBFE_LIBS = \
95 $(LIB_RUNTIME) \
96 $(LIB_VMM)
97ifneq ($(filter-out win os2 l4,$(BUILD_TARGET)),)
98VBoxBFE_LIBS += \
99 $(LIB_REM)
100endif
101ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
102VBoxBFE_LIBS += \
103 $(VBOX_XCURSOR_LIBS)
104VBoxBFE_LIBPATH += \
105 $(VBOX_LIBPATH_X11)
106endif
107ifndef VBOX_WITHOUT_COM
108VBoxBFE_LIBS.win = \
109 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
110endif
111VBoxBFE_LIBS.l4 = \
112 $(L4_LIBDIR)/libl4con-idl.a \
113 $(L4_LIBDIR)/libdm_generic.a \
114 $(L4_LIBDIR)/libdm_mem.a \
115 $(L4_LIBDIR)/libnames.a \
116 $(L4_LIBDIR)/libconstream-server.a \
117 $(L4_LIBDIR)/libl4sys.a
118VBoxBFE_LIBS.darwin = \
119 $(LIB_SDK_LIBSDL_SDLMAIN)
120VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
121
122VBoxBFE_LIBPATH.linux = \
123 $(LIBPATH_XPCOM) ## why?
124
125
126VBoxBFE_CXXFLAGS.win = \
127 -EHsc
128VBoxBFE_CXXFLAGS.linux = \
129 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
130 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
131VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
132 $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
133VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
134
135
136include $(PATH_KBUILD)/footer.kmk
137
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