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.

287 lines
15 KiB

  1. !IF 0
  2. This makefile CABS and copies Terminal Server Client files
  3. from the tsclient binaries tree to the root of binaries.
  4. Also copies Terminal Server Client files accross platforms.
  5. Typically, called as
  6. nmake /f mkrsys tscbin=\binaries\tsclient
  7. on x86 machines
  8. The file also propagates the default (OS installed) client to the root of binaries.
  9. International build machines use their own machine names to define tscbin.
  10. Far East languages invoke the makefile after they define NO_WIN16_TSCLIENT,
  11. as the win16 tsclient is not applicable for Far Eeast languages.
  12. OWNER: nadima
  13. !ENDIF
  14. # Path to the root of x86 TSC 32bit binaries must be defined.
  15. !IFNDEF tscbin
  16. !Error tscbin not defined.
  17. !ENDIF
  18. # Path to the root of the local binaries directory
  19. binaries=..\..
  20. # Define targets
  21. # Default installed client bits
  22. tscretail=\
  23. $(binaries)\mstsc.exe \
  24. $(binaries)\mstscax.dll \
  25. $(binaries)\mstsmhst.dll \
  26. $(binaries)\mstsmmc.dll \
  27. $(binaries)\tsmmc.msc \
  28. $(binaries)\tscupgrd.exe \
  29. # TS Web bits
  30. tsweb=\
  31. $(binaries)\msrdp.cab \
  32. $(binaries)\tsweb1.htm \
  33. $(binaries)\mstsweb.cat \
  34. # MSI files
  35. tscnmsi = \
  36. $(binaries)\tscmsi01.w32 \
  37. $(binaries)\tscmsi02.w32 \
  38. $(binaries)\tscmsi03.w32 \
  39. # Placeholder MSI files
  40. instmsi = \
  41. $(binaries)\instmsia.exe \
  42. $(binaries)\instmsiw.exe \
  43. all:\
  44. $(tscretail) \
  45. $(tscnmsi) \
  46. $(instmsi) \
  47. $(tsweb) \
  48. # /////////////////////////////////////////////////////////////////////////////
  49. # //
  50. # tscretail
  51. !IF ("$(386)" == "1")
  52. $(binaries)\mstsc.exe: $(tscbin)\win32\i386\mstsc.exe
  53. copy $** $@
  54. if exist $(tscbin)\win32\i386\Symbols.pri\retail\exe\mstsc.pdb if not exist $(binaries)\symbols.pri\retail\exe md $(binaries)\symbols.pri\retail\exe
  55. if exist $(tscbin)\win32\i386\Symbols.pri\retail\exe\mstsc.pdb copy $(tscbin)\win32\i386\Symbols.pri\retail\exe\mstsc.pdb $(binaries)\symbols.pri\retail\exe\mstsc.pdb
  56. if exist $(tscbin)\win32\i386\symbols\retail\exe\mstsc.pdb if not exist $(binaries)\symbols\retail\exe md $(binaries)\symbols\retail\exe
  57. if exist $(tscbin)\win32\i386\symbols\retail\exe\mstsc.pdb copy $(tscbin)\win32\i386\symbols\retail\exe\mstsc.pdb $(binaries)\symbols\retail\exe\mstsc.pdb
  58. $(binaries)\mstscax.dll: $(tscbin)\win32\i386\mstscax.dll
  59. copy $** $@
  60. if exist $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstscax.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  61. if exist $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstscax.pdb copy $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstscax.pdb $(binaries)\symbols.pri\retail\dll\mstscax.pdb
  62. if exist $(tscbin)\win32\i386\symbols\retail\dll\mstscax.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  63. if exist $(tscbin)\win32\i386\symbols\retail\dll\mstscax.pdb copy $(tscbin)\win32\i386\symbols\retail\dll\mstscax.pdb $(binaries)\symbols\retail\dll\mstscax.pdb
  64. $(binaries)\mstsmmc.dll: $(tscbin)\win32\i386\mstsmmc.dll
  65. copy $** $@
  66. if exist $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstsmmc.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  67. if exist $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstsmmc.pdb copy $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstsmmc.pdb $(binaries)\symbols.pri\retail\dll\mstsmmc.pdb
  68. if exist $(tscbin)\win32\i386\symbols\retail\dll\mstsmmc.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  69. if exist $(tscbin)\win32\i386\symbols\retail\dll\mstsmmc.pdb copy $(tscbin)\win32\i386\symbols\retail\dll\mstsmmc.pdb $(binaries)\symbols\retail\dll\mstsmmc.pdb
  70. $(binaries)\mstsmhst.dll: $(tscbin)\win32\i386\mstsmhst.dll
  71. copy $** $@
  72. if exist $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstsmhst.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  73. if exist $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstsmhst.pdb copy $(tscbin)\win32\i386\Symbols.pri\retail\dll\mstsmhst.pdb $(binaries)\symbols.pri\retail\dll\mstsmhst.pdb
  74. if exist $(tscbin)\win32\i386\symbols\retail\dll\mstsmhst.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  75. if exist $(tscbin)\win32\i386\symbols\retail\dll\mstsmhst.pdb copy $(tscbin)\win32\i386\symbols\retail\dll\mstsmhst.pdb $(binaries)\symbols\retail\dll\mstsmhst.pdb
  76. $(binaries)\tscupgrd.exe: $(tscbin)\win32\i386\tscupgrd.exe
  77. copy $** $@
  78. if exist $(tscbin)\win32\i386\Symbols.pri\retail\exe\tscupgrd.pdb if not exist $(binaries)\symbols.pri\retail\exe md $(binaries)\symbols.pri\retail\exe
  79. if exist $(tscbin)\win32\i386\Symbols.pri\retail\exe\tscupgrd.pdb copy $(tscbin)\win32\i386\Symbols.pri\retail\exe\tscupgrd.pdb $(binaries)\symbols.pri\retail\exe\tscupgrd.pdb
  80. if exist $(tscbin)\win32\i386\symbols\retail\exe\tscupgrd.pdb if not exist $(binaries)\symbols\retail\exe md $(binaries)\symbols\retail\exe
  81. if exist $(tscbin)\win32\i386\symbols\retail\exe\tscupgrd.pdb copy $(tscbin)\win32\i386\symbols\retail\exe\tscupgrd.pdb $(binaries)\symbols\retail\exe\tscupgrd.pdb
  82. $(binaries)\tsmmc.msc: $(tscbin)\win32\i386\tsmmc.msc
  83. copy $** $@
  84. # /////////////////////////////////////////////////////////////////////////////
  85. # //
  86. # tsweb
  87. $(binaries)\tsweb1.htm: $(tscbin)\win32\i386\genweb\tsweb1.htm
  88. copy $** $@
  89. $(binaries)\msrdp.cab: $(tscbin)\win32\i386\genweb\msrdp.cab
  90. copy $** $@
  91. $(binaries)\mstsweb.cat: $(tscbin)\win32\i386\genweb\mstsweb.cat
  92. copy $** $@
  93. !ENDIF
  94. !IF ("$(AMD64)" == "1")
  95. $(binaries)\mstsc.exe: $(tscbin)\win32\amd64\mstsc.exe
  96. copy $** $@
  97. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\exe\mstsc.pdb if not exist $(binaries)\symbols.pri\retail\exe md $(binaries)\symbols.pri\retail\exe
  98. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\exe\mstsc.pdb copy $(tscbin)\win32\amd64\Symbols.pri\retail\exe\mstsc.pdb $(binaries)\symbols.pri\retail\exe\mstsc.pdb
  99. if exist $(tscbin)\win32\amd64\symbols\retail\exe\mstsc.pdb if not exist $(binaries)\symbols\retail\exe md $(binaries)\symbols\retail\exe
  100. if exist $(tscbin)\win32\amd64\symbols\retail\exe\mstsc.pdb copy $(tscbin)\win32\amd64\symbols\retail\exe\mstsc.pdb $(binaries)\symbols\retail\exe\mstsc.pdb
  101. $(binaries)\mstscax.dll: $(tscbin)\win32\amd64\mstscax.dll
  102. copy $** $@
  103. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstscax.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  104. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstscax.pdb copy $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstscax.pdb $(binaries)\symbols.pri\retail\dll\mstscax.pdb
  105. if exist $(tscbin)\win32\amd64\symbols\retail\dll\mstscax.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  106. if exist $(tscbin)\win32\amd64\symbols\retail\dll\mstscax.pdb copy $(tscbin)\win32\amd64\symbols\retail\dll\mstscax.pdb $(binaries)\symbols\retail\dll\mstscax.pdb
  107. $(binaries)\mstsmmc.dll: $(tscbin)\win32\amd64\mstsmmc.dll
  108. copy $** $@
  109. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstsmmc.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  110. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstsmmc.pdb copy $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstsmmc.pdb $(binaries)\symbols.pri\retail\dll\mstsmmc.pdb
  111. if exist $(tscbin)\win32\amd64\symbols\retail\dll\mstsmmc.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  112. if exist $(tscbin)\win32\amd64\symbols\retail\dll\mstsmmc.pdb copy $(tscbin)\win32\amd64\symbols\retail\dll\mstsmmc.pdb $(binaries)\symbols\retail\dll\mstsmmc.pdb
  113. $(binaries)\mstsmhst.dll: $(tscbin)\win32\amd64\mstsmhst.dll
  114. copy $** $@
  115. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstsmhst.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  116. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstsmhst.pdb copy $(tscbin)\win32\amd64\Symbols.pri\retail\dll\mstsmhst.pdb $(binaries)\symbols.pri\retail\dll\mstsmhst.pdb
  117. if exist $(tscbin)\win32\amd64\symbols\retail\dll\mstsmhst.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  118. if exist $(tscbin)\win32\amd64\symbols\retail\dll\mstsmhst.pdb copy $(tscbin)\win32\amd64\symbols\retail\dll\mstsmhst.pdb $(binaries)\symbols\retail\dll\mstsmhst.pdb
  119. $(binaries)\tscupgrd.exe: $(tscbin)\win32\amd64\tscupgrd.exe
  120. copy $** $@
  121. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\exe\tscupgrd.pdb if not exist $(binaries)\symbols.pri\retail\exe md $(binaries)\symbols.pri\retail\exe
  122. if exist $(tscbin)\win32\amd64\Symbols.pri\retail\exe\tscupgrd.pdb copy $(tscbin)\win32\amd64\Symbols.pri\retail\exe\tscupgrd.pdb $(binaries)\symbols.pri\retail\exe\tscupgrd.pdb
  123. if exist $(tscbin)\win32\amd64\symbols\retail\exe\tscupgrd.pdb if not exist $(binaries)\symbols\retail\exe md $(binaries)\symbols\retail\exe
  124. if exist $(tscbin)\win32\amd64\symbols\retail\exe\tscupgrd.pdb copy $(tscbin)\win32\amd64\symbols\retail\exe\tscupgrd.pdb $(binaries)\symbols\retail\exe\tscupgrd.pdb
  125. $(binaries)\tsmmc.msc: $(tscbin)\win32\amd64\tsmmc.msc
  126. copy $** $@
  127. # /////////////////////////////////////////////////////////////////////////////
  128. # //
  129. # tsweb
  130. $(binaries)\tsweb1.htm: $(tscbin)\win32\amd64\genweb\tsweb1.htm
  131. copy $** $@
  132. $(binaries)\msrdp.cab: $(tscbin)\win32\amd64\genweb\msrdp.cab
  133. copy $** $@
  134. $(binaries)\mstsweb.cat: $(tscbin)\win32\amd64\genweb\mstsweb.cat
  135. copy $** $@
  136. !ENDIF
  137. !IF ("$(IA64)" == "1")
  138. $(binaries)\mstsc.exe: $(tscbin)\win32\ia64\mstsc.exe
  139. copy $** $@
  140. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\exe\mstsc.pdb if not exist $(binaries)\symbols.pri\retail\exe md $(binaries)\symbols.pri\retail\exe
  141. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\exe\mstsc.pdb copy $(tscbin)\win32\ia64\Symbols.pri\retail\exe\mstsc.pdb $(binaries)\symbols.pri\retail\exe\mstsc.pdb
  142. if exist $(tscbin)\win32\ia64\symbols\retail\exe\mstsc.pdb if not exist $(binaries)\symbols\retail\exe md $(binaries)\symbols\retail\exe
  143. if exist $(tscbin)\win32\ia64\symbols\retail\exe\mstsc.pdb copy $(tscbin)\win32\ia64\symbols\retail\exe\mstsc.pdb $(binaries)\symbols\retail\exe\mstsc.pdb
  144. $(binaries)\mstscax.dll: $(tscbin)\win32\ia64\mstscax.dll
  145. copy $** $@
  146. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstscax.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  147. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstscax.pdb copy $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstscax.pdb $(binaries)\symbols.pri\retail\dll\mstscax.pdb
  148. if exist $(tscbin)\win32\ia64\symbols\retail\dll\mstscax.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  149. if exist $(tscbin)\win32\ia64\symbols\retail\dll\mstscax.pdb copy $(tscbin)\win32\ia64\symbols\retail\dll\mstscax.pdb $(binaries)\symbols\retail\dll\mstscax.pdb
  150. $(binaries)\mstsmmc.dll: $(tscbin)\win32\ia64\mstsmmc.dll
  151. copy $** $@
  152. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstsmmc.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  153. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstsmmc.pdb copy $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstsmmc.pdb $(binaries)\symbols.pri\retail\dll\mstsmmc.pdb
  154. if exist $(tscbin)\win32\ia64\symbols\retail\dll\mstsmmc.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  155. if exist $(tscbin)\win32\ia64\symbols\retail\dll\mstsmmc.pdb copy $(tscbin)\win32\ia64\symbols\retail\dll\mstsmmc.pdb $(binaries)\symbols\retail\dll\mstsmmc.pdb
  156. $(binaries)\mstsmhst.dll: $(tscbin)\win32\ia64\mstsmhst.dll
  157. copy $** $@
  158. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstsmhst.pdb if not exist $(binaries)\symbols.pri\retail\dll md $(binaries)\symbols.pri\retail\dll
  159. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstsmhst.pdb copy $(tscbin)\win32\ia64\Symbols.pri\retail\dll\mstsmhst.pdb $(binaries)\symbols.pri\retail\dll\mstsmhst.pdb
  160. if exist $(tscbin)\win32\ia64\symbols\retail\dll\mstsmhst.pdb if not exist $(binaries)\symbols\retail\dll md $(binaries)\symbols\retail\dll
  161. if exist $(tscbin)\win32\ia64\symbols\retail\dll\mstsmhst.pdb copy $(tscbin)\win32\ia64\symbols\retail\dll\mstsmhst.pdb $(binaries)\symbols\retail\dll\mstsmhst.pdb
  162. $(binaries)\tscupgrd.exe: $(tscbin)\win32\ia64\tscupgrd.exe
  163. copy $** $@
  164. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\exe\tscupgrd.pdb if not exist $(binaries)\symbols.pri\retail\exe md $(binaries)\symbols.pri\retail\exe
  165. if exist $(tscbin)\win32\ia64\Symbols.pri\retail\exe\tscupgrd.pdb copy $(tscbin)\win32\ia64\Symbols.pri\retail\exe\tscupgrd.pdb $(binaries)\symbols.pri\retail\exe\tscupgrd.pdb
  166. if exist $(tscbin)\win32\ia64\symbols\retail\exe\tscupgrd.pdb if not exist $(binaries)\symbols\retail\exe md $(binaries)\symbols\retail\exe
  167. if exist $(tscbin)\win32\ia64\symbols\retail\exe\tscupgrd.pdb copy $(tscbin)\win32\ia64\symbols\retail\exe\tscupgrd.pdb $(binaries)\symbols\retail\exe\tscupgrd.pdb
  168. $(binaries)\tsmmc.msc: $(tscbin)\win32\ia64\tsmmc.msc
  169. copy $** $@
  170. # /////////////////////////////////////////////////////////////////////////////
  171. # //
  172. # tsweb
  173. $(binaries)\tsweb1.htm: $(tscbin)\win32\ia64\genweb\tsweb1.htm
  174. copy $** $@
  175. $(binaries)\msrdp.cab: $(tscbin)\win32\ia64\genweb\msrdp.cab
  176. copy $** $@
  177. $(binaries)\mstsweb.cat: $(tscbin)\win32\ia64\genweb\mstsweb.cat
  178. copy $** $@
  179. !ENDIF
  180. # // end tscretail
  181. # //
  182. # /////////////////////////////////////////////////////////////////////////////
  183. #
  184. !IF ("$(386)" == "1")
  185. ##############################################################
  186. # tscnmsi
  187. $(binaries)\tscmsi01.w32: $(tscbin)\win32\i386\msrdpcli.msi
  188. copy $** $@
  189. $(binaries)\tscmsi02.w32: $(tscbin)\win32\i386\setup.exe
  190. copy $** $@
  191. $(binaries)\tscmsi03.w32: $(tscbin)\win32\i386\setup.ini
  192. copy $** $@
  193. # pickup msi installer bits
  194. $(binaries)\instmsia.exe: $(tscbin)\win32\i386\instmsia.exe
  195. copy $** $@
  196. $(binaries)\instmsiw.exe: $(tscbin)\win32\i386\instmsiw.exe
  197. copy $** $@
  198. !ELSE
  199. ##############################################################
  200. # tscnmsi (dummy file)
  201. $(binaries)\tscmsi01.w32: $(tscbin)\idfile
  202. copy $** $@
  203. $(binaries)\tscmsi02.w32: $(tscbin)\idfile
  204. copy $** $@
  205. $(binaries)\tscmsi03.w32: $(tscbin)\idfile
  206. copy $** $@
  207. ##############################################################
  208. # instmsi
  209. # instmsia.exe instmsiw.exe
  210. $(binaries)\instmsia.exe: $(tscbin)\idfile
  211. copy $** $@
  212. $(binaries)\instmsiw.exe: $(tscbin)\idfile
  213. copy $** $@
  214. !ENDIF