VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxTAP/SOURCES@ 400

Last change on this file since 400 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# Build TAP-Win32 driver.
2# Build Command: build -cef
3
4MAJORCOMP=ntos
5MINORCOMP=ndis
6
7TARGETNAME=tap0801
8TARGETTYPE=DRIVER
9TARGETPATH=.
10TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib $(DDK_LIB_PATH)\ntstrsafe.lib
11INCLUDES=$(DDK_INCLUDE_PATH)
12
13# The TAP version numbers here must be >=
14# TAP_WIN32_MIN_x values defined in
15# config-win32.h
16C_DEFINES=
17C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MAJOR_VERSION=8
18C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MINOR_VERSION=1
19
20# Use 00:FF:XX:XX:XX:XX format MAC addresses where
21# the Xs are random (like Linux tap driver).
22#
23# Don't allow TAP device to be opened by more than one process
24# at a time.
25C_DEFINES=$(C_DEFINES)
26
27# Produce the same symbolic information for both free & checked builds.
28# This will allow us to perform full source-level debugging on both
29# builds without affecting the free build's performance.
30!IF "$(DDKBUILDENV)" != "chk"
31NTDEBUGTYPE=both
32USE_PDB=1
33!ELSE
34NTDEBUGTYPE=both
35USE_PDB=1
36!ENDIF
37
38# Set compiler optimizations:
39# /Ox - Full optimization enabled
40# /Os - favor speed over size when optimizing
41# /Od - Disable all optimizations
42# /Oi - Enable optimization for intrinsic functions
43# /Fc - Generate mixed assembler/source code files
44#
45# For both checked and free builds, make sure that any intrinsic
46# functions are compiled correctly. To do this, ensure that /Oi
47# is selected for both free and checked builds. There is a bug in
48# VC++ 6.0 (at least through SP4) where, if you specify any
49# intrinsic functions in your code with "#pragma intrinsic" but
50# you don't have the /Oi optimization enabled, neither a call
51# to the function, nor the intrinsic inline version of the function
52# will end up in your object code. This bug only applies to free
53# builds, but just to be safe we'll make sure that the flag is
54# enabled for all builds.
55
56!IF "$(DDKBUILDENV)" != "chk"
57MSC_OPTIMIZATION=/Ox /Oi /Fc
58!ELSE
59MSC_OPTIMIZATION=/Od /Oi /Fc
60!ENDIF
61
62# Generate a linker map file just in case we need one for debugging
63LINKER_FLAGS=$(LINKER_FLAGS) /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /MAPINFO:FIXUPS
64
65# Generate a browser information file for use in IDE development
66BROWSER_INFO=1
67BROWSERFILE=$(TARGETNAME).BSC -n
68
69# Abort compilation on warnings.
70MSC_WARNING_LEVEL=/W3 /WX
71
72SOURCES=tapdrvr.c resource.rc
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