Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. SUBSYSTEMS = tools bin h pch gtc ti68k
  2. INSTALLABLE_SUBSYSTEMS = h pch gtc
  3. all: $(addprefix all-,$(SUBSYSTEMS))
  4. @echo 1>&2
  5. @echo 1>&2 '-- Compilation successful!'
  6. @echo 1>&2 ' You may use the calculator binaries now (e.g. for the TI-89 in ti68k/bin-89).'
  7. @echo 1>&2 ' Or if you want to go ahead and install the cross-compiler, just type "make install".'
  8. @echo 1>&2
  9. install: $(addprefix all-,$(SUBSYSTEMS)) $(addprefix install-,$(INSTALLABLE_SUBSYSTEMS))
  10. @echo 1>&2
  11. @echo 1>&2 '-- Cross-compiler install successful!'
  12. @echo 1>&2 ' You should now be able to compile by typing "gtc myprogram.c".'
  13. @echo 1>&2 ' Remember that the calculator binaries are available, e.g. for the TI-89 in ti68k/bin-89.'
  14. @echo 1>&2
  15. clean: $(addprefix clean-,$(SUBSYSTEMS))
  16. distclean: $(addprefix distclean-,$(SUBSYSTEMS))
  17. scratchclean: $(addprefix scratchclean-,$(SUBSYSTEMS))
  18. distclean scratchclean:
  19. $(RM) config.mk
  20. all-bin: all-tools
  21. all-h: all-bin
  22. all-pch: all-bin
  23. all-gtc: all-bin
  24. all-ti68k: all-bin all-h all-pch
  25. $(addprefix install-,$(INSTALLABLE_SUBSYSTEMS)): $(addprefix all-,$(INSTALLABLE_SUBSYSTEMS))
  26. all-%:
  27. $(MAKE) -C $(patsubst all-%,%,$@) all
  28. install-%:
  29. $(MAKE) -C $(patsubst install-%,%,$@) install
  30. clean-%:
  31. $(MAKE) -C $(patsubst clean-%,%,$@) clean
  32. distclean-%:
  33. $(MAKE) -C $(patsubst distclean-%,%,$@) distclean
  34. scratchclean-%:
  35. $(MAKE) -C $(patsubst scratchclean-%,%,$@) scratchclean