Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

92 lines
2.1 KiB

!IF 0
Copyright (C) Microsoft Corporation, 1998 - 1999
Module Name:
sources.
!ENDIF
TARGETNAME=redbook
TARGETPATH=obj
TARGETTYPE=DRIVER
TARGETLIBS=$(DDK_LIB_PATH)\ks.lib \
$(DDK_LIB_PATH)\ksguid.lib
INCLUDES=\
..\inc
#
# change the below line to use old-school KdPrintEx()
# instead of Event Tracing for Windows
#
# USE_OLD_KD_PRINT_MACROS=1
!IFNDEF USE_OLD_KD_PRINT_MACROS
#
# enable the use of tracing in the code itself
#
C_DEFINES=$(C_DEFINES) -D_USE_ETW
#
# line-by-line description of options:
# $(SOURCES) -- run software preprocessor on $(SOURCES) files
# -km -- use kernel mode
# -func -- define function we'll use for tracing
#
RUN_WPP=$(SOURCES)\
-km\
-func:KdPrintEx((NULL,LEVEL,MSG,...))
!ENDIF
#
# errlog.mc must be first, as it defines error codes and the resulting
# header file (errlog.h) is included for all the other files.
#
SOURCES=\
redbook.rc \
errlog.mc \
errlog.c \
guids.c \
sysaudio.c \
pnp.c \
wmi.c \
thread.c \
redbook.c \
ioctl.c
#
# these defines are for default values that may be changed
# what they each mean:
# REDBOOK_WMI_SECTORS_DEFAULT
# REDBOOK_WMI_BUFFERS_DEFAULT
# REDBOOK_WMI_MAX_SECTORS_DEFAULT
# Buffers - number of buffers to use
# Sectors - number of sectors per buffer (1-55)
# MaxSectors - maximum sectors ever allowed per read (about 64k)
# Enabled - enabled by default (boolean)
# Supported - the drive supports raw reads (boolean) 0
# Known Good - the drive is known to be good (boolean)
#
# REDBOOK_DEFAULT_DEBUG_LEVEL
# the default debug level for printouts on chk builds (0,3,6,9)
#
#
C_DEFINES=$(C_DEFINES) \
-DREDBOOK_WMI_SECTORS_DEFAULT=16 \
-DREDBOOK_WMI_BUFFERS_DEFAULT=8 \
-DREDBOOK_WMI_MAX_SECTORS_DEFAULT=32 \
-DREDBOOK_DEFAULT_DEBUG_LEVEL=0
MSC_WARNING_LEVEL=/W3 /WX
MSC_OPTIMIZATION =/Oi /Od