Makefile.kmk revision e12a4168124cdb9ebd1f61bc4a93f765bf399bef
# $Id$
## @file
# Makefile for the Windows NT5+ Guest Additions Mouse Filter Driver
#
#
# Copyright (C) 2011 Oracle Corporation
#
# 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.
#
SUB_DEPTH = ../../../../../..
include $(KBUILD_PATH)/subheader.kmk
#
# VBoxMouse - Windows NT5+ Guest Additions Mouse Filter Driver
#
SYSMODS += VBoxMouse
VBoxMouse_TEMPLATE = VBOXGUESTR0
VBoxMouse_DEFS = LOG_TO_BACKDOOR
#VBoxMouse_DEFS += LOG_ENABLED
VBoxMouse_CXXFLAGS = -Od
VBoxMouse_CFLAGS = -Od
VBoxMouse_LDFLAGS.x86 = -Entry:DriverEntry@8
VBoxMouse_LDFLAGS.amd64 = -Entry:DriverEntry
VBoxMouse_SOURCES = VBoxMFDriver.cpp \
VBoxMFInternal.cpp \
VBoxMF.rc
VBoxMouse_LIBS = \
$(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
$(PATH_SDK_W2K3DDK_LIB)/hal.lib \
$(VBOX_LIB_IPRT_GUEST_R0) \
$(VBOX_LIB_VBGL_R0)
#
# Install the inf & cat.
#
INSTALLS += VBoxMouse-inf
VBoxMouse-inf_INST = $(INST_ADDITIONS)
VBoxMouse-inf_MODE = a+r,u+w
ifndef VBOX_SIGNING_MODE
VBoxMouse-inf_SOURCES = VBoxMouse.inf
else
VBoxMouse-inf_SOURCES = \
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf \
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat
VBoxMouse-inf_CLEAN += \
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat \
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys \
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf
VBoxMouse-inf_BLDDIRS = $(PATH_TARGET)/VBoxMouseCat.dir
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf: $(PATH_SUB_CURRENT)/VBoxMouse.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
$(call MSG_GENERATE,VBoxMouse-inf,$@,$<)
$(call VBOX_EDIT_INF_FN,$<,$@)
$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat: $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf $$(TARGET_VBoxMouse)
$(call MSG_TOOL,Inf2Cat,VBoxMouse-inf,$@,$<)
$(INSTALL) -m 644 $(TARGET_VBoxMouse) $(@D)
$(call VBOX_MAKE_CAT_FN, $(@D),$@)
endif # signing
include $(KBUILD_PATH)/subfooter.kmk