Makefile revision a3ce8948460ea76f289a87554c10887f41aa83ae
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell#
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# Makefile for the common guest addition code library.
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste#
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste#
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# Copyright (C) 2006 InnoTek Systemberatung GmbH
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste#
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 Jooste#
7cbae22b7560eefcf086863923459880aa87f014Jaco Jooste# If you received this file as part of a commercial VirtualBox
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell# distribution, then only the terms of your commercial VirtualBox
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell# license agreement apply instead of the previous paragraph.
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell#
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellDEPTH = ../../../../..
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellinclude $(PATH_KBUILD)/header.kmk
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell# As we build Windows Additions on Linux as well, we need a
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell# separate Linux target for each library so that both platforms
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell# are built.
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellifdef VBOX_WITH_WIN32_ADDITIONS
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell ifndef VBOX_ADDITIONS_LINUX_ONLY
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell LIBRARIES += \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell VBoxGuestLib \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell VBoxGuestLibBase
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell endif
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellendif
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell LIBRARIES += \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell VBoxGuestLibLinux \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell VBoxGuestLibBaseLinux
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellendif
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellSOURCES_GUESTLIB = \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell GenericRequest.cpp \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell SysHlp.cpp \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell PhysHeap.cpp \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell Init.cpp \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell VMMDev.cpp \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell HGCM.cpp \
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell HGCMInternal.cpp \
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnell VBoxCalls.c
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnellSOURCES_GUESTLIBBASE = \
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnell $(SOURCES_GUESTLIB)
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnell
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnell#
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnell# VBoxGuestLib
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnell#
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnellVBoxGuestLib_TEMPLATE = VBOXW32GUESTR0LIB
09a132902baa28c2f781680ea18958f95491f5bcCraig McDonnellVBoxGuestLib_SDKS.win = W2K3DDKX86 WIN32SDK
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellVBoxGuestLib_SOURCES = \
9689679261c7316504327bc5c012c9808bcc3e18Jaco Jooste $(SOURCES_GUESTLIB)
9689679261c7316504327bc5c012c9808bcc3e18Jaco JoosteVBoxGuestLib_INCS = \
9689679261c7316504327bc5c012c9808bcc3e18Jaco Jooste $(PATH_VBoxGuestLib)
9689679261c7316504327bc5c012c9808bcc3e18Jaco JoosteVBoxGuestLib_INCS.win = \
9689679261c7316504327bc5c012c9808bcc3e18Jaco Jooste ../../WINNT/SharedFolders/include
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnellVBoxGuestLib_DEFS = IN_RING0 IN_RT_R0 VBOX_HGCM LOG_TO_BACKDOOR
aa3a2aee90d1c61946a08c839d9838be7658b453Craig McDonnell#VBoxGuestLib_DEFS += LOG_ENABLED
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington# VBoxGuestLibBase
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_TEMPLATE = VBOXW32GUESTR0LIB
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_SDKS.win = $(VBoxGuestLib_SDKS.win)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_SOURCES = $(SOURCES_GUESTLIBBASE)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_INCS = $(VBoxGuestLib_INCS)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_INCS.win = $(VBoxGuestLib_INCS.win)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_DEFS = $(VBoxGuestLib_DEFS) VBGL_VBOXGUEST
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBase_DEFS.win = $(VBoxGuestLib_DEFS.win)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#VBoxGuestLibBase_DEFS += LOG_ENABLED
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington# VBoxGuestLibLinux
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibLinux_SOURCES = $(SOURCES_GUESTLIB)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington# VBoxGuestLibBaseLinux
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington#
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBaseLinux_SOURCES = $(SOURCES_GUESTLIBBASE)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)
7436da7252e66e7a698239a5c6b9ca04df24179aPhill CunningtonVBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunningtoninclude $(PATH_KBUILD)/footer.kmk
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington
7436da7252e66e7a698239a5c6b9ca04df24179aPhill Cunnington