Makefile.common (973B)
1 CFLAGS=-C --line-numbers --tab-size=1 -Wall -c -b 2 3 LABELS=--labels-root=os -l $(TARGET).l \ 4 --labels-root=io -l io.l \ 5 --labels-root=ds -l ds.l \ 6 --labels-root=sd -l sd.l \ 7 --labels-root=lfsr -l lfsr.l \ 8 --labels-root=via -l via.l \ 9 --labels-root=term -l term.l 10 11 LABELS_SYMON=--labels-root=os -l $(TARGET)_symon.l \ 12 --labels-root=io -l io_symon.l \ 13 --labels-root=ds -l ds_symon.l \ 14 --labels-root=sd -l sd_symon.l \ 15 --labels-root=lfsr -l lfsr_symon.l \ 16 --labels-root=via -l via_symon.l \ 17 --labels-root=term -l term_symon.l 18 19 VERSION="$(shell git describe --tags)" 20 21 all: $(TARGET).bin $(TARGET)_symon.bin 22 23 %.bin: %.asm 24 64tass $(CFLAGS) $(DEFS) -DVERSION="'$(VERSION)'" -DSYMON=false $(LABELS) -L $(TARGET).lst "$<" -o "$@" 25 26 %_symon.bin: %.asm 27 64tass $(CFLAGS) $(DEFS) -DVERSION="'$(VERSION)'" -DSYMON=true $(LABELS_SYMON) -L $(TARGET)_symon.lst "$<" -o "$@" 28 29 flash: $(TARGET).bin 30 sudo ~/opt/minipro-0.5/minipro -p AT28C64B -w $< 31 32 clean: 33 rm -f *.bin *.l *.lst