VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk@ 8258

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

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 8155 2008-04-18 15:16:47Z vboxsync $
2## @file
3# Sub-Makefile for VBoxSDL (a simple frontend based on SDL).
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
22DEPTH ?= ../../../..
23SUB_DEPTH = ..
24include $(PATH_KBUILD)/subheader.kmk
25
26PROGRAMS += VBoxSDL tstSDL
27
28
29#
30# VBoxSDL
31#
32
33VBoxSDL_TEMPLATE = VBOXMAINCLIENTEXE
34VBoxSDL_SDKS = LIBSDL
35VBoxSDL_SOURCES = \
36 VBoxSDL.cpp \
37 Framebuffer.cpp \
38 Helper.cpp
39VBoxSDL_SOURCES.darwin = \
40 VBoxSDLMain-darwin.m
41ifndef VBOX_OSE
42 VBoxSDL_SOURCES.win = \
43 win32/WinUI.cpp \
44 win32/TitlebarButtons.cpp \
45 win32/VBoxSDL.rc
46endif
47
48VBoxSDL_DEFS =
49ifdef VBOX_WITH_SECURELABEL
50 VBoxSDL_DEFS += VBOX_SECURELABEL
51endif
52ifdef VBOX_WITH_VRDP
53 VBoxSDL_DEFS += VBOX_VRDP
54endif
55VBoxSDL_DEFS.freebsd = VBOXSDL_WITH_X11
56VBoxSDL_DEFS.linux = _GNU_SOURCE VBOXSDL_WITH_X11
57VBoxSDL_DEFS.solaris = VBOXSDL_WITH_X11
58ifdef VBOX_OPENGL
59 #VBoxSDL_DEFS.linux += VBOX_OPENGL
60endif
61ifndef VBOX_OSE
62 VBoxSDL_DEFS.win = VBOX_WIN32_UI
63endif
64VBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
65VBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
66
67VBoxSDL_INCS = \
68 $(PATH_BIN)/sdk/include \
69 $(PATH_VBoxSDL)
70ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
71VBoxSDL_INCS += \
72 $(VBOX_XCURSOR_INCS)
73endif
74VBoxSDL_INCS.freebsd = \
75 /usr/include \
76 /usr/local/include \
77 /usr/X11R6/include ## @todo figure this out.
78ifneq ($(filter-out win solaris,$(BUILD_TARGET)),)
79
80VBoxSDL_LIBS = \
81 $(LIB_SDK_LIBSDL_SDLMAIN)
82endif
83ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
84VBoxSDL_LIBS += \
85 $(VBOX_XCURSOR_LIBS) \
86 X11
87VBoxSDL_LIBPATH = \
88 $(VBOX_LIBPATH_X11)
89endif
90ifdef VBOX_OPENGL
91 #VBoxSDL_LIBS.linux += GL
92endif
93
94VBoxSDL_LDFLAGS.darwin = \
95 -framework Foundation -framework AppKit
96
97VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
98Framebuffer.cpp_DEPS = $(PATH_VBoxSDL)/Ico64x01.h
99
100
101#
102# tstSDL
103#
104tstSDL_TEMPLATE = VBOXR3NPEXE
105tstSDL_SDKS = LIBSDL
106tstSDL_INST = $(INST_TESTCASE)
107tstSDL_SOURCES = \
108 VBoxSDLTest.cpp
109tstSDL_SOURCES.darwin = \
110 VBoxSDLMain-darwin.m
111tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
112tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
113ifdef VBOX_OPENGL
114tstSDL_DEFS.linux = VBOX_OPENGL
115endif
116tstSDL_INCS = \
117 $(PATH_tstSDL)
118
119tstSDL_LIBS = \
120 $(LIB_RUNTIME)
121ifneq ($(filter-out win solaris,$(BUILD_TARGET)),)
122tstSDL_LIBS += \
123 $(LIB_SDK_LIBSDL_SDLMAIN)
124endif
125
126ifdef VBOX_OPENGL
127tstSDL_LIBS.linux += GL
128endif
129ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
130tstSDL_LIBPATH = \
131 $(VBOX_LIBPATH_X11)
132tstSDL_INCS.freebsd = \
133 /usr/include \
134 /usr/local/include \
135 /usr/X11R6/include ## @todo figure this out.
136endif
137
138tstSDL_LDFLAGS.darwin = \
139 -framework Foundation -framework AppKit
140
141tstSDL_CXXFLAGS.win = \
142 -EHsc
143tstSDL_CXXFLAGS.linux = \
144 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
145 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
146
147
148# generate rules
149include $(PATH_KBUILD)/subfooter.kmk
150
151
152# Convert the pnm-file to a byte array.
153$(PATH_VBoxSDL)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxSDL/ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
154 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
155 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
156
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