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.

108 lines
2.9 KiB

  1. !IF 0
  2. Copyright (c) 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=Windows_Side-By-Side_Assemblies_{BCEACD41-D397-4DFE-902E-D0F26E7B0B70}.sld
  25. INCLUDES= \
  26. $(FUSION_PATH)\sxs;\
  27. $(FUSION_INC_PATH);\
  28. $(FUSION_PATH)\xmlparser;\
  29. $(FUSION_PATH)\id;\
  30. $(FUSION_PATH)\inc;\
  31. $(FUSION_PATH)\eventlog\whistler\$(O);\
  32. $(FUSION_PATH)\idl\$(O);\
  33. ..;\
  34. $(INCLUDES);\
  35. $(COM_INC_PATH)
  36. DELAYLOAD=rpcrt4.dll;imagehlp.dll;crypt32.dll;setupapi.dll
  37. #C_DEFINES=$(C_DEFINES) -DDELAYLOAD="\"$(DELAYLOAD:;=\0)\0\""
  38. DLOAD_ERROR_HANDLER=kernel32
  39. PASS1_PUBLISH= \
  40. {$(O)\sxs.lib=$(PROJECT_LIB_PATH)\sxs.lib}
  41. #
  42. # !if doesn't work properly in all cases in build.exe, including this one.
  43. # This is a workaround, using a "switch" instead of an !if, just like
  44. # makefile.def does.
  45. #
  46. # TARGET_DIRECTORY is one of [i386, ia64, amd64]. We have all three
  47. # files, though some are empty.
  48. #
  49. !include $(TARGET_DIRECTORY)sxsmk.inc
  50. LINKLIBS=\
  51. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)sxsmain.lib \
  52. $(FUSION_WIN_LIB_PATH)\winsxs1.lib \
  53. $(FUSION_WIN_LIB_PATH)\winsxs2.lib
  54. #
  55. # Be sure to keep ntdll.lib ahead of libcmt.lib, so we
  56. # get more of the CRT of ntdll.dll. Do not rely on the
  57. # friendly build.exe options that link you with these "automagically".
  58. #
  59. TARGETLIBS=\
  60. $(TARGETLIBS) \
  61. !if $(386)
  62. $(BASE_LIB_PATH)\chkstk.obj \
  63. !endif
  64. $(SDK_LIB_PATH)\noenv.obj \
  65. $(SDK_LIB_PATH)\noarg.obj \
  66. $(SDK_LIB_PATH)\smalheap.obj \
  67. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)utils.lib \
  68. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xmlparser.lib \
  69. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)id.lib \
  70. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)eventlog.lib \
  71. $(FUSION_PATH)\$(O)\fusion_uuid.lib \
  72. $(FUSION_LIB_PATH)\$(FUSION_BUILD_TYPE_PREFIX)xml.lib \
  73. $(SDK_LIB_PATH)\ntdll.lib \
  74. $(SDK_LIB_PATH)\libcmt.lib \
  75. $(SDK_LIB_PATH)\uuid.lib \
  76. $(SDK_LIB_PATH)\kernel32.lib \
  77. $(SDK_LIB_PATH)\kernl32p.lib \
  78. $(SDK_LIB_PATH)\advapi32.lib \
  79. $(SDK_LIB_PATH)\crypt32.lib \
  80. $(SDK_LIB_PATH)\rpcrt4.lib \
  81. $(SDK_LIB_PATH)\setupapi.lib \
  82. $(SDK_LIB_PATH)\imagehlp.lib \
  83. $(SDK_LIB_PATH)\user32.lib \
  84. $(SDK_LIB_PATH)\wintrust.lib \
  85. $(SDK_LIB_PATH)\mpr.lib \
  86. i386_SOURCES=\
  87. i386\exitprocasm.asm \
  88. i386\setunhandledexceptionfilterasm.asm \
  89. i386\termprocasm.asm
  90. SOURCES=\
  91. sxs.rc \
  92. exitproc.c \
  93. setunhandledexceptionfilter.c \
  94. termproc.c \