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.

184 lines
3.3 KiB

  1. !if "$(PROCESSOR_ARCHITECTURE)"=="x86"
  2. !if "$(LLP64)"=="1"
  3. CPUDIR = ia64
  4. !else
  5. CPUDIR = intel
  6. !endif
  7. !elseif "$(PROCESSOR_ARCHITECTURE)"=="ALPHA"
  8. !if "$(LLP64)"=="1"
  9. CPUDIR = alpha64
  10. !else
  11. CPUDIR = alpha
  12. !endif
  13. !elseif "$(PROCESSOR_ARCHITECTURE)"=="MIPS"
  14. CPUDIR = mips
  15. !elseif "$(PROCESSOR_ARCHITECTURE)"=="PPC"
  16. CPUDIR = ppc
  17. !else
  18. !error objects.mkf: unknown host CPU
  19. !endif
  20. !if "$(BLD_SYSCRT)" != "1"
  21. DEFCPP_NAME=msvcprt
  22. !else
  23. ! if "$(LLP64)" != "1"
  24. DEFCPP_NAME=sysprt
  25. ! else
  26. DEFCPP_NAME=msvcprt
  27. ! endif
  28. !endif
  29. D=$(CRT_BUILDDIR)\crt\src
  30. E=$D\$(CPUDIR)
  31. S=$(CRT_BUILDDIR)\crt\prebuild
  32. T=$S\build\$(CPUDIR)
  33. FILES_CPU_ALL =
  34. FILES_CPU_DLL =
  35. FILES_LIBCST = $(FILES_CPU:*=*st_lib)
  36. FILES_LIBCMT = $(FILES_CPU:*=*mt_lib)
  37. FILES_DLL = $(FILES_CPU:*=*dll_lib) $(FILES_CPU_DLL:*=*dll_lib)
  38. FILES_ALL =
  39. FILES_DLL_ALL =
  40. FILES_DLL_RELEASE = \
  41. $(FILES_DLL_ALL) \
  42. $D\$(DEFCPP_NAME).def
  43. FILES_DLL_DEBUG = \
  44. $(FILES_DLL_ALL) \
  45. $D\$(DEFCPP_NAME)d.def
  46. DIRS_ALL = $E
  47. DIRS_LIBCST = $E\*st_lib
  48. DIRS_LIBCMT = $E\*mt_lib
  49. DIRS_DLL = $E\*dll_lib
  50. DIRS = $(DIRS_LIBCST) $(DIRS_LIBCMT) $(DIRS_DLL)
  51. .SUFFIXES:
  52. .SUFFIXES: .lib .obj
  53. {$T\st_obj}.obj{$E\st_lib}.obj:
  54. @echo Copying $< to $@
  55. @copy $< $@
  56. {$T\st_obj}.lib{$E\st_lib}.lib:
  57. @echo Copying $< to $@
  58. @copy $< $@
  59. {$T\st_obj}.lib{$E}.lib:
  60. @echo Copying $< to $@
  61. @copy $< $@
  62. {$T\xst_obj}.obj{$E\xst_lib}.obj:
  63. @echo Copying $< to $@
  64. @copy $< $@
  65. {$T\xst_obj}.lib{$E\xst_lib}.lib:
  66. @echo Copying $< to $@
  67. @copy $< $@
  68. {$T\zst_obj}.obj{$E\zst_lib}.obj:
  69. @echo Copying $< to $@
  70. @copy $< $@
  71. {$T\zst_obj}.lib{$E\zst_lib}.lib:
  72. @echo Copying $< to $@
  73. @copy $< $@
  74. {$T\mt_obj}.obj{$E\mt_lib}.obj:
  75. @echo Copying $< to $@
  76. @copy $< $@
  77. {$T\mt_obj}.lib{$E\mt_lib}.lib:
  78. @echo Copying $< to $@
  79. @copy $< $@
  80. {$T\xmt_obj}.obj{$E\xmt_lib}.obj:
  81. @echo Copying $< to $@
  82. @copy $< $@
  83. {$T\xmt_obj}.lib{$E\xmt_lib}.lib:
  84. @echo Copying $< to $@
  85. @copy $< $@
  86. {$T\zmt_obj}.obj{$E\zmt_lib}.obj:
  87. @echo Copying $< to $@
  88. @copy $< $@
  89. {$T\zmt_obj}.lib{$E\zmt_lib}.lib:
  90. @echo Copying $< to $@
  91. @copy $< $@
  92. {$T\dll_obj}.obj{$E\dll_lib}.obj:
  93. @echo Copying $< to $@
  94. @copy $< $@
  95. {$T\dll_obj}.lib{$E\dll_lib}.lib:
  96. @echo Copying $< to $@
  97. @copy $< $@
  98. {$T\dll_obj}.lib{$E}.lib:
  99. @echo Copying $< to $@
  100. @copy $< $@
  101. {$T\zdll_obj}.obj{$E\zdll_lib}.obj:
  102. @echo Copying $< to $@
  103. @copy $< $@
  104. {$T\zdll_obj}.lib{$E\zdll_lib}.lib:
  105. @echo Copying $< to $@
  106. @copy $< $@
  107. {$T\xdll_obj}.obj{$E\xdll_lib}.obj:
  108. @echo Copying $< to $@
  109. @copy $< $@
  110. {$T\xdll_obj}.lib{$E\xdll_lib}.lib:
  111. @echo Copying $< to $@
  112. @copy $< $@
  113. all: release debug
  114. release: st mt dll
  115. debug: xst xmt xdll
  116. st: $(DIRS_ALL) $(DIRS_LIBCST:*=) $(FILES_ALL) $(FILES_LIBCST:*=)
  117. mt: $(DIRS_ALL) $(DIRS_LIBCMT:*=) $(FILES_ALL) $(FILES_LIBCMT:*=)
  118. dll: $(DIRS_ALL) $(DIRS_DLL:*=) $(FILES_ALL) $(FILES_DLL:*=) $(FILES_DLL_RELEASE)
  119. xst: $(DIRS_ALL) $(DIRS_LIBCST:*=x) $(FILES_ALL) $(FILES_LIBCST:*=x)
  120. xmt: $(DIRS_ALL) $(DIRS_LIBCMT:*=x) $(FILES_ALL) $(FILES_LIBCMT:*=x)
  121. xdll: $(DIRS_ALL) $(DIRS_DLL:*=x) $(FILES_ALL) $(FILES_DLL:*=x) $(FILES_DLL_DEBUG)
  122. $(DIRS_ALL) $(DIRS:*=) $(DIRS:*=x) $(DIRS:*=z) $(DIRS:*=b) $(DIRS:*=xb):
  123. @if not exist $@\NUL mkdire $@
  124. $D\$(DEFCPP_NAME)d.def: $S\libw32\lib\$(DEFCPP_NAME)d.def
  125. @echo Copying $** to $@
  126. @copy $** $@
  127. $D\$(DEFCPP_NAME).def: $S\libw32\lib\$(DEFCPP_NAME).def
  128. @echo Copying $** to $@
  129. @copy $** $@