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.

25 lines
1.1 KiB

  1. $(O)\$(CATFILENAME):
  2. type <<$(O)\$(@B).CDF
  3. [CatalogHeader]
  4. Name=$(@B)
  5. ResultDir=$(O)
  6. PublicVersion=0x0000001
  7. EncodingType=0x00010001
  8. CATATTR1=0x10010001:OSAttr:2:5.x
  9. [CatalogFiles]
  10. <<KEEP
  11. for %a in ($(BDASETUPINF)) do @echo ^<hash^>%~nxa=$(_NTTREE)\dx8\%~nxa>>$(O)\$(@B).CDF
  12. for %a in ($(BDAPROTECTED)) do @echo ^<hash^>%~nxa=$(BDADROPDIR)\%~nxa>>$(O)\$(@B).CDF
  13. for %a in ($(BDAPROTECTEDNT)) do @echo ^<hash^>%~nxa=$(BDADROPDIR)\%~nxa>>$(O)\$(@B).CDF
  14. for %a in ($(BDAINFS)) do @echo ^<hash^>%~nxa=$(BDADROPDIR)\%~nxa>>$(O)\$(@B).CDF
  15. makecat -n -v $(O)\$(@B).CDF
  16. copy $@ $@.unsigned
  17. setreg -q 1 TRUE
  18. !MESSAGE WARNING This is a test signature... Real signature required before release...
  19. signcode -sha1 $(NT_CERTHASH) -n "DirectX 8.0 BDA" -i "http://www.microsoft.com/DirectX" -t http://timestamp.verisign.com/scripts/timstamp.dll $@
  20. chktrust -q $@ | ..\..\tools\sed -e "/Succeeded/!d" -e "s/\(.*\): \(.*\)/\.\.\\\.\.\\tools\\touch -c \1.\2/" > $(O)\chkcat.cmd
  21. -del $@.Succeeded > NUL 2>&1
  22. call $(O)\chkcat.cmd
  23. if not exist $@.Succeeded echo nmake : CATALOG SINING ERROR! : failed to sign $@
  24. $(BINPLACE_CMD)