VirtualBox

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

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

LIB_X11 -> X11

  • 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 5575 2007-10-31 12:14:39Z 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
33VBoxSDL_SOURCES.darwin = \
34 VBoxSDLMain-darwin.m
35ifndef VBOX_OSE
36 VBoxSDL_SOURCES.win = \
37 win32/WinUI.cpp \
38 win32/TitlebarButtons.cpp \
39 win32/VBoxSDL.rc
40endif
41
42VBoxSDL_DEFS =
43ifdef VBOX_WITH_SECURELABEL
44 VBoxSDL_DEFS += VBOX_SECURELABEL
45endif
46ifdef VBOX_WITH_VRDP
47 VBoxSDL_DEFS += VBOX_VRDP
48endif
49VBoxSDL_DEFS.freebsd = VBOXSDL_WITH_X11
50VBoxSDL_DEFS.linux = _GNU_SOURCE VBOXSDL_WITH_X11
51VBoxSDL_DEFS.solaris = VBOXSDL_WITH_X11
52ifdef VBOX_OPENGL
53 #VBoxSDL_DEFS.linux += VBOX_OPENGL
54endif
55ifndef VBOX_OSE
56 VBoxSDL_DEFS.win = VBOX_WIN32_UI
57endif
58VBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
59VBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
60
61VBoxSDL_INCS = \
62 $(PATH_BIN)/sdk/include \
63 $(PATH_VBoxSDL)
64ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
65VBoxSDL_INCS += \
66 $(VBOX_XCURSOR_INCS)
67endif
68VBoxSDL_INCS.freebsd = \
69 /usr/include \
70 /usr/local/include \
71 /usr/X11R6/include ## @todo figure this out.
72ifneq ($(filter-out win solaris,$(BUILD_TARGET)),)
73
74VBoxSDL_LIBS = \
75 $(LIB_SDK_LIBSDL_SDLMAIN)
76endif
77ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
78VBoxSDL_LIBS += \
79 $(VBOX_XCURSOR_LIBS) \
80 X11
81VBoxSDL_LIBPATH = \
82 $(VBOX_LIBPATH_X11)
83endif
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_SOURCES.darwin = \
104 VBoxSDLMain-darwin.m
105tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
106tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
107ifdef VBOX_OPENGL
108tstSDL_DEFS.linux = VBOX_OPENGL
109endif
110tstSDL_INCS = \
111 $(PATH_tstSDL)
112
113tstSDL_LIBS = \
114 $(LIB_RUNTIME)
115ifneq ($(filter-out win solaris,$(BUILD_TARGET)),)
116tstSDL_LIBS += \
117 $(LIB_SDK_LIBSDL_SDLMAIN)
118endif
119
120ifdef VBOX_OPENGL
121tstSDL_LIBS.linux += GL
122endif
123ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
124tstSDL_LIBPATH = \
125 $(VBOX_LIBPATH_X11)
126tstSDL_INCS.freebsd = \
127 /usr/include \
128 /usr/local/include \
129 /usr/X11R6/include ## @todo figure this out.
130endif
131
132tstSDL_LDFLAGS.darwin = \
133 -framework Foundation -framework AppKit
134
135tstSDL_CXXFLAGS.win = \
136 -EHsc
137tstSDL_CXXFLAGS.linux = \
138 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
139 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
140
141
142# generate rules
143include $(PATH_KBUILD)/footer.kmk
144
145
146# Convert the pnm-file to a byte array.
147$(PATH_VBoxSDL)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
148 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
149 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
150
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