Makefile.fpc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Makefile.fpc for FPC demoes and FPCGames package
  3. #
  4. [targets]
  5. units=gameunit
  6. programs=eratos qsort hello blackbox magic lines fpctris
  7. programs_win32=mandel samegame quad maze gravwars \
  8. winhello menu dlltest testdll
  9. programs_linux=mandel samegame quad maze gravwars
  10. programs_go32v2=mandel samegame quad maze gravwars \
  11. voxel
  12. [require]
  13. # Not always necessary, but saves a lot of trouble
  14. packages=api
  15. [install]
  16. packagename=demo
  17. [defaults]
  18. defaultrule=both
  19. [dirs]
  20. fpcdir=..
  21. targetdir=.
  22. [postsettings]
  23. ifdef GRAPHICS
  24. override FPCOPT+=-dUSEGRAPHICS
  25. endif
  26. [rules]
  27. ifeq ($(OS_TARGET),win32)
  28. vpath %$(PASEXT) win32
  29. endif
  30. .PHONY: text gfx both
  31. clean : execlean fpc_cleanall
  32. execlean :
  33. -$(DEL) tfpctris$(EXEEXT) tsamegam$(EXEEXT) *.scr
  34. text:
  35. $(MAKE) all
  36. $(MOVE) fpctris$(EXEEXT) tfpctris$(EXEEXT)
  37. $(MOVE) samegame$(EXEEXT) tsamegam$(EXEEXT)
  38. gfx:
  39. $(MAKE) all GRAPHICS=1
  40. both:
  41. $(MAKE) text
  42. $(DEL) gameunit$(OEXT) gameunit$(PPUEXT)
  43. $(MAKE) gfx
  44. #################################
  45. # Demo installation for linux
  46. #
  47. .PHONY: installexamples
  48. ifndef EXAMPLESINSTALLDIR
  49. EXAMPLESINSTALLDIR=$(DOCINSTALLDIR)/examples
  50. endif
  51. installexamples:
  52. $(MKDIR) $(EXAMPLESINSTALLDIR)
  53. $(COPYTREE) * $(EXAMPLESINSTALLDIR)