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.

110 lines
2.9 KiB

  1. !IF 0
  2. Copyright (c) 1989-2001 Microsoft Corporation
  3. !ENDIF
  4. SYNCHRONIZE_DRAIN=1
  5. FUSION_BUILD_TYPE=WIN
  6. !include $(PROJECT_ROOT)\win32\fusion\fusion.inc
  7. TARGETPATH=obj
  8. TARGETNAME=sxs
  9. TARGETTYPE=DYNLINK
  10. UMTYPE=windows
  11. DLLBASE=0x65000000
  12. DLLDEF=sxs.def
  13. DLLENTRY=SxsDllMain
  14. LINKER_FLAGS=$(LINKER_FLAGS) -map
  15. #LINKER_FLAGS=$(LINKER_FLAGS) -verbose
  16. #
  17. # Defined specific for test to build code coverage bits since sanjays
  18. # is trying to find out why NTBBT set doesn't prop the ,fixup flag
  19. #
  20. !IFDEF SXSTESTBBT
  21. LINKER_FLAGS=$(LINKER_FLAGS) -debugtype:cv,fixup
  22. !ENDIF
  23. BINPLACE_PLACEFILE="..\placefil.txt"
  24. MISCFILES= \
  25. Windows_Side-By-Side_Assemblies_{BCEACD41-D397-4DFE-902E-D0F26E7B0B70}.sld \
  26. Primitive_osuninst.sld
  27. INCLUDES= \
  28. $(FUSION_PATH)\sxs;\
  29. $(FUSION_INC_PATH);\
  30. $(FUSION_PATH)\xmlparser;\
  31. $(FUSION_PATH)\id;\
  32. $(FUSION_PATH)\inc;\
  33. $(FUSION_PATH)\eventlog\whistler\$(O);\
  34. $(FUSION_PATH)\idl\$(O);\
  35. ..;\
  36. $(INCLUDES);\
  37. $(COM_INC_PATH)
  38. DELAYLOAD=rpcrt4.dll;imagehlp.dll;crypt32.dll;setupapi.dll
  39. #C_DEFINES=$(C_DEFINES) -DDELAYLOAD="\"$(DELAYLOAD:;=\0)\0\""
  40. DLOAD_ERROR_HANDLER=kernel32
  41. PASS1_PUBLISH= \
  42. {$(O)\sxs.lib=$(PROJECT_LIB_PATH)\sxs.lib}
  43. #
  44. # !if doesn't work properly in all cases in build.exe, including this one.
  45. # This is a workaround, using a "switch" instead of an !if, just like
  46. # makefile.def does.
  47. #
  48. # TARGET_DIRECTORY is one of [i386, ia64, amd64]. We have all three
  49. # files, though some are empty.
  50. #
  51. !include $(TARGET_DIRECTORY)sxsmk.inc
  52. LINKLIBS=\
  53. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxsmain.lib \
  54. $(FUSION_WIN_LIB_PATH)\winsxs1.lib \
  55. $(FUSION_WIN_LIB_PATH)\winsxs2.lib
  56. #
  57. # Be sure to keep ntdll.lib ahead of libcmt.lib, so we
  58. # get more of the CRT of ntdll.dll. Do not rely on the
  59. # friendly build.exe options that link you with these "automagically".
  60. #
  61. TARGETLIBS=\
  62. $(TARGETLIBS) \
  63. !if !$(AMD64)
  64. $(SDK_LIB_PATH)\chkstk.obj \
  65. !endif
  66. $(SDK_LIB_PATH)\noenv.obj \
  67. $(SDK_LIB_PATH)\noarg.obj \
  68. $(SDK_LIB_PATH)\smalheap.obj \
  69. $(SDK_LIB_PATH)\ntdll.lib \
  70. $(SDK_LIB_PATH)\libcmt.lib \
  71. $(SDK_LIB_PATH)\uuid.lib \
  72. $(SDK_LIB_PATH)\kernel32.lib \
  73. $(SDK_LIB_PATH)\kernl32p.lib \
  74. $(SDK_LIB_PATH)\advapi32.lib \
  75. $(SDK_LIB_PATH)\crypt32.lib \
  76. $(SDK_LIB_PATH)\rpcrt4.lib \
  77. $(SDK_LIB_PATH)\setupapi.lib \
  78. $(SDK_LIB_PATH)\imagehlp.lib \
  79. $(SDK_LIB_PATH)\user32.lib \
  80. $(SDK_LIB_PATH)\wintrust.lib \
  81. $(SDK_LIB_PATH)\mpr.lib \
  82. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)utils.lib \
  83. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xmlparser.lib \
  84. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)id.lib \
  85. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)eventlog.lib \
  86. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)uuid.lib \
  87. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xml.lib
  88. i386_SOURCES=\
  89. i386\exitprocasm.asm \
  90. i386\setunhandledexceptionfilterasm.asm \
  91. i386\termprocasm.asm
  92. SOURCES=\
  93. sxs.rc \
  94. exitproc.c \
  95. setunhandledexceptionfilter.c \
  96. termproc.c \