all: rcc

clean:
	rm *.o *.lnk

rcc: alloc.o bind.o dag.o decl.o enode.o error.o expr.o event.o \
		init.o input.o lex.o list.o main.o prof.o profio.o simp.o \
		stmt.o string.o sym.o output.o trace.o tree.o types.o \
		null.o symbolic.o gen.o gbZ80.o
	sc LINK alloc.o bind.o dag.o decl.o enode.o error.o expr.o event.o \
		init.o input.o lex.o list.o main.o prof.o profio.o simp.o \
		stmt.o string.o sym.o output.o trace.o tree.o types.o \
		null.o symbolic.o gen.o gbZ80.o TO GBDK:bin/rcc

alloc.o: alloc.c
	sc alloc.c
bind.o: bind.c
	sc bind.c
dag.o: dag.c
	sc dag.c
decl.o: decl.c
	sc decl.c
enode.o: enode.c
	sc enode.c
error.o: error.c
	sc error.c
event.o: event.c
	sc event.c
expr.o: expr.c
	sc expr.c
gen.o: gen.c
	sc gen.c
init.o: init.c
	sc init.c
input.o: input.c
	sc input.c
lex.o: lex.c
	sc lex.c
list.o: list.c
	sc list.c
main.o: main.c
	sc main.c
null.o: null.c
	sc null.c
output.o: output.c
	sc output.c
prof.o: prof.c
	sc prof.c
profio.o: profio.c
	sc profio.c
simp.o: simp.c
	sc simp.c
stmt.o: stmt.c
	sc stmt.c
string.o: string.c
	sc string.c
sym.o: sym.c
	sc sym.c
symbolic.o: symbolic.c
	sc symbolic.c
trace.o: trace.c
	sc trace.c
tree.o:	tree.c
	sc tree.c
types.o: types.c
	sc types.c

#gbZ80.c:		gbZ80.md;	lburg <gbZ80.md  >gbZ80.c
gbZ80.o: gbZ80.c
	sc gbZ80.c
