VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxSDL/Makefile@ 1564

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

Removed libuuid dependency.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1#
2# Makefile for VBoxSDL (a simple frontend based on SDL).
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../../..
22include $(PATH_KBUILD)/header.kmk
23
24PROGRAMS = VBoxSDL tstSDL
25
26
27#
28# VBoxSDL
29#
30ifneq ($(filter win linux,$(BUILD_TARGET)),) ## @todo Convert these two to the other template too!
31 VBoxSDL_TEMPLATE = VBOXR3NPEXE
32 VBoxSDL_CXXFLAGS.win = \
33 -EHsc
34 VBoxSDL_CXXFLAGS.linux = \
35 -DNDEBUG -DTRIMMED -DVBOX_WITH_XPCOM -O -Wall -fno-rtti -fno-exceptions \
36 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
37else
38 VBoxSDL_TEMPLATE = VBOXMAINCLIENT
39endif
40VBoxSDL_SDKS = LIBSDL
41VBoxSDL_SOURCES = \
42 VBoxSDL.cpp \
43 Framebuffer.cpp \
44 Helper.cpp
45ifndef VBOX_OSE
46 VBoxSDL_SOURCES.win= \
47 win32/WinUI.cpp \
48 win32/TitlebarButtons.cpp \
49 win32/VBoxSDL.rc
50endif
51VBoxSDL_DEFS =
52ifdef VBOX_WITH_SECURELABEL
53 VBoxSDL_DEFS += VBOX_SECURELABEL
54endif
55ifdef VBOX_WITH_VRDP
56 VBoxSDL_DEFS += VBOX_VRDP
57endif
58VBoxSDL_DEFS.linux = _GNU_SOURCE
59ifdef VBOX_OPENGL
60 #VBoxSDL_DEFS.linux += VBOX_OPENGL
61endif
62ifndef VBOX_OSE
63 VBoxSDL_DEFS.win = VBOX_WIN32_UI
64endif
65VBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
66VBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
67VBoxSDL_INCS = \
68 $(PATH_BIN)/sdk/include
69ifdef VBOX_WITH_XPCOM
70 VBoxSDL_INCS = \
71 $(PATH_BIN)/sdk/include \
72 $(VBOX_XPCOM_INCS) \
73 $(PATH_VBoxSDL)
74 VBoxSDL_LIBS = \
75 $(LIB_SDK_LIBSDL_SDLMAIN) \
76 $(PATH_LIB)/VBoxXPCOM$(VBOX_SUFF_LIB) \
77 $(LIB_RUNTIME) \
78 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \
79 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL)
80 VBoxSDL_LIBS.linux = \
81 $(LIB_XCURSOR)
82 VBoxSDL_LDFLAGS.darwin = \
83 -framework Foundation -framework AppKit
84else # !VBOX_WITH_XPCOM
85 VBoxSDL_INCS.win = \
86 $(PATH_BIN)/sdk/include \
87 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) \
88 $(PATH_VBoxSDL)
89 VBoxSDL_LIBS.win = \
90 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \
91 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib \
92 $(LIB_RUNTIME)
93endif # !VBOX_WITH_XPCOM
94ifdef VBOX_OPENGL
95 #VBoxSDL_LIBS.linux += GL
96endif
97VBoxSDL_LIBPATH.linux = \
98 $(VBOX_LIBPATH_X11)
99
100VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
101Framebuffer.cpp_DEPS = $(PATH_VBoxSDL)/Ico64x01.h
102
103
104#
105# tstSDL
106#
107tstSDL_TEMPLATE = VBOXR3NPEXE
108tstSDL_SDKS = LIBSDL
109tstSDL_INST = $(INST_TESTCASE)
110tstSDL_SOURCES = \
111 VBoxSDLTest.cpp
112tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
113tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
114ifdef VBOX_OPENGL
115tstSDL_DEFS.linux = VBOX_OPENGL
116endif
117tstSDL_INCS = \
118 $(PATH_tstSDL)
119
120tstSDL_LIBS = \
121 $(LIB_RUNTIME)
122ifneq ($(filter-out win,$(BUILD_TARGET)),) # someone PLEASE explain why we don't use sdl main!
123tstSDL_LIBS += \
124 $(LIB_SDK_LIBSDL_SDLMAIN)
125endif
126ifdef VBOX_OPENGL
127tstSDL_LIBS.linux += GL
128endif
129tstSDL_LIBPATH.linux = \
130 $(VBOX_LIBPATH_X11)
131tstSDL_LDFLAGS.darwin = \
132 -framework Foundation -framework AppKit
133
134tstSDL_CXXFLAGS.win = \
135 -EHsc
136tstSDL_CXXFLAGS.linux = \
137 -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
138 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
139
140
141# generate rules
142include $(PATH_KBUILD)/footer.kmk
143
144
145# Convert the pnm-file to a byte array.
146$(PATH_VBoxSDL)/Ico64x01.h: ico64x01.pnm $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_VBoxSDL))
147 $(call MSG_L1,bin2c $< => $@)
148 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
149
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