Makefile.kmk revision f51668f672f695a50aac3c160e4277e5c1069375
# $Id$
## @file
# Makefile for the OS/2 Guest Additions Driver.
#
#
# Copyright (C) 2007 innotek GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
DEPTH = ../../../../..
include $(PATH_KBUILD)/subheader.kmk
#
# VBoxGuest.sys - The OS/2 driver.
#
ifeq ($(BUILD_PLATFORM),os2)
SYSMODS.os2 += VBoxGuest
VBoxGuest_TEMPLATE = VBOXOS2GUESTR0
VBoxGuest_DEFS = VBGL_VBOXGUEST VBOX_HGCM
VBoxGuest_INCS := $(PATH_SUB_CURRENT)
#VBoxGuest_LDFLAGS = -s -t -v
VBoxGuest_SOURCES = \
VBoxGuestA-os2.asm \
VBoxGuest-os2.def
VBoxGuest_LIBS = \
$(TARGET_VBoxGuestLib) \
$(VBOX_LIB_VBGL_OS2_R0BASE) \
$(VBOX_LIB_IPRT_OS2_GUEST_R0) \
$(VBOX_GCC_LIBGCC) \
end
## When debugging init with kDrvTest:
#VBoxGuest_NAME = VBoxGst
# temp hack to ensure that VBoxGuestA-os2.asm is first in the link.
LIBRARIES += VBoxGuestLib
VBoxGuestLib_TEMPLATE = VBOXOS2GUESTR0LIB
VBoxGuestLib_NOINST = 1
VBoxGuestLib_DEFS = VBGL_VBOXGUEST VBOX_HGCM
VBoxGuestLib_INCS := \
$(PATH_SUB_CURRENT) \
$(PATH_TARGET) \
$(PATH_ROOT)/src/VBox/Runtime/include
VBoxGuestLib_SOURCES = \
VBoxGuest-os2.cpp \
VBoxGuest.cpp
endif
#
# vboxadd.o - The Solaris Guest Driver.
#
ifeq ($(BUILD_PLATFORM),solaris)
SYSMODS.solaris += vboxadd
vboxadd_TEMPLATE = VBOXGUESTR0
vboxadd_DEFS = VBGL_VBOXGUEST VBOX_HGCM
vboxadd_INCS := $(PATH_SUB_CURRENT) \
$(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris
vboxadd_SOURCES = \
VBoxGuest-solaris.c \
VBoxGuest.cpp
endif
include $(PATH_KBUILD)/subfooter.kmk