Makefile.fpc 1.9 KB

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