VirtualBox

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

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

More Solaris libXcursor stuff.

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