Makefile.fpc 633 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Makefile.fpc for FPC graph demos (part of FPC demo package)
  3. #
  4. [target]
  5. units=gameunit
  6. programs=fpctris mandel samegame quad maze gravwars
  7. [default]
  8. fpcdir=../..
  9. [prerules]
  10. ifdef GRAPHICS
  11. override FPCOPT+=-dUSEGRAPHICS
  12. endif
  13. [rules]
  14. .PHONY: text gfx both
  15. all: both
  16. clean : execlean fpc_cleanall
  17. execlean :
  18. $(DELTREE) text
  19. $(DELTREE) graph
  20. # below projects will call ourselves recursive
  21. text:
  22. $(MKDIR) text
  23. $(MAKE) fpc_all COMPILER_TARGETDIR=text
  24. graph:
  25. $(MKDIR) graph
  26. $(MAKE) fpc_all COMPILER_TARGETDIR=graph GRAPHICS=1
  27. both:
  28. $(MAKE) text
  29. $(MAKE) graph