Makefile.kmk revision e5fd93d2b7235866164234e9b6d3513f0df0e8db
36200fc93ca319528d532c4b082b2935b151a131vboxsync# $Id$
36200fc93ca319528d532c4b082b2935b151a131vboxsync## @file
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Sub-Makefile for the Windows guest graphics driver.
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsync
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
36200fc93ca319528d532c4b082b2935b151a131vboxsync# available from http://www.virtualbox.org. This file is free software;
36200fc93ca319528d532c4b082b2935b151a131vboxsync# you can redistribute it and/or modify it under the terms of the GNU
36200fc93ca319528d532c4b082b2935b151a131vboxsync# General Public License (GPL) as published by the Free Software
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
36200fc93ca319528d532c4b082b2935b151a131vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
36200fc93ca319528d532c4b082b2935b151a131vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
36200fc93ca319528d532c4b082b2935b151a131vboxsync# additional information or have any questions.
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsync
36200fc93ca319528d532c4b082b2935b151a131vboxsyncSUB_DEPTH = ../../../../..
36200fc93ca319528d532c4b082b2935b151a131vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
36200fc93ca319528d532c4b082b2935b151a131vboxsync
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Include sub-makefiles.
36200fc93ca319528d532c4b082b2935b151a131vboxsyncinclude $(PATH_SUB_CURRENT)/Miniport/Makefile.kmk
36200fc93ca319528d532c4b082b2935b151a131vboxsyncinclude $(PATH_SUB_CURRENT)/Display/Makefile.kmk
36200fc93ca319528d532c4b082b2935b151a131vboxsyncifdef VBOX_WITH_CROGL
36200fc93ca319528d532c4b082b2935b151a131vboxsyncinclude $(PATH_SUB_CURRENT)/crOpenGL/Makefile.kmk
36200fc93ca319528d532c4b082b2935b151a131vboxsyncendif
36200fc93ca319528d532c4b082b2935b151a131vboxsync
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsync# Install the inf & cat.
36200fc93ca319528d532c4b082b2935b151a131vboxsync# This has to be done here since it depends on both the
36200fc93ca319528d532c4b082b2935b151a131vboxsync# miniport driver and the display dll.
36200fc93ca319528d532c4b082b2935b151a131vboxsync#
36200fc93ca319528d532c4b082b2935b151a131vboxsyncINSTALLS += VBoxVideo-inf
36200fc93ca319528d532c4b082b2935b151a131vboxsyncVBoxVideo-inf_INST = $(INST_ADDITIONS)
36200fc93ca319528d532c4b082b2935b151a131vboxsyncVBoxVideo-inf_MODE = a+r,u+w
VBoxVideo-inf_SOURCES = \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf
ifdef VBOX_SIGN_ADDITIONS
VBoxVideo-inf_SOURCES += \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat
endif # signing
VBoxVideo-inf_CLEAN = $(VBoxVideo-inf_SOURCES)
VBoxVideo-inf_BLDDIRS = \
$(PATH_TARGET)/VBoxVideoCat.dir
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf: $(PATH_SUB_CURRENT)/Miniport/VBoxVideo.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
$(call MSG_GENERATE,VBoxVideo-inf,$@,$<)
$(call VBOX_EDIT_INF_FN,$<,$@)
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys: $$(TARGET_VBoxVideo) | $$(call DIRDEP,$$(@D))
$(INSTALL) -m 644 $< $(@D)
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll: $$(TARGET_VBoxDisp) | $$(call DIRDEP,$$(@D))
$(INSTALL) -m 644 $< $(@D)
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat: \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
$(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll
$(call MSG_TOOL,Inf2Cat,VBoxVideo-inf,$@,$<)
$(call VBOX_MAKE_CAT_FN, $(@D),$@)
include $(KBUILD_PATH)/subfooter.kmk