2
0

Makefile 351 B

12345678910111213141516171819202122232425
  1. export PATH := $(CURDIR)/tools/gnu:$(PATH)
  2. SUBDIRS = tools fw fpga
  3. all clean spotless :
  4. $(MAKE) local.$@ $(SUBDIRS) goal=$@
  5. .PHONY: $(SUBDIRS)
  6. $(SUBDIRS):
  7. $(MAKE) -C $@ $(goal)
  8. fw: tools
  9. fpga: fw
  10. local.all:
  11. local.clean:
  12. rm -f *~ ./\#* \# *.bak
  13. local.spotless: local.clean
  14. # Programming the FPGA or flash
  15. program flash:
  16. $(MAKE) -C fpga $@