Source code of Windows XP (NT5)
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.

98 lines
2.2 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. !ifdef NTNOPCH
  39. DISABLE_PCH=1
  40. !endif
  41. # unfortunately sources files define PRECOMPILED_INCLUDE after this
  42. # file is preprocessed, and there doesn't appear to be a way to delay
  43. # its evaluation
  44. !ifndef PRECOMPILED_INCLUDE
  45. !ifndef DISABLE_PCH
  46. USER_C_FLAGS=/Yustreams.h /Fp$(PROJECT_ROOT)\published\dxmdev\dshowdev\base\$(O)\streams.pch
  47. !endif
  48. !endif
  49. USE_MSVCRT=1
  50. !ifndef PROJECT_OBJ_ROOT
  51. PROJECT_OBJ_ROOT=$(PROJECT_ROOT)
  52. !endif
  53. !ifdef PERF
  54. C_DEFINES=$(C_DEFINES) -DPERF
  55. QUARTZ_PERF_LIB=$(QUARTZ_LIB_DIR)\measure.lib
  56. !endif
  57. # allow mixing debug/retail strmbase.lib in our builds only. the NT
  58. # tree pulls it from nt\public\sdk\lib
  59. STRMBASE_LIB=$(PROJECT_ROOT)\published\dxmdev\dshowdev\base\$(O)\strmbase.lib
  60. !if "$(BUILD_PRODUCT)" != "NT"
  61. !if !$(FREEBUILD)
  62. #DEBUG_CRTS=1
  63. !endif
  64. !else
  65. !ifndef NEVER_UNICODE
  66. C_DEFINES=-DUNICODE -D_UNICODE $(C_DEFINES)
  67. WIN32_WINNT_VERSION=0x0500
  68. !endif
  69. !endif
  70. # Add lib flags for old platforms when shipping DX
  71. !ifdef DIRECTX_REDIST
  72. LIBRARIAN_FLAGS = $(LIBRARIAN_FLAGS) /link50compat
  73. !endif