mirror of
https://github.com/UzixLS/zx-sizif-xxs.git
synced 2025-07-18 23:01:40 +03:00
28 lines
542 B
Makefile
28 lines
542 B
Makefile
ifneq ($(wildcard ../.git),)
|
|
VERSION := $(shell git describe --abbrev=6 --long --dirty --always --tags --first-parent)
|
|
endif
|
|
|
|
export PATH:=/cygdrive/c/Hwdev/sjasmplus/:/cygdrive/c/Dev/srec/:${PATH}
|
|
|
|
REV=D
|
|
SJOPTS=-DSIZIFXXS -DREV_${REV} -DVERSION=\"${VERSION}\"
|
|
|
|
.PHONY: all clean .FORCE
|
|
.FORCE:
|
|
|
|
all: main.bin
|
|
|
|
clean:
|
|
rm -f *.bin *.mem *.hex *.map *.sna
|
|
|
|
%.bin: %.asm .FORCE
|
|
sjasmplus ${SJOPTS} $<
|
|
%.mem: %.bin
|
|
srec_cat $< -binary -o $@ -vmem 8
|
|
%.hex: %.bin
|
|
srec_cat $< -binary -o $@ -intel
|
|
|
|
test: main_test.bin
|
|
|
|
-include Makefile.local
|