VirtualBox

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

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

No SDLmain on solaris for whatever reason.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 4881 2007-09-18 06:22:41Z 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
49VBoxSDL_DEFS.solaris += VBOX_WITHOUT_XCURSOR ## @todo build xcursor or something.
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
58VBoxSDL_INCS = \
59 $(PATH_BIN)/sdk/include \
60 $(PATH_VBoxSDL)
61ifndef ($(filter-out win solaris,$(BUILD_TARGET),)
62VBoxSDL_LIBS = \
63 $(LIB_SDK_LIBSDL_SDLMAIN)
64endif
65VBoxSDL_LIBS.linux = \
66 $(LIB_XCURSOR)
67# @todo deal with missing xcursor on solaris.
68#VBoxSDL_LIBS.solaris = \
69# $(LIB_XCURSOR)
70VBoxSDL_LIBS.solaris += \
71 $(LIB_X11)
72ifdef VBOX_OPENGL
73 #VBoxSDL_LIBS.linux += GL
74endif
75VBoxSDL_LIBPATH.linux = \
76 $(VBOX_LIBPATH_X11)
77VBoxSDL_LIBPATH.solaris = \
78 $(VBOX_LIBPATH_X11)
79VBoxSDL_LDFLAGS.darwin = \
80 -framework Foundation -framework AppKit
81
82VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
83Framebuffer.cpp_DEPS = $(PATH_VBoxSDL)/Ico64x01.h
84
85
86#
87# tstSDL
88#
89tstSDL_TEMPLATE = VBOXR3NPEXE
90tstSDL_SDKS = LIBSDL
91tstSDL_INST = $(INST_TESTCASE)
92tstSDL_SOURCES = \
93 VBoxSDLTest.cpp
94tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
95tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
96ifdef VBOX_OPENGL
97tstSDL_DEFS.linux = VBOX_OPENGL
98endif
99tstSDL_INCS = \
100 $(PATH_tstSDL)
101
102tstSDL_LIBS = \
103 $(LIB_RUNTIME)
104ifneq ($(filter-out win,$(BUILD_TARGET)),) # someone PLEASE explain why we don't use sdl main!
105tstSDL_LIBS += \
106 $(LIB_SDK_LIBSDL_SDLMAIN)
107endif
108ifdef VBOX_OPENGL
109tstSDL_LIBS.linux += GL
110endif
111tstSDL_LDFLAGS.darwin = \
112 -framework Foundation -framework AppKit
113tstSDL_LIBPATH.linux = \
114 $(VBOX_LIBPATH_X11)
115tstSDL_LIBPATH.solaris = \
116 $(VBOX_LIBPATH_X11)
117
118tstSDL_CXXFLAGS.win = \
119 -EHsc
120tstSDL_CXXFLAGS.linux = \
121 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
122 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
123
124
125# generate rules
126include $(PATH_KBUILD)/footer.kmk
127
128
129# Convert the pnm-file to a byte array.
130$(PATH_VBoxSDL)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
131 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
132 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
133
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