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.

117 lines
2.8 KiB

  1. !IF 0
  2. Copyright (c) Microsoft Corporation
  3. !ENDIF
  4. FUSION_BUILD_TYPE=WIN
  5. !include $(PROJECT_ROOT)\win32\fusion\fusion.inc
  6. MAJORCOMP=fusion
  7. MINORCOMP=sxstest
  8. TARGETPATH=obj
  9. DLLDEF=..\$(TARGETNAME).def
  10. #LINK_TIME_CODE_GENERATION=1
  11. C_DEFINES=$(C_DEFINES) $(SXS_MANIFEST_DEFINES)
  12. ISOLATION_AWARE_ENABLED=1
  13. USE_IOSTREAM=1
  14. USE_CRTDLL=1
  15. USE_NATIVE_EH=1
  16. USE_STL=1
  17. # -fixed:no because we turn the .exe into a .dll at runtime
  18. LINKER_FLAGS=$(LINKER_FLAGS) -fixed:no
  19. INCLUDES= \
  20. $(FUSION_PATH)\sxs; \
  21. $(FUSION_INC_PATH); \
  22. $(FUSION_PATH)\xmlparser; \
  23. $(FUSION_PATH)\id; \
  24. $(FUSION_PATH)\inc; \
  25. $(FUSION_PATH)\eventlog\whistler\$(O); \
  26. $(FUSION_PATH)\idl\$(O); \
  27. $(INCLUDES); \
  28. ..; \
  29. $(FUSION_PATH)\dll\whistler; \
  30. $(FUSION_PATH)\dll\; \
  31. $(COM_INC_PATH)
  32. UMTYPE=console
  33. UMENTRYABS=Entry
  34. LINKLIBS= \
  35. $(FUSION_PATH)\tests\sxstest\lib\$(O)\sxstestlib.lib \
  36. TARGETLIBS= \
  37. $(TARGETLIBS) \
  38. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxsmain.lib \
  39. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxs1.lib \
  40. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxs2.lib \
  41. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)utils.lib \
  42. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xmlparser.lib \
  43. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)id.lib \
  44. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)eventlog.lib \
  45. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)uuid.lib \
  46. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xml.lib \
  47. !if !$(AMD64)
  48. $(SDK_LIB_PATH)\chkstk.obj \
  49. !endif
  50. $(SDK_LIB_PATH)\noenv.obj \
  51. $(SDK_LIB_PATH)\noarg.obj \
  52. $(SDK_LIB_PATH)\msvcrt.lib \
  53. $(SDK_LIB_PATH)\ntdll.lib \
  54. $(SDK_LIB_PATH)\uuid.lib \
  55. $(SDK_LIB_PATH)\kernel32.lib \
  56. $(SDK_LIB_PATH)\kernl32p.lib \
  57. $(SDK_LIB_PATH)\advapi32.lib \
  58. $(SDK_LIB_PATH)\crypt32.lib \
  59. $(SDK_LIB_PATH)\rpcrt4.lib \
  60. $(SDK_LIB_PATH)\setupapi.lib \
  61. $(SDK_LIB_PATH)\imagehlp.lib \
  62. $(SDK_LIB_PATH)\user32.lib \
  63. $(SDK_LIB_PATH)\wintrust.lib \
  64. $(SDK_LIB_PATH)\mpr.lib \
  65. $(SDK_LIB_PATH)\ole32.lib \
  66. $(SDK_LIB_PATH)\oleaut32.lib \
  67. $(SDK_LIB_PATH)\comctl32.lib \
  68. !ifdef MAN1
  69. C_DEFINES=$(C_DEFINES) -DMAN1
  70. SXS_MANIFEST_RESOURCE_ID=1
  71. !endif
  72. !ifdef MAN2
  73. C_DEFINES=$(C_DEFINES) -DMAN2
  74. SXS_MANIFEST_RESOURCE_ID=2
  75. !endif
  76. !ifdef MAN3
  77. C_DEFINES=$(C_DEFINES) -DMAN3
  78. SXS_MANIFEST_RESOURCE_ID=3
  79. !endif
  80. !if !defined(NOMAN)
  81. SXS_MANIFEST=..\sxstest.manifest
  82. SXS_ASSEMBLY_NAME=Microsoft.Windows.SideBySide.Test
  83. SXS_NO_BINPLACE=1
  84. SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=1
  85. !if !defined(MANFILE)
  86. SXS_MANIFEST_IN_RESOURCES=1
  87. !endif
  88. NO_BINPLACE=1
  89. !endif
  90. !if "$(MAN1)$(MAN2)$(MAN3)" == ""
  91. NUMBER_OF_MANIFESTS=0
  92. !elseif "$(MAN1)$(MAN2)$(MAN3)" == "1"
  93. NUMBER_OF_MANIFESTS=1
  94. !elseif "$(MAN1)$(MAN2)$(MAN3)" == "11"
  95. NUMBER_OF_MANIFESTS=2
  96. !elseif "$(MAN1)$(MAN2)$(MAN3)" == "111"
  97. NUMBER_OF_MANIFESTS=3
  98. !endif
  99. C_DEFINES=$(C_DEFINES) -DNUMBER_OF_MANIFESTS=$(NUMBER_OF_MANIFESTS)
  100. !if "$(NUMBER_OF_MANIFESTS)" != "0" && "$(NUMBER_OF_MANIFESTS)" != "1"
  101. USE_MAKEFILE_INC=1
  102. !endif