Makefile.kmk revision e90bc1b0a8fb83acc1c1dc65176f143163cbb1a4
4b3769ce483ece06f60f983193712492b920144fJake Feasel# Makefile for VBoxSDL (a simple frontend based on SDL).
4b3769ce483ece06f60f983193712492b920144fJake Feasel# Copyright (C) 2006-2007 innotek GmbH
4b3769ce483ece06f60f983193712492b920144fJake Feasel# This file is part of VirtualBox Open Source Edition (OSE), as
4b3769ce483ece06f60f983193712492b920144fJake Feasel# available from http://www.virtualbox.org. This file is free software;
4b3769ce483ece06f60f983193712492b920144fJake Feasel# you can redistribute it and/or modify it under the terms of the GNU
4b3769ce483ece06f60f983193712492b920144fJake Feasel# General Public License as published by the Free Software Foundation,
4b3769ce483ece06f60f983193712492b920144fJake Feasel# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
4b3769ce483ece06f60f983193712492b920144fJake Feasel# distribution. VirtualBox OSE is distributed in the hope that it will
4b3769ce483ece06f60f983193712492b920144fJake Feasel# be useful, but WITHOUT ANY WARRANTY of any kind.
4b3769ce483ece06f60f983193712492b920144fJake FeaselDEPTH = ../../../..
4b3769ce483ece06f60f983193712492b920144fJake Feaselinclude $(PATH_KBUILD)/header.kmk
4b3769ce483ece06f60f983193712492b920144fJake FeaselPROGRAMS = VBoxSDL tstSDL
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerVBoxSDL_TEMPLATE = VBOXMAINCLIENTEXE
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerVBoxSDL_SDKS = LIBSDL
4b3769ce483ece06f60f983193712492b920144fJake FeaselVBoxSDL_SOURCES = \
4b3769ce483ece06f60f983193712492b920144fJake Feaselifndef VBOX_OSE
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerVBoxSDL_DEFS =
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan Mmillerifdef VBOX_WITH_SECURELABEL
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller VBoxSDL_DEFS += VBOX_SECURELABEL
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan Mmillerifdef VBOX_WITH_VRDP
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller VBoxSDL_DEFS += VBOX_VRDP
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerVBoxSDL_DEFS.freebsd = VBOXSDL_WITH_X11
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerVBoxSDL_DEFS.linux = _GNU_SOURCE VBOXSDL_WITH_X11
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerVBoxSDL_DEFS.solaris = VBOXSDL_WITH_X11
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan MmillerVBoxSDL_DEFS.solaris += VBOX_WITHOUT_XCURSOR ## @todo build xcursor or something.
0b90cf39da4c7ba2b843ffd3512d84d009b5dff0Brendan Mmillerifdef VBOX_OPENGL
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmillerifndef VBOX_OSE
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerVBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerVBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan MmillerVBoxSDL_INCS = \
b4260bb3e2303240ecf6c7e4e5639439c3f98889Brendan Mmiller $(PATH_VBoxSDL)
4b3769ce483ece06f60f983193712492b920144fJake Feaselifndef ($(filter-out win,$(BUILD_TARGET),)
4b3769ce483ece06f60f983193712492b920144fJake FeaselVBoxSDL_LIBS = \
4b3769ce483ece06f60f983193712492b920144fJake Feasel $(LIB_SDK_LIBSDL_SDLMAIN)
4b3769ce483ece06f60f983193712492b920144fJake Feasel $(LIB_XCURSOR)
4b3769ce483ece06f60f983193712492b920144fJake Feasel# @todo deal with missing xcursor on solaris.
4b3769ce483ece06f60f983193712492b920144fJake Feasel# $(LIB_XCURSOR)
4b3769ce483ece06f60f983193712492b920144fJake Feaselifdef VBOX_OPENGL
4b3769ce483ece06f60f983193712492b920144fJake Feasel $(VBOX_LIBPATH_X11)
4b3769ce483ece06f60f983193712492b920144fJake Feasel $(VBOX_LIBPATH_X11)
4b3769ce483ece06f60f983193712492b920144fJake Feasel -framework Foundation -framework AppKit
VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
tstSDL_DEFS.linux = VBOX_OPENGL
tstSDL_LIBS.linux += GL
include $(PATH_KBUILD)/footer.kmk