fpmake.pp 662 B

1234567891011121314151617181920212223242526272829303132333435
  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('pthreads');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='pthreads';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.0.0';
  17. P.SourcePath.Add('src');
  18. T:=P.Targets.AddUnit('pthreads.pp');
  19. with T.Dependencies do
  20. begin
  21. AddInclude('pthrlinux.inc',[Linux]);
  22. AddInclude('pthrbeos.inc',[Beos]);
  23. AddInclude('pthrsnos.inc',[Solaris]);
  24. AddInclude('pthrbsd.inc',AllBSDOses);
  25. end;
  26. {$ifndef ALLPACKAGES}
  27. Run;
  28. end;
  29. end.
  30. {$endif ALLPACKAGES}