Makefile.fpc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # Makefile.fpc for Free Component Library
  3. #
  4. [package]
  5. name=graph
  6. version=2.2.0
  7. [require]
  8. libc=y
  9. # clean package units
  10. [clean]
  11. units=$(GGIGRAPH_UNIT) $(GRAPH_UNIT)
  12. [target]
  13. dirs=
  14. units=
  15. units_linux=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
  16. units_freebsd=graph $(GGIGRAPH_UNIT)
  17. units_win32=graph wincrt winmouse
  18. units_go32v2=graph
  19. units_amiga=graph
  20. [compiler]
  21. options=-S2
  22. includedir=$(OS_TARGET) inc
  23. includedir_linux=unix
  24. includedir_freebsd=unix
  25. includedir_darwin=unix
  26. includedir_netbsd=unix
  27. includedir_openbsd=unix
  28. sourcedir=$(OS_TARGET) inc
  29. [install]
  30. fpcpackage=y
  31. [default]
  32. fpcdir=../../..
  33. [shared]
  34. build=n
  35. [prerules]
  36. GRAPHDIR=inc
  37. UNIXINC=unix
  38. ifndef USELIBGGI
  39. USELIBGGI=NO
  40. endif
  41. GGIGRAPH_UNIT=ggigraph
  42. GRAPH_UNIT=graph
  43. GRAPHUNIT_DIR=$(OS_TARGET)
  44. ifeq ($(OS_TARGET),linux)
  45. GRAPHUNIT_DIR=unix
  46. UNIXINCDEPS=$(UNIXINC)/graph16.inc
  47. ifeq ($(CPU_TARGET),powerpc64)
  48. GGIGRAPH_UNIT=
  49. endif
  50. ifneq ($(CPU_TARGET),i386)
  51. GRAPH_UNIT=
  52. endif
  53. endif
  54. ifeq ($(OS_TARGET),freebsd)
  55. GRAPHUNIT_DIR=unix
  56. UNIXINCDEPS=$(UNIXINC)/graph16.inc
  57. endif
  58. [rules]
  59. include inc/makefile.inc
  60. GRAPHINCDEPS=$(addprefix $(GRAPHDIR)/,$(GRAPHINCNAMES)) $(UNIXINCDEPS)
  61. graph$(PPUEXT) : graph.pp $(GRAPHINCDEPS)
  62. $(COMPILER) -I$(GRAPHDIR) $(GRAPHUNIT_DIR)/graph.pp
  63. ggigraph$(PPUEXT) : $(UNIXINC)/ggigraph.pp $(GRAPHINCDEPS)
  64. $(COMPILER) -I$(GRAPHDIR) $(UNIXINC)/ggigraph.pp
  65. winmouse$(PPUEXT) : win32/winmouse.pp graph$(PPUEXT)
  66. $(COMPILER) win32/winmouse.pp
  67. wincrt$(PPUEXT) : win32/wincrt.pp graph$(PPUEXT)
  68. $(COMPILER) win32/wincrt.pp
  69. .NOTPARALLEL: