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.

159 lines
4.8 KiB

  1. !INCLUDE ..\..\..\bldcfg\dpvbld.inc
  2. #
  3. # The MAJORCOMP and MINORCOMP variables are defined
  4. # so that $(MAJORCOMP)$(MINORCOMP)filename can be used in
  5. # cross compiling to provide unique filenames in a flat namespace.
  6. #
  7. MAJORCOMP=windows
  8. MINORCOMP=media
  9. #required or you get the cryptic error on Win95 gold : "Expects newer version of windows"
  10. UMTYPE=windows
  11. #
  12. # The TARGETNAME variable is defined by the developer. It is the name of
  13. # the target (component) that is being built by this makefile. It
  14. # should NOT include any path or file extension information.
  15. #
  16. TARGETNAME=$(DPVOICE_BUILD_FILENAME_DPVOICE)
  17. DLLDEF=..\$(DPVOICE_BUILD_FILENAME_DPVOICE).def
  18. #
  19. # The TARGETPATH and TARGETTYPE variables are defined by the developer.
  20. # The first specifies where the target is to be build. The second specifies
  21. # the type of target (either PROGRAM, DYNLINK, LIBRARY, DRIVER, etc
  22. # UMAPPL_NOLIB is used when you're only building user-mode
  23. # apps and don't need to build a library.
  24. #
  25. TARGETPATH=obj
  26. TARGETTYPE=DYNLINK
  27. !if "$(DPLAY_PCH)" != "off"
  28. PRECOMPILED_CXX=1
  29. PRECOMPILED_INCLUDE=..\dxvoicepch.h
  30. PRECOMPILED_PCH=dxvoicepch.pch
  31. PRECOMPILED_OBJ=dxvoicepch.obj
  32. !endif
  33. #
  34. # Fusionized
  35. #
  36. SXS_ASSEMBLY_NAME=Microsoft.Windows.DirectX.DirectPlayVoice
  37. SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=1
  38. SXS_MANIFEST=$(DPVOICE_BUILD_FILENAME_DPVOICE).Manifest
  39. SXS_MANIFEST_IN_RESOURCES=1
  40. SXS_NO_BINPLACE=1
  41. SXS_MANIFEST_RESOURCE_ID=123
  42. #
  43. # The TARGETLIBS specifies additional libraries to link with you target
  44. # image. Each library path specification should contain an asterisk (*)
  45. # where the machine specific subdirectory name should go.
  46. #
  47. #
  48. # 04/10/2000 - allows for addition of BoundsChecker, etc
  49. # libs specified in the OS environment
  50. #
  51. TARGETLIBS=$(TARGETLIBS) \
  52. ..\..\dxvutils\obj$(BUILD_ALT_DIR)\*\dxvutils.lib \
  53. ..\..\guids\obj$(BUILD_ALT_DIR)\*\guids.lib \
  54. ..\..\..\dnet\common\obj$(BUILD_ALT_DIR)\*\common.lib \
  55. $(BASEDIR)\public\sdk\lib\*\kernel32.lib \
  56. $(BASEDIR)\public\sdk\lib\*\user32.lib \
  57. $(BASEDIR)\public\sdk\lib\*\gdi32.lib \
  58. $(BASEDIR)\public\sdk\lib\*\winmm.lib \
  59. $(BASEDIR)\public\sdk\lib\*\msacm32.lib \
  60. $(BASEDIR)\public\sdk\lib\*\advapi32.lib \
  61. $(BASEDIR)\public\sdk\lib\*\ole32.lib \
  62. $(BASEDIR)\public\sdk\lib\*\uuid.lib \
  63. !if "$(CHICAGO_PRODUCT)" == ""
  64. ..\..\dxvtlib\daytona\obj$(BUILD_ALT_DIR)\*\dxvt.lib \
  65. $(BASEDIR)\public\internal\shell\lib\*\shfusion.lib \
  66. $(BASEDIR)\public\sdk\lib\*\shlwapi.lib \
  67. !else
  68. ..\..\dxvtlib\win9x\obj$(BUILD_ALT_DIR)\*\dxvt.lib \
  69. $(BASEDIR)\public\sdk\lib\*\comctl32.lib \
  70. !endif
  71. $(BASEDIR)\public\sdk\lib\*\msvcrt.lib
  72. #
  73. # The INCLUDES variable specifies any include paths that are specific to
  74. # this source directory. Separate multiple directory paths with single
  75. # semicolons. Relative path specifications are okay.
  76. #
  77. INCLUDES=$(DXROOT)\inc;..\..\..\dnet\common;..\..\inc;..\..\dxvutils;..\..\dxvtlib;$(DXROOT)\private\inc;$(BASEDIR)\public\internal\shell\inc;..\
  78. #
  79. # The SOURCES variable is defined by the developer. It is a list of all the
  80. # source files for this component. Each source file should be on a separate
  81. # line using the line continuation character. This will minimize merge
  82. # conflicts if two developers adding source files to the same component.
  83. #
  84. SOURCES= ..\mixserver.cpp \
  85. ..\fwdserver.cpp \
  86. ..\vplayer.cpp \
  87. ..\dvengine.cpp \
  88. ..\protserver.cpp \
  89. ..\mixutils.cpp \
  90. ..\dvcleng.cpp \
  91. ..\dvclient.cpp \
  92. ..\dvcsplay.cpp \
  93. ..\dvdxtran.cpp \
  94. ..\dvrecsub.cpp \
  95. ..\dvsereng.cpp \
  96. ..\dvserver.cpp \
  97. ..\dvshared.cpp \
  98. ..\dvsetup.cpp \
  99. ..\dvsetupi.cpp \
  100. ..\trnotify.cpp \
  101. ..\dxvclassfac.cpp \
  102. ..\in_core.cpp \
  103. ..\unk.cpp \
  104. ..\dvsndt.cpp \
  105. ..\vnametbl.cpp \
  106. ..\dxvdllmain.cpp \
  107. ..\resource.rc
  108. #
  109. # Next specify options for the compiler.
  110. #
  111. # Note about CRT defines. When linking with MSVCRT you must have both _MT and _DLL specified.
  112. # Using the build environment's USE_MSVCRT=1 would do this for us, but because we define our
  113. # own operator new this will cause a link error because the build environment will not properly
  114. # pull in msvcrt.lib last as of 5/11/2001. Therefore, we do it all manually specifying _DLL, _MT,
  115. # and msvcrt.lib and USE_NOLIBS=1 ourselves. This also means that we must manually add msvcprt.lib
  116. # where STL is used.
  117. #
  118. C_DEFINES= $(C_DEFINES) /D_USRDLL /DWIN32 /D_MT /D_DLL \
  119. !if "$(VOICE_TARGET)" == "gamevoice"
  120. /DVOICE_BUILD_GAMEVOICE \
  121. !endif
  122. !if "$(CHICAGO_PRODUCT)" == ""
  123. /D_UNICODE /DUNICODE \
  124. !endif
  125. !if "$(VOICE_TARGET)" == "allegiance"
  126. /DVOICE_BUILD_ALLEGIANCE \
  127. !endif
  128. /DDIRECTVOICE_EXPORTS /DDIRECTSOUND_VERSION=0x0800
  129. USE_NOLIBS=1
  130. USE_NATIVE_EH=1
  131. DLLENTRY=_DllMainCRTStartup
  132. # This is necessary because we link to shfusion.lib which contains a reference to PropertySheetW which
  133. # we make a call to.
  134. LINKER_FLAGS = $(LINKER_FLAGS) -ignore:4049,4217