VirtualBox

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

Last change on this file since 3188 was 3188, checked in by vboxsync, 18 years ago

Build: Renamed VBox COM Glue library from VBoxXPCOM.[a|lib] to VBoxCOM.[a|lib] (to match one on Win32 and to remove name ambiguity caused by VBoxXPCOM.[so|dll]).

  • 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 3188 2007-06-20 17:24:15Z 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#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../../..
23include $(PATH_KBUILD)/header.kmk
24
25PROGRAMS = VBoxSDL tstSDL
26
27
28#
29# VBoxSDL
30#
31
32VBoxSDL_TEMPLATE = VBOXMAINCLIENTEXE
33VBoxSDL_SDKS = LIBSDL
34VBoxSDL_SOURCES = \
35 VBoxSDL.cpp \
36 Framebuffer.cpp \
37 Helper.cpp
38ifndef VBOX_OSE
39 VBoxSDL_SOURCES.win= \
40 win32/WinUI.cpp \
41 win32/TitlebarButtons.cpp \
42 win32/VBoxSDL.rc
43endif
44VBoxSDL_DEFS =
45ifdef VBOX_WITH_SECURELABEL
46 VBoxSDL_DEFS += VBOX_SECURELABEL
47endif
48ifdef VBOX_WITH_VRDP
49 VBoxSDL_DEFS += VBOX_VRDP
50endif
51VBoxSDL_DEFS.linux = _GNU_SOURCE
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
60VBoxSDL_INCS = \
61 $(PATH_BIN)/sdk/include \
62 $(PATH_VBoxSDL)
63VBoxSDL_LIBS.linux = \
64 $(LIB_XCURSOR)
65VBoxSDL_LDFLAGS.darwin = \
66 -framework Foundation -framework AppKit
67ifdef VBOX_OPENGL
68 #VBoxSDL_LIBS.linux += GL
69endif
70VBoxSDL_LIBPATH.linux = \
71 $(VBOX_LIBPATH_X11)
72
73VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
74Framebuffer.cpp_DEPS = $(PATH_VBoxSDL)/Ico64x01.h
75
76
77#
78# tstSDL
79#
80tstSDL_TEMPLATE = VBOXR3NPEXE
81tstSDL_SDKS = LIBSDL
82tstSDL_INST = $(INST_TESTCASE)
83tstSDL_SOURCES = \
84 VBoxSDLTest.cpp
85tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
86tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
87ifdef VBOX_OPENGL
88tstSDL_DEFS.linux = VBOX_OPENGL
89endif
90tstSDL_INCS = \
91 $(PATH_tstSDL)
92
93tstSDL_LIBS = \
94 $(LIB_RUNTIME)
95ifneq ($(filter-out win,$(BUILD_TARGET)),) # someone PLEASE explain why we don't use sdl main!
96tstSDL_LIBS += \
97 $(LIB_SDK_LIBSDL_SDLMAIN)
98endif
99ifdef VBOX_OPENGL
100tstSDL_LIBS.linux += GL
101endif
102tstSDL_LIBPATH.linux = \
103 $(VBOX_LIBPATH_X11)
104tstSDL_LDFLAGS.darwin = \
105 -framework Foundation -framework AppKit
106
107tstSDL_CXXFLAGS.win = \
108 -EHsc
109tstSDL_CXXFLAGS.linux = \
110 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
111 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
112
113
114# generate rules
115include $(PATH_KBUILD)/footer.kmk
116
117
118# Convert the pnm-file to a byte array.
119$(PATH_VBoxSDL)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
120 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
121 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
122
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