Makefile.fpc 2.4 KB

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