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.

105 lines
2.4 KiB

  1. # This file contains everything that's common between all AMovie directories.
  2. SOURCES_USED=$(ROOT)\common.inc
  3. SDK_ROOT=$(BASEDIR)\public\sdk\amovie
  4. PASS0_HEADERDIR = $(O)
  5. PASS0_SOURCEDIR = $(O)
  6. MIDL_TLBDIR=$(O)
  7. UMTYPE=windows
  8. # Use NT4/Win95 base API's with IE4 addon support.
  9. WIN32_WINNT_VERSION=0x0400
  10. WIN32_WIN95_VERSION=0x0400
  11. !ifndef USE_MFC
  12. WIN32_IE_VERSION=0x0400
  13. !endif
  14. NOT_LEAN_AND_MEAN=1
  15. # Runs on NT4/Win95 or better
  16. SUBSYSTEM_VERSION=4.00
  17. !if "$(BUILD_PRODUCT)" != "NT"
  18. C_DEFINES=$(C_DEFINES) -DSTRICT -DWINVER=0x0400 -DNT_BUILD -DDIRECTDRAW_VERSION=0x0300 -DDIRECTSOUND_VERSION=0x0800 -DFINAL=1 -DOFFICIAL=1
  19. !else
  20. C_DEFINES=$(C_DEFINES) -DSTRICT -DWINVER=0x0501 -DNT_BUILD -DDIRECTDRAW_VERSION=0x0300 -DDIRECTSOUND_VERSION=0x0800 -DFINAL=1 -DOFFICIAL=1
  21. !endif
  22. !if !$(FREEBUILD)
  23. C_DEFINES=$(C_DEFINES) -DDEBUG
  24. LINKER_NOICF = 1 # ICF is s-l-o-w
  25. !endif
  26. INCLUDES= \
  27. $(SDK_ROOT)\inc; \
  28. $(ROOT)\h;
  29. !if exist( "$(ROOT)\qbuild.ver" )
  30. C_DEFINES=$(C_DEFINES) -DQBUILD_VER
  31. INCLUDES = $(INCLUDES)$(ROOT);
  32. !endif
  33. !if defined(DIRECTX_REDIST) && exist( "$(ROOT)\..\directx\inc\verinfo.h" )
  34. C_DEFINES=$(C_DEFINES) -DDXBUILD_VER
  35. INCLUDES=$(INCLUDES);$(ROOT)\..\directx\inc;
  36. !endif
  37. MSC_WARNING_LEVEL=/W3
  38. !if $(IA64)
  39. # Emit LTCG codegen
  40. LTCG_WKS=1
  41. # Turn pch off so it doesn't get contributed to public libs
  42. NTNOPCH=1
  43. !endif
  44. !ifdef NTNOPCH
  45. DISABLE_PCH=1
  46. !endif
  47. # unfortunately sources files define PRECOMPILED_INCLUDE after this
  48. # file is preprocessed, and there doesn't appear to be a way to delay
  49. # its evaluation
  50. !ifndef PRECOMPILED_INCLUDE
  51. !ifndef DISABLE_PCH
  52. USER_C_FLAGS=/Yustreams.h /Fp$(PROJECT_ROOT)\published\dxmdev\dshowdev\base\$(O)\streams.pch
  53. !endif
  54. !endif
  55. USE_MSVCRT=1
  56. !ifndef PROJECT_OBJ_ROOT
  57. PROJECT_OBJ_ROOT=$(PROJECT_ROOT)
  58. !endif
  59. !ifdef PERF
  60. C_DEFINES=$(C_DEFINES) -DPERF
  61. QUARTZ_PERF_LIB=$(QUARTZ_LIB_DIR)\measure.lib
  62. !endif
  63. # allow mixing debug/retail strmbase.lib in our builds only. the NT
  64. # tree pulls it from nt\public\sdk\lib
  65. STRMBASE_LIB=$(PROJECT_ROOT)\published\dxmdev\dshowdev\base\$(O)\strmbase.lib
  66. !if "$(BUILD_PRODUCT)" != "NT"
  67. !if !$(FREEBUILD)
  68. #DEBUG_CRTS=1
  69. !endif
  70. !else
  71. !ifndef NEVER_UNICODE
  72. C_DEFINES=-DUNICODE -D_UNICODE $(C_DEFINES)
  73. WIN32_WINNT_VERSION=0x0500
  74. !endif
  75. !endif
  76. # Add lib flags for old platforms when shipping DX
  77. !ifdef DIRECTX_REDIST
  78. LIBRARIAN_FLAGS = $(LIBRARIAN_FLAGS) /link50compat
  79. !endif