firmware/Makefile
raw| 1 | DESTDIR = |
| 2 | INSTALLABLE_FILES = compile.sh go mca-test.py test.py \ |
| 3 | eyes.c go-mca mca.c set_fuse.sh upload.sh \ |
| 4 | eyes.hex mca.hex |
| 5 | |
| 6 | all: eyes.hex mca.hex |
| 7 | |
| 8 | eyes.hex: eyes.c |
| 9 | ./compile.sh eyes |
| 10 | |
| 11 | mca.hex: mca.c |
| 12 | ./compile.sh mca |
| 13 | |
| 14 | clean: |
| 15 | rm -f *~ *.hex eyes mca |
| 16 | |
| 17 | install: all |
| 18 | install -d $(DESTDIR)/usr/share/expeyes/firmware |
| 19 | install -m 644 $(INSTALLABLE_FILES) $(DESTDIR)/usr/share/expeyes/firmware |
| 20 | |
| 21 | .PHONY: all clean install |