fpmake.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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('gdbint');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='gdbint';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'Library : Cygnus, header: Peter Vreman';
  18. P.License := 'Library: GPL2 or later, header: LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Interface to libgdb, the GDB debugger in library format';
  22. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  23. P.SourcePath.Add('src');
  24. P.IncludePath.Add('src');
  25. //
  26. // NOTE: the gdbver.inc dependancies gives warnings because the makefile.fpc
  27. // does a "cp src/gdbver_nogdb.inc src/gdbver.inc" to create it
  28. T:=P.Targets.AddUnit('gdbcon.pp');
  29. with T.Dependencies do
  30. begin
  31. AddUnit('gdbint');
  32. end;
  33. T:=P.Targets.AddUnit('gdbint.pp');
  34. with T.Dependencies do
  35. begin
  36. AddInclude('gdbver.inc');
  37. end;
  38. {$ifndef ALLPACKAGES}
  39. Run;
  40. end;
  41. end.
  42. {$endif ALLPACKAGES}