SOURCES revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
0N/A# Build TAP-Win32 driver.
553N/A# Build Command: build -cef
0N/A
0N/AMAJORCOMP=ntos
0N/AMINORCOMP=ndis
0N/A
0N/ATARGETNAME=tap0801
0N/ATARGETTYPE=DRIVER
0N/ATARGETPATH=.
0N/ATARGETLIBS=$(DDK_LIB_PATH)\ndis.lib $(DDK_LIB_PATH)\ntstrsafe.lib
0N/AINCLUDES=$(DDK_INCLUDE_PATH)
0N/A
0N/A# The TAP version numbers here must be >=
0N/A# TAP_WIN32_MIN_x values defined in
0N/A# config-win32.h
0N/AC_DEFINES=
0N/AC_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MAJOR_VERSION=8
0N/AC_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MINOR_VERSION=1
553N/A
553N/A# Use 00:FF:XX:XX:XX:XX format MAC addresses where
553N/A# the Xs are random (like Linux tap driver).
0N/A#
0N/A# Don't allow TAP device to be opened by more than one process
0N/A# at a time.
0N/AC_DEFINES=$(C_DEFINES)
0N/A
0N/A# Produce the same symbolic information for both free & checked builds.
0N/A# This will allow us to perform full source-level debugging on both
0N/A# builds without affecting the free build's performance.
288N/A!IF "$(DDKBUILDENV)" != "chk"
0N/ANTDEBUGTYPE=both
0N/AUSE_PDB=1
0N/A!ELSE
0N/ANTDEBUGTYPE=both
0N/AUSE_PDB=1
0N/A!ENDIF
0N/A
# Set compiler optimizations:
# /Ox - Full optimization enabled
# /Os - favor speed over size when optimizing
# /Od - Disable all optimizations
# /Oi - Enable optimization for intrinsic functions
# /Fc - Generate mixed assembler/source code files
#
# For both checked and free builds, make sure that any intrinsic
# functions are compiled correctly. To do this, ensure that /Oi
# is selected for both free and checked builds. There is a bug in
# VC++ 6.0 (at least through SP4) where, if you specify any
# intrinsic functions in your code with "#pragma intrinsic" but
# you don't have the /Oi optimization enabled, neither a call
# to the function, nor the intrinsic inline version of the function
# will end up in your object code. This bug only applies to free
# builds, but just to be safe we'll make sure that the flag is
# enabled for all builds.
!IF "$(DDKBUILDENV)" != "chk"
MSC_OPTIMIZATION=/Ox /Oi /Fc
!ELSE
MSC_OPTIMIZATION=/Od /Oi /Fc
!ENDIF
# Generate a linker map file just in case we need one for debugging
LINKER_FLAGS=$(LINKER_FLAGS) /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /MAPINFO:FIXUPS
# Generate a browser information file for use in IDE development
BROWSER_INFO=1
BROWSERFILE=$(TARGETNAME).BSC -n
# Abort compilation on warnings.
MSC_WARNING_LEVEL=/W3 /WX
SOURCES=tapdrvr.c resource.rc