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.

97 lines
1.8 KiB

  1. ###############################################################################
  2. #
  3. # global.mk
  4. #
  5. # Establishes global settings for the entire project. Included by
  6. # every directory that builds something.
  7. #
  8. # GLROOT should be defined as the root path of the project before
  9. # including this file.
  10. #
  11. ###############################################################################
  12. MAJORCOMP = opengl
  13. MINORCOMP = $(TARGETNAME)
  14. #
  15. # Define global flags.
  16. #
  17. # _GDI32_ - Disables direct imports for calls.
  18. #
  19. C_DEFINES = $(C_DEFINES)\
  20. -DDIRECT3D_VERSION=0x700 \
  21. -D_GDI32_
  22. # ATTENTION - The following are necessary for legacy reasons and should
  23. # be purged from the sources
  24. C_DEFINES = $(C_DEFINES)\
  25. -DNT\
  26. -D_CLIENTSIDE_\
  27. -DGL_METAFILE\
  28. -D_MCD_
  29. #
  30. # Global include paths.
  31. #
  32. INCLUDES = \
  33. $(GLROOT)\inc;\
  34. $(GLROOT)\server\inc;\
  35. $(GLROOT)\server\generic\$(_OBJ_DIR)\$(TARGET_DIRECTORY);\
  36. $(GLROOT)\mcd\inc;\
  37. $(PROJECT_INC_PATH);\
  38. $(PROJECT_ROOT)\inc\ddraw;\
  39. $(WINDOWS_INC_PATH);\
  40. $(MULTIMEDIA_INC_PATH);\
  41. $(DDK_INC_PATH);\
  42. #
  43. # Define global Windows 95 build settings.
  44. #
  45. !IFDEF OPENGL_95
  46. C_DEFINES = $(C_DEFINES) -D_WIN95_
  47. ASM_DEFINES = $(ASM_DEFINES) /D_WIN95_=1
  48. UMTYPE = windows
  49. !ENDIF
  50. #
  51. # Define global Windows NT build settings.
  52. #
  53. !IFNDEF OPENGL_95
  54. C_DEFINES = $(C_DEFINES) -DUNICODE -D_UNICODE
  55. !endif
  56. #
  57. # Use DLL runtimes.
  58. #
  59. USE_CRTDLL = 1
  60. #
  61. # Default to -W3 and force -WX.
  62. #
  63. !IFNDEF MSC_WARNING_LEVEL
  64. MSC_WARNING_LEVEL = -W3
  65. !ENDIF
  66. MSC_WARNING_LEVEL = $(MSC_WARNING_LEVEL) -WX
  67. #
  68. # Default optimization.
  69. #
  70. !IFNDEF MSC_OPTIMIZATION
  71. MSC_OPTIMIZATION = /Oxs
  72. !ENDIF
  73. #
  74. # Emit LTCG codegen
  75. #
  76. !IF $(IA64)
  77. LTCG_WKS=1
  78. !ENDIF