VirtualBox

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

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

Biggest check-in ever. New source code headers for all (C) innotek files.

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