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.

163 lines
5.6 KiB

  1. $(O)\$(CATFILENAME): makefile.inc $(REDISTFILE) $(DSHOWPROTECTED)
  2. # for %a in ($(DX8PROTECTED)) do signcode -v %_NTBINDIR%\driver.pvk -spc %_NTBINDIR%\driver.spc -n "Microsoft Windows 2000 Test" -i "http://ntbld" -t http://timestamp.verisign.com/scripts/timstamp.dll $(DX8DROPDIR)\%a
  3. type <<$(O)\$(@B).CDF
  4. [CatalogHeader]
  5. Name=$(@B)
  6. ResultDir=$(O)
  7. PublicVersion=0x0000001
  8. EncodingType=0x00010001
  9. CATATTR1=0x10010001:OSAttr:2:5.0
  10. [CatalogFiles]
  11. <<KEEP
  12. for %a in ($(DX8PROTECTED)) do @echo ^<hash^>%~nxa=$(DX8DROPDIR)\%~nxa>>$(O)\$(@B).CDF
  13. for %a in ($(DMSWITCHFILE_R)) do @echo ^<hash^>%a=$(SWITCHFILEDIR_R)\%a>>$(O)\$(@B).CDF
  14. for %a in ($(DX8BINFILE)) do @echo ^<hash^>%a=$(DX8BINDIR)\%a>>$(O)\$(@B).CDF
  15. for %a in ($(REDISTFILE)) do @echo ^<hash^>%a=$(_NTTREE)\redist\%a>>$(O)\$(@B).CDF
  16. for %a in ($(DSHOWPROTECTED)) do @echo ^<hash^>%a=$(DSHOWDIR)\%a>>$(O)\$(@B).CDF
  17. makecat -n -v $(O)\$(@B).CDF
  18. copy $@ $@.unsigned
  19. setreg -q 1 TRUE
  20. !MESSAGE WARNING This is a test signature... Real signature required before release...
  21. # signcode -v $(BASEDIR)\public\tools\driver.pvk -spc $(BASEDIR)\public\tools\driver.spc -n "Microsoft Windows\NT Driver Catalog TEST" -i "http://ntbld" $@
  22. signcode -v %_NTBINDIR%\tools\driver.pvk -spc %_NTBINDIR%\tools\driver.spc -n "Microsoft Windows 2000 Catalog Test" -i "http://ntbld" -t http://timestamp.verisign.com/scripts/timstamp.dll $@
  23. chktrust -q $@ | ..\..\tools\sed -e "/Succeeded/!d" -e "s/\(.*\): \(.*\)/\.\.\\\.\.\\tools\\touch -c \1.\2/" > $(O)\chkcat.cmd
  24. -del $@.Succeeded > NUL 2>&1
  25. call $(O)\chkcat.cmd
  26. if not exist $@.Succeeded echo nmake : CATALOG SINING ERROR! : failed to sign $@
  27. $(DX8PROTECTED): $(DX8DROPDIR)\$@
  28. # copy $(_NTTREE)\$@ $(_NTTREE)\$@.unsigned
  29. $(REDISTFILE): $(REDISTDIR)\$@ $(_NTTREE)\redist
  30. copy $(REDISTDIR)\$@ $(_NTTREE)\redist\$@
  31. $(DSHOWPROTECTED): $(DSHOWDIR)\$@
  32. $(DSHOWUNPROTECTED): $(DSHOWDIR)\$@
  33. $(DIIHVMAPLST): $(DIIHVMAPDIR)\$@ $(_NTTREE)\redist
  34. copy $(DIIHVMAPDIR)\$@ $(_NTTREE)\redist\$@
  35. $(_NTTREE)\redist:
  36. if not exist $(_NTTREE)\redist md $(_NTTREE)\redist 1>nul
  37. $(O)\$(TARGETNAME).$(TARGETEXT): $(DX8PROTECTED) $(REDISTFILE) $(DSHOWPROTECTED) $(DSHOWUNPROTECTED) $(DIIHVMAPLST) $(O)\$(CATFILENAME) $(O)\$(CATFILENAME).Succeeded
  38. type <<$(O)\$(TARGETNAME).sed
  39. [Version]
  40. Class=IEXPRESS
  41. SEDVersion=3
  42. [Options]
  43. !ifdef REDIST
  44. PackagePurpose=CreateCAB
  45. CompressionType=MSZIP
  46. !else
  47. PackagePurpose=InstallApp
  48. !endif
  49. ShowInstallProgramWindow=0
  50. !ifdef SILENT
  51. HideExtractAnimation=1
  52. !else
  53. HideExtractAnimation=0
  54. !endif
  55. UseLongFileName=1
  56. InsideCompressed=0
  57. CAB_FixedSize=0
  58. CAB_ResvCodeSigning=0
  59. !ifdef SILENT
  60. RebootMode=N
  61. !else
  62. RebootMode=I
  63. !endif
  64. InstallPrompt=%InstallPrompt%
  65. DisplayLicense=%DisplayLicense%
  66. FinishMessage=%FinishMessage%
  67. TargetName=%TargetName%
  68. FriendlyName=%FriendlyName%
  69. AppLaunched=%AppLaunched%
  70. PostInstallCmd=%PostInstallCmd%
  71. AdminQuietInstCmd=%AdminQuietInstCmd%
  72. UserQuietInstCmd=%UserQuietInstCmd%
  73. SourceFiles=SourceFiles
  74. VersionInfo=VersionSection
  75. TargetWIN9XVersion=0: This program is not designed for use on Win9X/WinME. Press OK to exit.
  76. [VersionSection]
  77. CompanyName="Microsoft Corporation"
  78. FileDescription="DirectX 8.0 Beta for Windows 2000"
  79. Internalname="DX8W2K"
  80. OriginalFilename="DX8W2K.exe"
  81. ProductName="DirectX 8.0 Beta Cabpack"
  82. ProductVersion=""Copyright \251 Microsoft Corp. 1994-2000\0""
  83. ;Fileversion="4.6.3.518"
  84. ;LegalCopyright="4.6.3.518"
  85. [SourceFiles]
  86. SourceFiles0=$(DX8DROPDIR)
  87. SourceFiles1=$(DX8BINDIR)
  88. SourceFiles2=$(CATFILEDIR)
  89. SourceFiles3=$(SWITCHFILEDIR_R)
  90. !if "$(REDIST)"=="NT" || ("$(NTDEBUG)"!="" && "$(NTDEBUG)"!="ntsdnodbg")
  91. SourceFiles4=$(SWITCHFILEDIR_D)
  92. !endif
  93. SourceFiles5=$(DSHOWDIR)
  94. SourceFiles6=$(_NTTREE)\redist
  95. [Strings]
  96. !ifdef SILENT
  97. InstallPrompt=
  98. DisplayLicense=
  99. !else
  100. InstallPrompt=This will install Microsoft DirectX 8.0. Do you wish to continue?
  101. DisplayLicense=$(DXROOT)\redist\docs\license\DirectX End User EULA.txt
  102. !endif
  103. FinishMessage=
  104. TargetName=$@
  105. FriendlyName=DirectX 8.0 Beta Install
  106. !ifdef REDIST
  107. AppLaunched=
  108. !else
  109. !if "$(CABTYPE)"=="exe"
  110. AppLaunched=dxsetup.exe /packageinstall
  111. !else
  112. !ifdef SILENT
  113. !if "$(DEBUGCAB)"==""
  114. AppLaunched=dpsetups.inf
  115. !else
  116. AppLaunched=dpsetupsd.inf
  117. !endif
  118. !else
  119. !if "$(DEBUGCAB)"==""
  120. AppLaunched=dpsetup.inf
  121. !else
  122. AppLaunched=dpsetupd.inf
  123. !endif
  124. !endif
  125. !endif
  126. !endif
  127. PostInstallCmd=<none>
  128. AdminQuietInstCmd=
  129. UserQuietInstCmd=
  130. [SourceFiles0]
  131. <<KEEP
  132. for %a in ($(DX8PROTECTED)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  133. for %a in ($(DX8NEWFILE)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  134. for %a in ($(DX8SETUPFILE)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  135. echo [SourceFiles1]>>$(O)\$(TARGETNAME).sed
  136. for %a in ($(DX8BINFILE)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  137. echo [SourceFiles2]>>$(O)\$(TARGETNAME).sed
  138. for %a in ($(CATFILELIST)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  139. echo [SourceFiles3]>>$(O)\$(TARGETNAME).sed
  140. for %a in ($(SWITCHFILELIST_R)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  141. for %a in ($(DMSWITCHFILE_R)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  142. !if "$(REDIST)"=="NT" || ("$(NTDEBUG)"!="" && "$(NTDEBUG)"!="ntsdnodbg")
  143. echo [SourceFiles4]>>$(O)\$(TARGETNAME).sed
  144. for %a in ($(SWITCHFILELIST_D)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  145. for %a in ($(DMSWITCHFILE_D)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  146. !endif
  147. echo [SourceFiles5]>>$(O)\$(TARGETNAME).sed
  148. for %a in ($(DSHOWPROTECTED)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  149. for %a in ($(DSHOWUNPROTECTED)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  150. echo [SourceFiles6]>>$(O)\$(TARGETNAME).sed
  151. for %a in ($(REDISTFILE)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  152. for %a in ($(DIIHVMAPLST)) do @echo %a=>>$(O)\$(TARGETNAME).sed
  153. $(DXROOT)\setup\iexpress\iexpress.exe /N /M $(O)\$(TARGETNAME).sed
  154. if not exist $@ echo nmake : IEXPRESS error: failed to make $@
  155. $(BINPLACE_CMD)