SHELL       = /bin/sh


DISTY	    = ../../demodata/

RM          = /bin/rm -f
VCL	    = vcl
VCLOPT 	    = -g -Ii/ -t20 -f	# use ee-gasp, include from i/ longish timeout, disable .align directive 

.SUFFIXES:	 .vcl .tsm

vpath %.vcl 	vcl
vpath %.tsm	tsm

all: peewee.bin

peewee.bin: main.vcl
	rm -f tsm/main.tsm
	rm -f peewee.bin 
	$(VCL) $(VCLOPT) -otsm/main.tsm $<  
	ee-dvp-as -Ii/ tsm/main.tsm -o obj/peewee.o
	objcopy -O binary obj/peewee.o peewee.bin
	cp -f peewee.bin $(DISTY)/
	cp -f data/peewee.dat $(DISTY)/
	cp -f data/peewee.hlp $(DISTY)/


clean:
	$(RM) tsm/* obj/* lst/* core *.bin  *.bin $(DISTY)/peewee.bin $(DISTY)/peewee.dat $(DISTY)/peewee.hlp

