Makefile.fpc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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_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
  36. units_win64=ptcgraph ptccrt
  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. graph$(PPUEXT) : graph.pp $(GRAPHINCDEPS)
  79. $(COMPILER) -I$(GRAPHDIR) $(GRAPHUNIT_DIR)/graph.pp
  80. ggigraph$(PPUEXT) : $(UNIXINC)/ggigraph.pp $(GRAPHINCDEPS)
  81. $(COMPILER) -I$(GRAPHDIR) $(UNIXINC)/ggigraph.pp
  82. winmouse$(PPUEXT) : src/win32/winmouse.pp graph$(PPUEXT)
  83. $(COMPILER) src/win32/winmouse.pp
  84. wincrt$(PPUEXT) : src/win32/wincrt.pp graph$(PPUEXT)
  85. $(COMPILER) src/win32/wincrt.pp
  86. sdlgraph$(PPUEXT) : src/sdlgraph/sdlgraph.pp $(GRAPHINCDEPS)
  87. $(COMPILER) -I$(GRAPHDIR) src/sdlgraph/sdlgraph.pp
  88. .NOTPARALLEL: