fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:=ADirectory;
  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.OSes:=P.OSes-[embedded];
  23. P.Version:='2.7.1';
  24. T:=P.Targets.AddUnit('src/md5.pp');
  25. T:=P.Targets.AddUnit('src/sha1.pp');
  26. T:=P.Targets.AddUnit('src/crc.pas');
  27. T:=P.Targets.AddUnit('src/ntlm.pas');
  28. T:=P.Targets.AddUnit('src/uuid.pas');
  29. T:=P.Targets.AddUnit('src/unixcrypt.pas');
  30. T.OSes:=[Linux];
  31. T:=P.Targets.AddExampleunit('examples/mdtest.pas');
  32. T:=P.Targets.AddExampleunit('examples/crctest.pas');
  33. T:=P.Targets.AddExampleunit('examples/sha1test.pp');
  34. // md5.ref
  35. {$ifndef ALLPACKAGES}
  36. Run;
  37. end;
  38. end.
  39. {$endif ALLPACKAGES}