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.

54 lines
2.7 KiB

  1. # Build rules to make generating SLD files from the registry settings in hivecls.inx etc
  2. #
  3. !if !defined(SLDREGSTRINGS)
  4. SLDREGSTRINGS = $(_NTBINDIR)\MergedComponents\SetupInfs\usa\hivecls.txt $(_NTBINDIR)\MergedComponents\SetupInfs\usa\hivesft.txt $(_NTBINDIR)\MergedComponents\SetupInfs\usa\hivedef.txt $(SLDEXTRAREGSTRINGS)
  5. !endif
  6. !if !defined(SLDREGINFS)
  7. SLDREGINFS = $(_NTBINDIR)\MergedComponents\SetupInfs\hivecls.inx $(_NTBINDIR)\MergedComponents\SetupInfs\hivesft.inx $(_NTBINDIR)\MergedComponents\SetupInfs\hivedef.inx $(SLDEXTRAREGINFS)
  8. !endif
  9. # We make the assumption that the strings section does not change between platforms
  10. # (So far, this has been a valid assumption)
  11. #
  12. $(O)\strings.tmp : $(SLDREGSTRINGS)
  13. cat $** >> $(O)\tmp.tmp
  14. hsplit -c @*:; -lt2 sld -ltb all -ta none -o $(O)\tmp.pub $(O)\strings.tmp $(O)\tmp.tmp
  15. del $(O)\tmp.tmp
  16. del $(O)\tmp.pub
  17. $(O)\corereg.tmp : $(SLDREGINFS)
  18. cat $** >> $(O)\corereg.tmp
  19. # Build foo_Generated_Regsettings.inf foo_Generated_Regsettings_PRO.inf foo_Generated_Regsettings_ADS.inf
  20. # 1. split out the portion of corereg that we want to keep (hsplit)
  21. # 2. split this into wks and srv version (prodflt)
  22. # 3. generate the "both" "pro" and "ads" versions (windiff)
  23. # 4. slap the strings section on and clean up the output files (SldMagic.pl)
  24. # 5. compare the non-[strings] sections for changes for auto-build-machine support (SldCompare.pl)
  25. #
  26. $(SLDFILES) : $(O)\corereg.tmp $(O)\strings.tmp
  27. hsplit -c @*:; -lt2 sld -ltb all -ta $* -o $(O)\tmp.pub $(O)\$*.tmp $(O)\corereg.tmp
  28. del $(O)\tmp.pub
  29. prodfilt $(O)\$*.tmp $(O)\$*_w.tmp +w
  30. prodfilt $(O)\$*_w.tmp $(O)\$*_wi.tmp +i
  31. del $(O)\$*_w.tmp
  32. prodfilt $(O)\$*.tmp $(O)\$*_s.tmp +s
  33. prodfilt $(O)\$*_s.tmp $(O)\$*_si.tmp +i
  34. del $(O)\$*_s.tmp
  35. del $(O)\$*.tmp
  36. windiff -FLFSX $(O)\wi.tmp $(O)\$*_wi.tmp $(O)\$*_si.tmp
  37. windiff -FRGAX $(O)\si.tmp $(O)\$*_wi.tmp $(O)\$*_si.tmp
  38. windiff -FIX $(O)\both.tmp $(O)\$*_wi.tmp $(O)\$*_si.tmp
  39. del $(O)\$*_wi.tmp
  40. del $(O)\$*_si.tmp
  41. perl $(_NTBINDIR)\tools\SldMagic.pl $(O)\wi.tmp $(O)\strings.tmp $(O)\$*_Generated_Regsettings_PRO.inf
  42. perl $(_NTBINDIR)\tools\SldMagic.pl $(O)\si.tmp $(O)\strings.tmp $(O)\$*_Generated_Regsettings_ADS.inf
  43. perl $(_NTBINDIR)\tools\SldMagic.pl $(O)\both.tmp $(O)\strings.tmp $(O)\$*_Generated_Regsettings.inf
  44. del $(O)\wi.tmp
  45. del $(O)\si.tmp
  46. del $(O)\both.tmp
  47. perl $(_NTBINDIR)\tools\SldCompare.pl $(O)\$*_Generated_Regsettings_PRO.inf .\$*_Generated_Regsettings_PRO.inf
  48. perl $(_NTBINDIR)\tools\SldCompare.pl $(O)\$*_Generated_Regsettings_ADS.inf .\$*_Generated_Regsettings_ADS.inf
  49. perl $(_NTBINDIR)\tools\SldCompare.pl $(O)\$*_Generated_Regsettings.inf .\$*_Generated_Regsettings.inf