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.

110 lines
3.7 KiB

  1. #
  2. # The MAJORCOMP and MINORCOMP variables are defined
  3. # so that $(MAJORCOMP)$(MINORCOMP)filename can be used in
  4. # cross compiling to provide unique filenames in a flat namespace.
  5. #
  6. MAJORCOMP=windows
  7. MINORCOMP=media
  8. #
  9. # The TARGETNAME variable is defined by the developer. It is the name of
  10. # the target (component) that is being built by this makefile. It
  11. # should NOT include any path or file extension information.
  12. #
  13. TARGETNAME=dpvacm
  14. DLLDEF=..\dpvacm.def
  15. !IF !$(FREEBUILD) && defined( DIRECTX_REDIST )
  16. TARGETNAME=$(TARGETNAME)d
  17. !ENDIF
  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=..\dpvacmpch.h
  30. PRECOMPILED_PCH=dpvacmpch.pch
  31. PRECOMPILED_OBJ=dpvacmpch.obj
  32. !endif
  33. #required or you get the cryptic error on Win95 gold : "Expects newer version of windows"
  34. UMTYPE=windows
  35. #
  36. # The TARGETLIBS specifies additional libraries to link with you target
  37. # image. Each library path specification should contain an asterisk (*)
  38. # where the machine specific subdirectory name should go.
  39. #
  40. #
  41. # 04/10/2000 - allows for addition of BoundsChecker, etc
  42. # libs specified in the OS environment
  43. #
  44. TARGETLIBS=$(TARGETLIBS) \
  45. ..\..\..\guids\$(PLAT_DIR)\$(O)\guids.lib \
  46. ..\..\dpvcplib\$(PLAT_DIR)\$(O)\dpvcplib.lib \
  47. ..\..\..\dxvutils\$(PLAT_DIR)\$(O)\dxvutils.lib \
  48. $(BASEDIR)\public\sdk\lib\*\kernel32.lib \
  49. $(BASEDIR)\public\sdk\lib\*\user32.lib \
  50. $(BASEDIR)\public\sdk\lib\*\gdi32.lib \
  51. $(BASEDIR)\public\sdk\lib\*\winmm.lib \
  52. $(BASEDIR)\public\sdk\lib\*\msacm32.lib \
  53. $(BASEDIR)\public\sdk\lib\*\advapi32.lib \
  54. $(BASEDIR)\public\sdk\lib\*\ole32.lib \
  55. $(BASEDIR)\public\sdk\lib\*\uuid.lib \
  56. $(BASEDIR)\public\sdk\lib\*\msvcrt.lib
  57. #
  58. # The INCLUDES variable specifies any include paths that are specific to
  59. # this source directory. Separate multiple directory paths with single
  60. # semicolons. Relative path specifications are okay.
  61. #
  62. INCLUDES=$(DXROOT)\inc;..\..\..\common;..\..\..\inc;..\..\dpvcplib;..\..\..\dxvutils;..\
  63. !if "$(NTDEBUG)" == "ntsd" || "$(NTDEBUG)" == "cvp" || "$(NTDEBUG)" == "sym"
  64. C_DEFINES=$(C_DEFINES) /DDEBUG /D_DEBUG /DDBG
  65. !endif
  66. #
  67. # The SOURCES variable is defined by the developer. It is a list of all the
  68. # source files for this component. Each source file should be on a separate
  69. # line using the line continuation character. This will minimize merge
  70. # conflicts if two developers adding source files to the same component.
  71. #
  72. SOURCES= ..\acmclassfac.cpp \
  73. ..\dpvacm.rc \
  74. ..\acmunk.cpp \
  75. ..\dpvacmi.cpp \
  76. ..\dpvautil.cpp \
  77. ..\dpvaconv.cpp \
  78. ..\acmdllmain.cpp
  79. #
  80. # Next specify options for the compiler.
  81. #
  82. # Note about CRT defines. When linking with MSVCRT you must have both _MT and _DLL specified.
  83. # Using the build environment's USE_MSVCRT=1 would do this for us, but because we define our
  84. # own operator new this will cause a link error because the build environment will not properly
  85. # pull in msvcrt.lib last as of 5/11/2001. Therefore, we do it all manually specifying _DLL, _MT,
  86. # and msvcrt.lib and USE_NOLIBS=1 ourselves. This also means that we must manually add msvcprt.lib
  87. # where STL is used.
  88. #
  89. C_DEFINES= $(C_DEFINES) /D_USRDLL /DWIN32 /D_MT /D_DLL /DCINTERFACE /DDIRECTVOICE_EXPORTS
  90. USE_NOLIBS=1
  91. DLLENTRY=_DllMainCRTStartup