VirtualBox

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

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

most RT_OS_LINUX -> VBOXSDL_WITH_X11. On e OS/2 workaround.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1# $Id: Makefile.kmk 4637 2007-09-09 08:42:06Z 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
39VBoxSDL_DEFS =
40ifdef VBOX_WITH_SECURELABEL
41 VBoxSDL_DEFS += VBOX_SECURELABEL
42endif
43ifdef VBOX_WITH_VRDP
44 VBoxSDL_DEFS += VBOX_VRDP
45endif
46VBoxSDL_DEFS.freebsd = VBOXSDL_WITH_X11
47VBoxSDL_DEFS.linux = _GNU_SOURCE VBOXSDL_WITH_X11
48VBoxSDL_DEFS.solaris = VBOXSDL_WITH_X11
49ifdef VBOX_OPENGL
50 #VBoxSDL_DEFS.linux += VBOX_OPENGL
51endif
52ifndef VBOX_OSE
53 VBoxSDL_DEFS.win = VBOX_WIN32_UI
54endif
55VBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
56VBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
57VBoxSDL_INCS = \
58 $(PATH_BIN)/sdk/include \
59 $(PATH_VBoxSDL)
60ifndef ($(filter-out win,$(BUILD_TARGET),)
61VBoxSDL_LIBS = \
62 $(LIB_SDK_LIBSDL_SDLMAIN)
63endif
64VBoxSDL_LIBS.linux = \
65 $(LIB_XCURSOR)
66VBoxSDL_LDFLAGS.darwin = \
67 -framework Foundation -framework AppKit
68ifdef VBOX_OPENGL
69 #VBoxSDL_LIBS.linux += GL
70endif
71VBoxSDL_LIBPATH.linux = \
72 $(VBOX_LIBPATH_X11)
73
74VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
75Framebuffer.cpp_DEPS = $(PATH_VBoxSDL)/Ico64x01.h
76
77
78#
79# tstSDL
80#
81tstSDL_TEMPLATE = VBOXR3NPEXE
82tstSDL_SDKS = LIBSDL
83tstSDL_INST = $(INST_TESTCASE)
84tstSDL_SOURCES = \
85 VBoxSDLTest.cpp
86tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
87tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
88ifdef VBOX_OPENGL
89tstSDL_DEFS.linux = VBOX_OPENGL
90endif
91tstSDL_INCS = \
92 $(PATH_tstSDL)
93
94tstSDL_LIBS = \
95 $(LIB_RUNTIME)
96ifneq ($(filter-out win,$(BUILD_TARGET)),) # someone PLEASE explain why we don't use sdl main!
97tstSDL_LIBS += \
98 $(LIB_SDK_LIBSDL_SDLMAIN)
99endif
100ifdef VBOX_OPENGL
101tstSDL_LIBS.linux += GL
102endif
103tstSDL_LIBPATH.linux = \
104 $(VBOX_LIBPATH_X11)
105tstSDL_LDFLAGS.darwin = \
106 -framework Foundation -framework AppKit
107
108tstSDL_CXXFLAGS.win = \
109 -EHsc
110tstSDL_CXXFLAGS.linux = \
111 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
112 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
113
114
115# generate rules
116include $(PATH_KBUILD)/footer.kmk
117
118
119# Convert the pnm-file to a byte array.
120$(PATH_VBoxSDL)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
121 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
122 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
123
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