fpmake.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('hash');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='hash';
  15. {$endif ALLPACKAGES}
  16. P.Author := 'Free Pascal development team, Mark Adler, Jacques Nomssi Nzali';
  17. P.License := 'LGPL with modification, ';
  18. P.HomepageURL := 'www.freepascal.org';
  19. P.Email := '';
  20. P.Description := 'Several hash algorithms (MD5,CRC,Linux crypt and NTLM1).';
  21. P.NeedLibC:= false;
  22. P.Version:='2.6.1';
  23. T:=P.Targets.AddUnit('src/md5.pp');
  24. T:=P.Targets.AddUnit('src/sha1.pp');
  25. T:=P.Targets.AddUnit('src/crc.pas');
  26. T:=P.Targets.AddUnit('src/ntlm.pas');
  27. T:=P.Targets.AddUnit('src/uuid.pas');
  28. T:=P.Targets.AddUnit('src/unixcrypt.pas');
  29. T.OSes:=[Linux];
  30. T:=P.Targets.AddExampleunit('examples/mdtest.pas');
  31. T:=P.Targets.AddExampleunit('examples/crctest.pas');
  32. T:=P.Targets.AddExampleunit('examples/sha1test.pp');
  33. // md5.ref
  34. {$ifndef ALLPACKAGES}
  35. Run;
  36. end;
  37. end.
  38. {$endif ALLPACKAGES}