VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxSDL/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 Author Date Id Revision
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 5359 2007-10-17 15:19:01Z 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
50VBoxSDL_DEFS.solaris += VBOX_WITHOUT_XCURSOR ## @todo build xcursor or something.
51ifdef VBOX_OPENGL
52 #VBoxSDL_DEFS.linux += VBOX_OPENGL
53endif
54ifndef VBOX_OSE
55 VBoxSDL_DEFS.win = VBOX_WIN32_UI
56endif
57VBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
58VBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
59
60VBoxSDL_INCS = \
61 $(PATH_BIN)/sdk/include \
62 $(PATH_VBoxSDL)
63ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
64VBoxSDL_INCS += \
65 $(VBOX_XCURSOR_INCS)
66endif
67VBoxSDL_INCS.freebsd = \
68 /usr/include \
69 /usr/local/include \
70 /usr/X11R6/include ## @todo figure this out.
71ifneq ($(filter-out win solaris,$(BUILD_TARGET)),)
72
73VBoxSDL_LIBS = \
74 $(LIB_SDK_LIBSDL_SDLMAIN)
75endif
76ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
77VBoxSDL_LIBS += \
78 $(VBOX_XCURSOR_LIBS)
79VBoxSDL_LIBPATH = \
80 $(VBOX_LIBPATH_X11)
81endif
82VBoxSDL_LIBS.solaris = \
83 $(LIB_X11)
84ifdef VBOX_OPENGL
85 #VBoxSDL_LIBS.linux += GL
86endif
87
88VBoxSDL_LDFLAGS.darwin = \
89 -framework Foundation -framework AppKit
90
91VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
92Framebuffer.cpp_DEPS = $(PATH_VBoxSDL)/Ico64x01.h
93
94
95#
96# tstSDL
97#
98tstSDL_TEMPLATE = VBOXR3NPEXE
99tstSDL_SDKS = LIBSDL
100tstSDL_INST = $(INST_TESTCASE)
101tstSDL_SOURCES = \
102 VBoxSDLTest.cpp
103tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
104tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
105ifdef VBOX_OPENGL
106tstSDL_DEFS.linux = VBOX_OPENGL
107endif
108tstSDL_INCS = \
109 $(PATH_tstSDL)
110
111tstSDL_LIBS = \
112 $(LIB_RUNTIME)
113ifneq ($(filter-out win solaris,$(BUILD_TARGET)),)
114tstSDL_LIBS += \
115 $(LIB_SDK_LIBSDL_SDLMAIN)
116endif
117
118ifdef VBOX_OPENGL
119tstSDL_LIBS.linux += GL
120endif
121ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
122tstSDL_LIBPATH = \
123 $(VBOX_LIBPATH_X11)
124tstSDL_INCS.freebsd = \
125 /usr/include \
126 /usr/local/include \
127 /usr/X11R6/include ## @todo figure this out.
128endif
129
130tstSDL_LDFLAGS.darwin = \
131 -framework Foundation -framework AppKit
132
133tstSDL_CXXFLAGS.win = \
134 -EHsc
135tstSDL_CXXFLAGS.linux = \
136 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
137 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
138
139
140# generate rules
141include $(PATH_KBUILD)/footer.kmk
142
143
144# Convert the pnm-file to a byte array.
145$(PATH_VBoxSDL)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
146 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
147 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
148
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