1
# Z88DK - Rabbit Control Module examples
3
# $Id: Makefile,v 1.2 2007/05/18 06:36:50 stefano Exp $
5
# You NEED to set this to your baudrate divisor and your serial port
10
all: example.bin twinkle2000.bin twinkle3000.bin
12
SUPPORT=/usr/local/lib/z88dk/support/rcmx000
16
example.bin: example.c
17
zcc +rcmx000 -oexample.bin example.c
21
zcc +rcmx000 -otwinkle2000.bin twinkle2000.c
24
zcc +rcmx000 -otwinkle3000.bin twinkle3000.c
28
$(SUPPORT)/boot $(SERDEVICE) $(BAUD_DIV) -b EXAMPLE.LOD example.bin
31
$(SUPPORT)/boot $(SERDEVICE) $(BAUD_DIV) -b TWINKLE2000.LOD twinkle2000.bin
34
$(SUPPORT)/boot $(SERDEVICE) $(BAUD_DIV) -b TWINKLE3000.LOD twinkle3000.bin
37
rm -f *.bin ; rm -f *.LOD ; rm -f tmp_* ; rm -f zcc_opt.def ; \
38
rm -f *~ ; rm -f #* ; rm -f *#