VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxTAP/Makefile.kmk@ 11836

Last change on this file since 11836 was 10049, checked in by vboxsync, 16 years ago

VBOX_KBUILD_HACKING

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 10049 2008-07-01 00:58:41Z vboxsync $
2## @file
3# Sub-Makefile for the Windows Network Driver.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22ifdef VBOX_KBUILD_HACKING
23SUB_DEPTH = ../../../..
24else
25DEPTH ?= ../../../..
26SUB_DEPTH = ..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30
31
32#
33# VBoxTap
34#
35SYSMODS.win += VBoxTAP
36VBoxTAP_TEMPLATE = VBOXR0DRV
37ifdef VBOX_SIGNING_MODE
38 VBoxTAP_NOINST = true
39endif
40VBoxTAP_SDKS = W2K3DDK WINPSDKINCS
41VBoxTAP_LDFLAGS.x86 = -Entry:DriverEntry@8
42VBoxTAP_LDFLAGS.amd64 = -Entry:DriverEntry
43VBoxTAP_SOURCES = \
44 tapdrvr.c \
45 VBoxTAP.rc
46VBoxTAP_LIBS = \
47 $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
48 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
49 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
50 $(PATH_SDK_W2K3DDK_LIB)/ndis.lib \
51 $(PATH_SDK_W2K3DDK_LIB)/ntstrsafe.lib \
52 $(PATH_SDK_W2K3DDK_LIB)/BufferOverflowK.lib
53
54#
55# Install the .inf.
56#
57INSTALLS.win += VBoxTAP-inf
58VBoxTAP-inf_INST = $(INST_BIN)
59VBoxTAP-inf_MODE = a+r,u+w
60VBoxTAP-inf_SOURCES = \
61 $(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.inf
62VBoxTAP-inf_CLEAN = $(VBoxTAP-inf_SOURCES)
63VBoxTAP-inf_BLDDIRS = $(PATH_TARGET)/VBoxTAPCat.dir
64
65$(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.inf: $(PATH_SUB_CURRENT)/VBoxTAP.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
66 $(call MSG_GENERATE,VBoxTAP-inf,$@,$<)
67 $(call VBOX_EDIT_INF_FN,$<,$@)
68
69ifdef VBOX_SIGNING_MODE
70VBoxTAP-inf_SOURCES += \
71 $(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.cat \
72 $(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.sys
73
74$(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.sys: $$(TARGET_VBoxTAP) | $$(call DIRDEP,$$(@D))
75 $(INSTALL) -m 644 $< $(@D)
76
77$(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.cat: \
78 $(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.inf \
79 $(PATH_TARGET)/VBoxTAPCat.dir/VBoxTAP.sys
80 $(call MSG_TOOL,Inf2Cat,VBoxTAP-inf,$@,$<)
81 $(INSTALL) -m 644 $(TARGET_VBoxTAP) $(@D)
82 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
83endif # signing
84
85
86# generate rules
87include $(KBUILD_PATH)/subfooter.kmk
88
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette