Makefile.fpc 880 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Makefile.fpc to create and group units needed for
  3. # tests for all targets
  4. #
  5. [target]
  6. units=erroru
  7. [install]
  8. fpcpackage=y
  9. [default]
  10. fpcdir=../..
  11. [rules]
  12. .PHONY: rtl fcl clean
  13. DUMMYINSTALLDIR=$(BASEDIR)/tmp
  14. INSTALLOPT=INSTALL_PREFIX=$(DUMMYINSTALLDIR) INSTALL_UNITDIR=$(BASEDIR)
  15. ifndef USEUNITDIR
  16. rtl:
  17. $(MAKE) -C ../../rtl all "OPT=$(OPT) -n"
  18. $(MAKE) -C ../../rtl install $(INSTALLOPT)
  19. fcl:
  20. $(MAKE) -C ../../packages/base all "OPT=$(OPT) -n"
  21. $(MAKE) -C ../../fcl all "OPT=$(OPT) -n"
  22. $(MAKE) -C ../../fcl install $(INSTALLOPT)
  23. clean : cleanall
  24. # $(MAKE) -C ../../rtl clean
  25. # $(MAKE) -C ../../fcl clean
  26. $(DELTREE) $(DUMMYINSTALLDIR)
  27. else
  28. rtl:
  29. $(COPY) $(USEUNITDIR)/* .
  30. $(ECHO) Copied > $(FPCMADE)
  31. fcl: rtl
  32. clean : cleanall
  33. $(DELTREE) $(DUMMYINSTALLDIR)
  34. endif
  35. erroru$(PPUEXT): erroru.pp rtl fcl