1 | # $Id: Makefile.kmk 5360 2007-10-17 15:24:14Z 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 |
|
---|
17 | DEPTH = ../../../..
|
---|
18 | include $(PATH_KBUILD)/header.kmk
|
---|
19 |
|
---|
20 | PROGRAMS = VBoxBFE
|
---|
21 |
|
---|
22 | #
|
---|
23 | # VBoxBFE
|
---|
24 | #
|
---|
25 | VBoxBFE_TEMPLATE = VBOXR3NPEXE
|
---|
26 | #ifdef VBOX_WITH_SECURELABEL
|
---|
27 | #VBoxBFE_DEFS += VBOX_SECURELABEL
|
---|
28 | #endif
|
---|
29 | ifdef VBOX_WITH_VRDP
|
---|
30 | VBoxBFE_DEFS += VBOX_VRDP
|
---|
31 | endif
|
---|
32 | ifneq ($(BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)
|
---|
33 | VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM
|
---|
34 | endif
|
---|
35 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
36 | VBoxBFE_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
37 | endif
|
---|
38 | VBoxBFE_DEFS.freebsd = VBOXBFE_WITH_X11
|
---|
39 | VBoxBFE_DEFS.l4 = _GNU_SOURCE
|
---|
40 | VBoxBFE_DEFS.linux = _GNU_SOURCE VBOXBFE_WITH_X11
|
---|
41 | VBoxBFE_DEFS.solaris = VBOXBFE_WITH_X11
|
---|
42 | VBoxBFE_DEFS.win.x86 = _WIN32_WINNT=0x0500
|
---|
43 |
|
---|
44 | VBoxBFE_SOURCES = \
|
---|
45 | VBoxBFE.cpp \
|
---|
46 | VMMDevInterface.cpp \
|
---|
47 | DisplayImpl.cpp \
|
---|
48 | MouseImpl.cpp \
|
---|
49 | KeyboardImpl.cpp \
|
---|
50 | StatusImpl.cpp \
|
---|
51 | MachineDebuggerImpl.cpp
|
---|
52 |
|
---|
53 | VBoxBFE_SOURCES.l4 = \
|
---|
54 | L4Console.cpp \
|
---|
55 | L4Framebuffer.cpp \
|
---|
56 | EmulCpp.cpp
|
---|
57 |
|
---|
58 | # SDL
|
---|
59 | ifneq ($(BUILD_TARGET),l4)
|
---|
60 | VBoxBFE_SDKS += LIBSDL
|
---|
61 | VBoxBFE_DEFS += USE_SDL
|
---|
62 | VBoxBFE_SOURCES += \
|
---|
63 | SDLConsole.cpp \
|
---|
64 | SDLFramebuffer.cpp
|
---|
65 | endif
|
---|
66 |
|
---|
67 | # USB Support
|
---|
68 | ifneq ($(filter-out os2 darwin,$(BUILD_TARGET)),)
|
---|
69 | VBoxBFE_DEFS += VBOXBFE_WITH_USB
|
---|
70 | VBoxBFE_SOURCES += \
|
---|
71 | HostUSBImpl.cpp \
|
---|
72 | HostUSBDeviceImpl.cpp \
|
---|
73 | USBProxyService.cpp
|
---|
74 | VBoxBFE_SOURCES.l4 += \
|
---|
75 | USBProxyServiceLinux.cpp
|
---|
76 | VBoxBFE_SOURCES.linux += \
|
---|
77 | USBProxyServiceLinux.cpp
|
---|
78 | endif
|
---|
79 |
|
---|
80 | VBoxBFE_INCS = \
|
---|
81 | $(PATH_VBoxBFE) \
|
---|
82 | $(PATH_BIN)/sdk/include
|
---|
83 | ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
|
---|
84 | VBoxBFE_INCS += \
|
---|
85 | $(VBOX_XCURSOR_INCS)
|
---|
86 | endif
|
---|
87 | VBoxBFE_INCS.freebsd = \
|
---|
88 | /usr/include \
|
---|
89 | /usr/local/include
|
---|
90 | VBoxBFE_INCS.linux = \
|
---|
91 | $(PATH_BIN)/sdk/include \
|
---|
92 | $(VBOX_XPCOM_INCS)
|
---|
93 |
|
---|
94 | VBoxBFE_LIBS = \
|
---|
95 | $(LIB_RUNTIME) \
|
---|
96 | $(LIB_VMM)
|
---|
97 | ifneq ($(filter-out win os2 l4,$(BUILD_TARGET)),)
|
---|
98 | VBoxBFE_LIBS += \
|
---|
99 | $(LIB_REM)
|
---|
100 | endif
|
---|
101 | ifneq ($(filter-out win os2 l4 darwin,$(BUILD_TARGET)),) # X11
|
---|
102 | VBoxBFE_LIBS += \
|
---|
103 | $(VBOX_XCURSOR_LIBS)
|
---|
104 | VBoxBFE_LIBPATH += \
|
---|
105 | $(VBOX_LIBPATH_X11)
|
---|
106 | endif
|
---|
107 | ifndef VBOX_WITHOUT_COM
|
---|
108 | VBoxBFE_LIBS.win = \
|
---|
109 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
|
---|
110 | endif
|
---|
111 | VBoxBFE_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
|
---|
118 | VBoxBFE_LIBS.darwin = \
|
---|
119 | $(LIB_SDK_LIBSDL_SDLMAIN)
|
---|
120 | VBoxBFE_LDFLAGS.darwin = -framework Foundation -framework AppKit
|
---|
121 |
|
---|
122 | VBoxBFE_LIBPATH.linux = \
|
---|
123 | $(LIBPATH_XPCOM) ## why?
|
---|
124 |
|
---|
125 |
|
---|
126 | VBoxBFE_CXXFLAGS.win = \
|
---|
127 | -EHsc
|
---|
128 | VBoxBFE_CXXFLAGS.linux = \
|
---|
129 | -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
|
---|
130 | -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
|
---|
131 | VBoxBFE_CXXFLAGS.l4 += -fno-rtti -nostdinc -Wno-non-virtual-dtor \
|
---|
132 | $(addprefix -I,$(VBOX_L4_GCC3_INCS) $(L4_INCDIR))
|
---|
133 | VBoxBFE_CFLAGS.linux += -O ## @todo what's this good for?
|
---|
134 |
|
---|
135 |
|
---|
136 | include $(PATH_KBUILD)/footer.kmk
|
---|
137 |
|
---|