fpmake.pp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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('postgres');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='postgres';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.0.0';
  17. P.SourcePath.Add('src');
  18. T:=P.Targets.AddUnit('dllistdyn.pp');
  19. with T.Dependencies do
  20. begin
  21. AddInclude('dllisttypes.inc');
  22. end;
  23. T:=P.Targets.AddUnit('dllist.pp');
  24. with T.Dependencies do
  25. begin
  26. AddInclude('dllisttypes.inc');
  27. end;
  28. T:=P.Targets.AddUnit('postgres3dyn.pp');
  29. with T.Dependencies do
  30. begin
  31. AddInclude('postgres3types.inc');
  32. AddUnit('dllistdyn');
  33. end;
  34. T:=P.Targets.AddUnit('postgres3.pp');
  35. with T.Dependencies do
  36. begin
  37. AddInclude('postgres3types.inc');
  38. AddUnit('dllist');
  39. end;
  40. T:=P.Targets.AddUnit('postgres.pp');
  41. with T.Dependencies do
  42. begin
  43. AddUnit('dllist');
  44. end;
  45. {$ifndef ALLPACKAGES}
  46. Run;
  47. end;
  48. end.
  49. {$endif ALLPACKAGES}