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.

123 lines
2.4 KiB

  1. !IF 0
  2. Copyright (c) 1989-98 Microsoft Corporation
  3. Module Name:
  4. common.inc - Generic (TShare Clipboard Monitor) build definitions
  5. Abstract:
  6. This file specifies the target component being built and the list of
  7. sources files needed to build that component. Also specifies optional
  8. compiler switches and libraries that are unique for the component being
  9. built.
  10. Author:
  11. Martin Richards - March 18th 1998
  12. NOTE: Commented description of this file is in \nt\bak\bin\sources.tpl
  13. !ENDIF
  14. !if "$(FREEBUILD)" != "0"
  15. ! if "$(FREEBUILD)" != "1"
  16. !error FREEBUILD must be defined as 0 or 1 in makefile.def
  17. ! endif
  18. !endif
  19. #
  20. # Disable perf by default.
  21. # Set this to 1 to enable perf.
  22. #
  23. BUILD_PRF = 0
  24. #
  25. # Set common options
  26. #
  27. #
  28. # Defining this allows windows.h to include other headers
  29. #
  30. NOT_LEAN_AND_MEAN = 1
  31. UMTYPE = windows
  32. #
  33. # Lego options
  34. #
  35. !if defined(NTBBT)
  36. NTPROFILEINPUT = 1
  37. !endif
  38. #
  39. # Additional compiler flags
  40. #
  41. ! if defined(USE_UNICODE)
  42. C_DEFINES = $(C_DEFINES) -DUNICODE -D_UNICODE
  43. ! endif
  44. !if "$(FREEBUILD)" == "0"
  45. C_DEFINES = $(C_DEFINES) -D_DEBUG -DDEBUG
  46. #DEBUG_CRTS = 1
  47. #NTDEBUG = ntsd
  48. #NTDEBUGTYPE = windbg
  49. !endif
  50. #
  51. # Get all maps and syms
  52. #
  53. #USE_MAPSYM = 1
  54. #
  55. # Prevent bldnt pulling in various libraries
  56. #
  57. LIBC_LIB =
  58. NO_NTDLL = 1
  59. #
  60. # Common compiler flags
  61. #
  62. C_DEFINES = $(C_DEFINES) -DSTRICT -DOS_WINDOWS $(CLIENT_SECURITY)
  63. NTPROFILEINPUT=1
  64. MSC_WARNING_LEVEL= $(C_WARNINGS)
  65. # Use /WX to change warnings into errors
  66. !if "$(FREEBUILD)" == "1"
  67. !if "$(BUILD_PRF)"=="1"
  68. C_DEFINES=$(C_DEFINES) -DTRC_COMPILE_LEVEL=5
  69. !else
  70. C_DEFINES=$(C_DEFINES) -DDC_NO_PERFORMANCE_MONITOR -DTRC_COMPILE_LEVEL=5
  71. !endif
  72. !else
  73. DEBUG_DEFINE=DC_DEBUG
  74. C_DEFINES=$(C_DEFINES) -DTRC_COMPILE_LEVEL=5 -D$(DEBUG_DEFINE) \
  75. -DDC_NO_PERFORMANCE_MONITOR
  76. !endif
  77. !if "$(BUILD_HIPROF)"=="1"
  78. C_DEFINES=$(C_DEFINES) -DHIPROF
  79. !endif
  80. !IF "$(NO_NET_DCL)" != "1"
  81. C_DEFINES = $(C_DEFINES) -DVER_NET_DCL
  82. !ENDIF
  83. !IF "$(PROCESSOR_ARCHITECTURE)" == "x86" || "$(PROCESSOR_ARCHITECTURE)" == "PPC"
  84. C_DEFINES = $(C_DEFINES) -DVER_NET_MCS
  85. !ENDIF
  86. # DC_NO_UNALIGNED should be set for any processor which does not allow
  87. # non-aligned memory access
  88. !IF "$(PROCESSOR_ARCHITECTURE)" != "x86"
  89. C_DEFINES = $(C_DEFINES) -DDC_NO_UNALIGNED
  90. !ENDIF
  91. !if "$(BUILD_HIPROF)"=="1"
  92. LINKER_FLAGS = $(LINKER_FLAGS) -FIXED:NO
  93. !endif
  94. NTDBGFILES=1