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

  1. !IF 0
  2. Copyright (C) Microsoft Corporation, 1998 - 1999
  3. Module Name:
  4. sources.
  5. !ENDIF
  6. TARGETNAME=redbook
  7. TARGETPATH=obj
  8. TARGETTYPE=DRIVER
  9. TARGETLIBS=$(DDK_LIB_PATH)\ks.lib \
  10. $(DDK_LIB_PATH)\ksguid.lib
  11. INCLUDES=\
  12. ..\inc
  13. #
  14. # change the below line to use old-school KdPrintEx()
  15. # instead of Event Tracing for Windows
  16. #
  17. # USE_OLD_KD_PRINT_MACROS=1
  18. !IFNDEF USE_OLD_KD_PRINT_MACROS
  19. #
  20. # enable the use of tracing in the code itself
  21. #
  22. C_DEFINES=$(C_DEFINES) -D_USE_ETW
  23. #
  24. # line-by-line description of options:
  25. # $(SOURCES) -- run software preprocessor on $(SOURCES) files
  26. # -km -- use kernel mode
  27. # -func -- define function we'll use for tracing
  28. #
  29. RUN_WPP=$(SOURCES)\
  30. -km\
  31. -func:KdPrintEx((NULL,LEVEL,MSG,...))
  32. !ENDIF
  33. #
  34. # errlog.mc must be first, as it defines error codes and the resulting
  35. # header file (errlog.h) is included for all the other files.
  36. #
  37. SOURCES=\
  38. redbook.rc \
  39. errlog.mc \
  40. errlog.c \
  41. guids.c \
  42. sysaudio.c \
  43. pnp.c \
  44. wmi.c \
  45. thread.c \
  46. redbook.c \
  47. ioctl.c
  48. #
  49. # these defines are for default values that may be changed
  50. # what they each mean:
  51. # REDBOOK_WMI_SECTORS_DEFAULT
  52. # REDBOOK_WMI_BUFFERS_DEFAULT
  53. # REDBOOK_WMI_MAX_SECTORS_DEFAULT
  54. # Buffers - number of buffers to use
  55. # Sectors - number of sectors per buffer (1-55)
  56. # MaxSectors - maximum sectors ever allowed per read (about 64k)
  57. # Enabled - enabled by default (boolean)
  58. # Supported - the drive supports raw reads (boolean) 0
  59. # Known Good - the drive is known to be good (boolean)
  60. #
  61. # REDBOOK_DEFAULT_DEBUG_LEVEL
  62. # the default debug level for printouts on chk builds (0,3,6,9)
  63. #
  64. #
  65. C_DEFINES=$(C_DEFINES) \
  66. -DREDBOOK_WMI_SECTORS_DEFAULT=16 \
  67. -DREDBOOK_WMI_BUFFERS_DEFAULT=8 \
  68. -DREDBOOK_WMI_MAX_SECTORS_DEFAULT=32 \
  69. -DREDBOOK_DEFAULT_DEBUG_LEVEL=0
  70. MSC_WARNING_LEVEL=/W3 /WX
  71. MSC_OPTIMIZATION =/Oi /Od