Makefile.kmk revision 43b9d660479e358a9b61827b8037ea65268345e9
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# Makefile for VBoxSDL (a simple frontend based on SDL).
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# Copyright (C) 2006-2007 innotek GmbH
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# This file is part of VirtualBox Open Source Edition (OSE), as
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# available from http://www.virtualbox.org. This file is free software;
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# you can redistribute it and/or modify it under the terms of the GNU
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# General Public License as published by the Free Software Foundation,
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# distribution. VirtualBox OSE is distributed in the hope that it will
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# be useful, but WITHOUT ANY WARRANTY of any kind.
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteDEPTH = ../../../..
7cbae22b7560eefcf086863923459880aa87f014Jaco Joosteinclude $(PATH_KBUILD)/header.kmk
7cbae22b7560eefcf086863923459880aa87f014Jaco JoostePROGRAMS = VBoxSDL tstSDL
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteVBoxSDL_TEMPLATE = VBOXMAINCLIENTEXE
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteVBoxSDL_SDKS = LIBSDL
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteVBoxSDL_SOURCES = \
15f60c5ba586de69e94c6045e9bf91103e924020James Phillpottsifndef VBOX_OSE
7cbae22b7560eefcf086863923459880aa87f014Jaco JoosteVBoxSDL_DEFS =
7cbae22b7560eefcf086863923459880aa87f014Jaco Joosteifdef VBOX_WITH_SECURELABEL
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste VBoxSDL_DEFS += VBOX_SECURELABEL
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Joosteifdef VBOX_WITH_VRDP
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste VBoxSDL_DEFS += VBOX_VRDP
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteVBoxSDL_DEFS.freebsd = VBOXSDL_WITH_X11
95ac3084c619fd042f83410e5436ec3f1c3da190Brian BaileyVBoxSDL_DEFS.linux = _GNU_SOURCE VBOXSDL_WITH_X11
95ac3084c619fd042f83410e5436ec3f1c3da190Brian BaileyVBoxSDL_DEFS.solaris = VBOXSDL_WITH_X11
95ac3084c619fd042f83410e5436ec3f1c3da190Brian Baileyifdef VBOX_OPENGL
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Joosteifndef VBOX_OSE
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste VBoxSDL_DEFS.win = VBOX_WIN32_UI
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteVBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteVBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteVBoxSDL_INCS = \
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste $(PATH_VBoxSDL)
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Joosteifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco JoosteVBoxSDL_INCS += \
c423fd5d4f121413c5e72c134412b6ce5daa0dd9Jaco Jooste $(VBOX_XCURSOR_INCS)
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste /usr/X11R6/include ## @todo figure this out.
#VBoxSDL_LIBS.linux += GL
VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
tstSDL_DEFS.linux = VBOX_OPENGL
tstSDL_LIBS.linux += GL
/usr/X11R6/include ## @todo figure this out.
include $(PATH_KBUILD)/footer.kmk