spectrum_cmbrot

annotate Makefile @ 2:34f2fca9690b

added rule to convert tap->wav
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 17 Feb 2014 11:02:24 +0200
parents c2815c765fea
children 8e7f17958dbb
rev   line source
nuclear@0 1 src = test.c
nuclear@0 2 obj = $(src:.c=.o)
nuclear@0 3
nuclear@0 4 bin = test.tap
nuclear@2 5 wav = $(bin:.tap=.wav)
nuclear@0 6
nuclear@0 7 CC = zcc
nuclear@1 8 CFLAGS = +zx -pragma-define=myzorg=28000 -O2
nuclear@0 9 LDFLAGS = -create-app
nuclear@0 10
nuclear@0 11 $(bin): $(obj)
nuclear@0 12 rm -f $(bin)
nuclear@0 13 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(obj)
nuclear@0 14
nuclear@2 15 $(wav): $(bin)
nuclear@2 16 tape2wav $< $@
nuclear@2 17
nuclear@2 18 .PHONY: wav
nuclear@2 19 wav: $(wav)
nuclear@2 20
nuclear@0 21 .PHONY: clean
nuclear@0 22 clean:
nuclear@0 23 rm -f $(obj) $(bin)