zx_asmtest

changeset 1:04fc17db12e6

slightly better makefile
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 19 Jan 2016 03:29:23 +0200
parents 34ec0f897aa3
children f975431190f6
files Makefile
diffstat 1 files changed, 20 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/Makefile	Tue Jan 19 03:25:08 2016 +0200
     1.2 +++ b/Makefile	Tue Jan 19 03:29:23 2016 +0200
     1.3 @@ -1,10 +1,29 @@
     1.4 -tap = test.tap
     1.5 +name = test
     1.6 +tap = $(name).tap
     1.7 +wav = $(name).wav
     1.8  
     1.9  ASFLAGS = --alocal
    1.10  
    1.11  $(tap): test.asm
    1.12  	pasmo $(ASFLAGS) --tapbas $< $@
    1.13  
    1.14 +$(name).bin: test.asm
    1.15 +	pasmo $(ASFLAGS) $< $@
    1.16 +
    1.17 +$(wav): $(tap)
    1.18 +	tape2wav $< $@
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	rm -f $(tap) $(wav) $(name).bin
    1.23 +
    1.24 +.PHONY: wav
    1.25 +wav: $(name).wav
    1.26 +
    1.27 +.PHONY: play
    1.28 +play: $(name).wav
    1.29 +	mpv --no-video $<
    1.30 +
    1.31  .PHONY: run
    1.32  run: $(tap)
    1.33  	fuse-sdl $(tap)