all: cpp

cpp: cpp.o lex.o nlist.o tokens.o macro.o eval.o \
			include.o hideset.o getopt.o amiga.o
	sc LINK cpp.o lex.o nlist.o tokens.o macro.o eval.o \
			include.o hideset.o getopt.o amiga.o TO GBDK:bin/cpp

clean:
	rm *.o *.lnk

cpp.o: cpp.c cpp.h
	sc cpp.c
lex.o: lex.c cpp.h
	sc lex.c
nlist.o: nlist.c cpp.h
	sc nlist.c
tokens.o: tokens.c cpp.h
	sc tokens.c
macro.o: macro.c cpp.h
	sc macro.c
eval.o: eval.c cpp.h
	sc eval.c
include.o: include.c cpp.h
	sc include.c
hideset.o: hideset.c cpp.h
	sc hideset.c 
getopt.o: getopt.c
	sc getopt.c
amiga.o: amiga.c cpp.h
	sc amiga.c
