| 1 | #Makefile by Philipp Hachtmann, 2015 |
| 2 | |
| 3 | CC=gcc |
| 4 | PAL=palbart |
| 5 | |
| 6 | CFLAGS=-Wall |
| 7 | PALFLAGS=-l |
| 8 | |
| 9 | PROGS=dumprk05 restrk05 dumprx01 restrx01 dumptd8e resttd8e sendtape dumbterm blkdectp |
| 10 | |
| 11 | BINS=restrk05.bin dumprk05.bin restrx01.bin dumprx01.bin setdenrx02.bin resttd8e.bin \ |
| 12 | dumptd8e.bin readrk05.bin testrk05.bin testrk05s1.bin |
| 13 | |
| 14 | default: $(PROGS) $(BINS) |
| 15 | |
| 16 | |
| 17 | $(PROGS):%:%.c |
| 18 | $(CC) -o $@ $< |
| 19 | |
| 20 | |
| 21 | $(BINS):%.bin:%.pal |
| 22 | $(PAL) $(PALFLAGS) $< |
| 23 | |
| 24 | |
| 25 | clean: |
| 26 | rm -f $(PROGS) *~ $(BINS) *.lst *.err |