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.

102 lines
2.0 KiB

  1. !IF 0
  2. Copyright (c) 1989-98 Microsoft Corporation
  3. Module Name:
  4. common.inc - Generic (TShare Client) 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. Madan Appiah - Sep. 5th 1997
  12. NOTE: Commented description of this file is in \nt\bak\bin\sources.tpl
  13. !ENDIF
  14. #
  15. # Disable perf by default.
  16. # Set this to 1 to enable perf.
  17. #
  18. BUILD_PRF = 0
  19. #
  20. # Defining this allows windows.h to include other headers
  21. #
  22. NOT_LEAN_AND_MEAN = 1
  23. UMTYPE = windows
  24. #
  25. # Additional compiler flags
  26. #
  27. ! if defined(USE_UNICODE)
  28. C_DEFINES = $(C_DEFINES) -DUNICODE -D_UNICODE
  29. ! endif
  30. !if !$(FREEBUILD)
  31. C_DEFINES = $(C_DEFINES) -D_DEBUG -DDEBUG
  32. !endif
  33. #
  34. # Prevent bldnt pulling in various libraries
  35. #
  36. LIBC_LIB =
  37. NO_NTDLL = 1
  38. #
  39. # include files.
  40. #
  41. INCLUDES= \
  42. ..; \
  43. $(TERMSRV_ROOT)\inc; \
  44. $(TERMSRV_ROOT)\common\inc; \
  45. $(TERMSRV_ROOT)\common\license\inc; \
  46. $(TERMSRV_ROOT)\client\inc; \
  47. !ifdef WIN16_BUILD
  48. $(PUBLIC_DS_INC_PATH)\crypto
  49. !else
  50. $(DS_INC_PATH)\crypto
  51. !endif
  52. #
  53. # Common compiler flags
  54. #
  55. C_DEFINES = $(C_DEFINES) -DSTRICT $(CLIENT_SECURITY)
  56. MSC_WARNING_LEVEL= $(C_WARNINGS)
  57. # Use /WX to change warnings into errors
  58. !if "$(FREEBUILD)" == "1"
  59. CLIENT_TRC_LIB=
  60. !if "$(BUILD_PRF)"=="1"
  61. C_DEFINES=$(C_DEFINES) -DTRC_CL=5
  62. !else
  63. C_DEFINES=$(C_DEFINES) -DTRC_CL=5
  64. !endif
  65. !else
  66. DEBUG_DEFINE=DC_DEBUG
  67. C_DEFINES=$(C_DEFINES) -DTRC_CL=0 -DTRC_CP -D$(DEBUG_DEFINE)
  68. !endif
  69. !if "$(BUILD_HIPROF)"=="1"
  70. C_DEFINES=$(C_DEFINES) -DHIPROF
  71. !endif
  72. # DC_NO_UNALIGNED should be set for any processor which does not allow
  73. # non-aligned memory access
  74. !IF "$(PROCESSOR_ARCHITECTURE)" != "x86"
  75. C_DEFINES = $(C_DEFINES) -DDC_NO_UNALIGNED
  76. !ENDIF
  77. !if "$(BUILD_HIPROF)"=="1"
  78. LINKER_FLAGS = $(LINKER_FLAGS) -FIXED:NO
  79. !endif