Makefile.fpc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #
  2. # Makefile.fpc for Free Component Library
  3. #
  4. [package]
  5. name=graph
  6. version=2.5.1
  7. [require]
  8. libc=y
  9. packages_linux=ptc
  10. packages_win32=ptc
  11. packages_win64=ptc
  12. packages_linux_i386=sdl
  13. packages_linux_powerpc=sdl
  14. packages_freebsd_i386=sdl
  15. packages_win32=sdl
  16. packages_darwin_powerpc=sdl
  17. packages_darwin_i386=sdl
  18. # clean package units
  19. [clean]
  20. units=$(GGIGRAPH_UNIT) $(GRAPH_UNIT)
  21. [target]
  22. dirs=
  23. units=
  24. units_linux=$(GRAPH_UNIT) $(GGIGRAPH_UNIT) ptcgraph ptccrt
  25. units_freebsd=graph $(GGIGRAPH_UNIT)
  26. units_win32=graph wincrt winmouse
  27. units_win64=graph wincrt winmouse
  28. units_go32v2=graph
  29. units_amiga=graph
  30. units_i386_linux=sdlgraph
  31. units_powerpc_linux=sdlgraph
  32. units_i386_freebsd=sdlgraph
  33. units_win32=sdlgraph
  34. units_powerpc_darwin=sdlgraph
  35. units_i386_darwin=sdlgraph
  36. units_win32=ptcgraph ptccrt
  37. units_win64=ptcgraph ptccrt
  38. [compiler]
  39. options=-S2
  40. includedir=src/$(OS_TARGET) src/inc
  41. includedir_linux=src/unix
  42. includedir_freebsd=src/unix
  43. includedir_darwin=src/unix
  44. includedir_netbsd=src/unix
  45. includedir_openbsd=src/unix
  46. sourcedir=src/$(OS_TARGET) src/inc src/ptcgraph tests examples
  47. [install]
  48. fpcpackage=y
  49. [default]
  50. fpcdir=../..
  51. [shared]
  52. build=n
  53. [prerules]
  54. GRAPHDIR=src/inc
  55. UNIXINC=src/unix
  56. ifndef USELIBGGI
  57. USELIBGGI=NO
  58. endif
  59. GGIGRAPH_UNIT=ggigraph
  60. GRAPH_UNIT=graph
  61. GRAPHUNIT_DIR=src/$(OS_TARGET)
  62. ifeq ($(OS_TARGET),linux)
  63. GRAPHUNIT_DIR=src/unix
  64. UNIXINCDEPS=$(UNIXINC)/graph16.inc
  65. ifeq ($(CPU_TARGET),powerpc64)
  66. GGIGRAPH_UNIT=
  67. endif
  68. ifneq ($(CPU_TARGET),i386)
  69. GRAPH_UNIT=
  70. endif
  71. endif
  72. ifeq ($(OS_TARGET),freebsd)
  73. GRAPHUNIT_DIR=src/unix
  74. UNIXINCDEPS=$(UNIXINC)/graph16.inc
  75. endif
  76. [rules]
  77. include src/inc/makefile.inc
  78. GRAPHINCDEPS=$(addprefix $(GRAPHDIR)/,$(GRAPHINCNAMES)) $(UNIXINCDEPS)
  79. ifeq ($(OS_TARGET),win64)
  80. graph$(PPUEXT) : src/win32/graph.pp $(GRAPHINCDEPS)
  81. $(COMPILER) -I$(GRAPHDIR) src/win32/graph.pp
  82. else
  83. graph$(PPUEXT) : graph.pp $(GRAPHINCDEPS)
  84. $(COMPILER) -I$(GRAPHDIR) $(GRAPHUNIT_DIR)/graph.pp
  85. endif
  86. ggigraph$(PPUEXT) : $(UNIXINC)/ggigraph.pp $(GRAPHINCDEPS)
  87. $(COMPILER) -I$(GRAPHDIR) $(UNIXINC)/ggigraph.pp
  88. winmouse$(PPUEXT) : src/win32/winmouse.pp graph$(PPUEXT)
  89. $(COMPILER) src/win32/winmouse.pp
  90. wincrt$(PPUEXT) : src/win32/wincrt.pp graph$(PPUEXT)
  91. $(COMPILER) src/win32/wincrt.pp
  92. sdlgraph$(PPUEXT) : src/sdlgraph/sdlgraph.pp $(GRAPHINCDEPS)
  93. $(COMPILER) -I$(GRAPHDIR) src/sdlgraph/sdlgraph.pp
  94. .NOTPARALLEL: