Makefile.fpc 681 B

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