CFLAGS = -Wall -g
LFLAGS = -g

all: dec
	echo All up to date.

dec: dis_6809.o dec.o cycle.o Makefile
	cc $(LFLAGS) -o dec dec.o dis_6809.o cycle.o

dec.o: dec.c dec.h dis_6809.h Makefile
	cc $(CFLAGS) -c dec.c

cycle.o: cycle.c dec.h dis_6809.h Makefile
	cc $(CFLAGS) -c cycle.c

dis_6809.o: dis_6809.c dec.h dis_6809.h Makefile
	cc $(CFLAGS) -c dis_6809.c

clean:
	rm *.o *~ *.html

upload:
	ctohtml dec.c>dec.c.html
	ctohtml dis_6809.c>dis_6809.c.html
	ctohtml cycle.c>cycle.c.html
	scp Makefile REGRESS.sh dec.[ch] *.c.html dis_6809.[ch] cycle.[ch] README.txt README-PLANS.txt gtoal@gtoal.com:gtoal.com/SBTPROJECT/generic/
	scp tests/*.asm tests/ACCEPT.sh gtoal@gtoal.com:gtoal.com/SBTPROJECT/generic/tests/
