Makefile.fpc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #
  2. # Makefile.fpc for FPC graph demos (part of FPC demo package)
  3. #
  4. [targets]
  5. units=gameunit
  6. programs=fpctris
  7. programs_win32=mandel samegame quad maze gravwars
  8. programs_linux=mandel samegame quad maze gravwars
  9. programs_go32v2=mandel samegame quad maze gravwars
  10. # anyone who wants to port this sampels on OS/2 ???
  11. [require]
  12. # Not always necessary, but saves a lot of trouble
  13. packages=api
  14. [install]
  15. packagename=demo
  16. [defaults]
  17. defaultrule=both
  18. [dirs]
  19. fpcdir=../..
  20. targetdir=.
  21. [postsettings]
  22. ifdef GRAPHICS
  23. override FPCOPT+=-dUSEGRAPHICS
  24. endif
  25. [rules]
  26. ifeq ($(OS_TARGET),win32)
  27. vpath %$(PASEXT) win32
  28. endif
  29. .PHONY: text gfx both
  30. clean : execlean fpc_cleanall
  31. execlean :
  32. $(DEL) text/*
  33. $(DELTREE) text
  34. $(DEL) graph/*
  35. $(DELTREE) graph
  36. # below projects will call ourselves recursive
  37. text:
  38. $(MKDIR) text
  39. $(MAKE) all TARGETDIR=text
  40. graph:
  41. $(MKDIR) graph
  42. $(MAKE) all TARGETDIR=graph GRAPHICS=1
  43. both:
  44. $(MAKE) text
  45. $(MAKE) graph
  46. #################################
  47. # Demo installation for linux
  48. #
  49. # possibly wont work
  50. .PHONY: installexamples
  51. ifndef EXAMPLESINSTALLDIR
  52. EXAMPLESINSTALLDIR=$(DOCINSTALLDIR)/examples
  53. endif
  54. installexamples:
  55. $(MKDIR) $(EXAMPLESINSTALLDIR)
  56. $(COPYTREE) * $(EXAMPLESINSTALLDIR)