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.

136 lines
3.6 KiB

  1. !IF 0
  2. Copyright (c) Microsoft Corporation
  3. !ENDIF
  4. !include $(PROJECT_ROOT)\win32\fusion\fusion.inc
  5. USE_MAKEFILE_INC=1
  6. !if !defined(TARGETTYPE)
  7. TARGETTYPE=PROGLIB
  8. !endif
  9. !if !defined(TARGETNAME)
  10. TARGETNAME=sxstest
  11. !endif
  12. MAJORCOMP=fusion
  13. MINORCOMP=sxstest
  14. TARGETPATH=$(FUSION_PATH)\$(FUSION_BUILD_LEAF_DIRECTORY)\$(_OBJ_DIR)
  15. DLLDEF=..\$(TARGETNAME).def
  16. C_DEFINES=$(C_DEFINES) $(SXS_MANIFEST_DEFINES)
  17. # for merging proxy/stub .dll
  18. #C_DEFINES=$(C_DEFINES) -DENTRY_PREFIX=Prx
  19. C_DEFINES=$(C_DEFINES) -D_MERGE_PROXYSTUB
  20. C_DEFINES=$(C_DEFINES) -DUNICODE
  21. C_DEFINES=$(C_DEFINES) -D_UNICODE
  22. ISOLATION_AWARE_ENABLED=1
  23. C_DEFINES=$(C_DEFINES) -DISOLATION_AWARE_ENABLED_OBJBASE
  24. USE_MSVCRT=1
  25. USE_NATIVE_EH=1
  26. USE_STATIC_ATL=1
  27. ATL_VER=30
  28. #USE_STL=1
  29. # -fixed:no because we turn the .exe into a .dll at runtime
  30. LINKER_FLAGS=$(LINKER_FLAGS) -fixed:no
  31. INCLUDES= \
  32. ..\idl\$(O); \
  33. ..\..\idl\$(O); \
  34. ..; \
  35. ..\..; \
  36. $(FUSION_PATH)\sxs; \
  37. $(FUSION_INC_PATH); \
  38. $(FUSION_PATH)\xmlparser; \
  39. $(FUSION_PATH)\id; \
  40. $(FUSION_PATH)\inc; \
  41. $(FUSION_PATH)\eventlog\whistler\$(O); \
  42. $(FUSION_PATH)\idl\$(O); \
  43. $(INCLUDES); \
  44. $(FUSION_PATH)\dll\whistler; \
  45. $(FUSION_PATH)\dll\; \
  46. $(COM_INC_PATH)
  47. UMTYPE=console
  48. UMENTRYABS=Entry
  49. LINKLIBS= \
  50. $(LINKLIBS) \
  51. $(FUSION_PATH)\$(FUSION_BUILD_LEAF_DIRECTORY)\$(O)\sxstestlib.lib \
  52. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxs1.lib \
  53. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxs2.lib \
  54. TARGETLIBS= \
  55. $(SDK_LIB_PATH)\ntdll.lib \
  56. $(TARGETLIBS) \
  57. $(FUSION_PATH)\$(O)\sxstest_idl.lib \
  58. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxsmain.lib \
  59. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)utils.lib \
  60. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xmlparser.lib \
  61. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)id.lib \
  62. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)eventlog.lib \
  63. $(FUSION_PATH)\$(O)\fusion_uuid.lib \
  64. $(FUSION_PATH)\$(O)\fusion_dump.lib \
  65. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xml.lib \
  66. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)eventlog.lib \
  67. $(SDK_LIB_PATH)\uuid.lib \
  68. $(SDK_LIB_PATH)\kernel32.lib \
  69. $(SDK_LIB_PATH)\kernl32p.lib \
  70. $(SDK_LIB_PATH)\advapi32.lib \
  71. $(SDK_LIB_PATH)\crypt32.lib \
  72. $(SDK_LIB_PATH)\rpcrt4.lib \
  73. $(SDK_LIB_PATH)\setupapi.lib \
  74. $(SDK_LIB_PATH)\imagehlp.lib \
  75. $(SDK_LIB_PATH)\user32.lib \
  76. $(SDK_LIB_PATH)\wintrust.lib \
  77. $(SDK_LIB_PATH)\mpr.lib \
  78. $(SDK_LIB_PATH)\ole32.lib \
  79. $(SDK_LIB_PATH)\oleaut32.lib \
  80. $(SDK_LIB_PATH)\comctl32.lib \
  81. $(SDK_LIB_PATH)\netapi32.lib \
  82. $(FUSION_SLIST_LIB) \
  83. !ifdef MAN1
  84. C_DEFINES=$(C_DEFINES) -DMAN1
  85. SXS_MANIFEST_RESOURCE_ID=1
  86. !endif
  87. !ifdef MAN2
  88. C_DEFINES=$(C_DEFINES) -DMAN2
  89. SXS_MANIFEST_RESOURCE_ID=2
  90. !endif
  91. !ifdef MAN3
  92. C_DEFINES=$(C_DEFINES) -DMAN3
  93. SXS_MANIFEST_RESOURCE_ID=3
  94. !endif
  95. !if !defined(NOMAN)
  96. SXS_MANIFEST=..\sxstest.manifest
  97. SXS_ASSEMBLY_NAME=Microsoft.Windows.SideBySide.Test
  98. SXS_NO_BINPLACE=1
  99. SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=1
  100. !if !defined(MANFILE)
  101. SXS_MANIFEST_IN_RESOURCES=1
  102. !endif
  103. NO_BINPLACE=1
  104. !endif
  105. !if "$(MAN1)$(MAN2)$(MAN3)" == ""
  106. NUMBER_OF_MANIFESTS=0
  107. !elseif "$(MAN1)$(MAN2)$(MAN3)" == "1"
  108. NUMBER_OF_MANIFESTS=1
  109. !elseif "$(MAN1)$(MAN2)$(MAN3)" == "11"
  110. NUMBER_OF_MANIFESTS=2
  111. !elseif "$(MAN1)$(MAN2)$(MAN3)" == "111"
  112. NUMBER_OF_MANIFESTS=3
  113. !endif
  114. C_DEFINES=$(C_DEFINES) -DNUMBER_OF_MANIFESTS=$(NUMBER_OF_MANIFESTS)
  115. !if "$(NUMBER_OF_MANIFESTS)" != "0" && "$(NUMBER_OF_MANIFESTS)" != "1"
  116. USE_MAKEFILE_INC=1
  117. !endif
  118. MANIFEST_PREPROCESSOR_NAME=$(FUSION_PATH)\tests\sxstest\manifest_preprocessor.bat $(CXX_COMPILER_NAME) $(CXX_COMPILER_FLAGS) -EP $(USE_FC)