
CC = gcc -c -mthrowback -Wall -mpoke-function-name -mlibscl -O2 -o
LINK = gcc -mlibscl -o
LIB = ar -c
ASM = gcc -c -o

tpftest: tpftest.o ArmScreen.o
	dir tpf
	make tpf_lib
	dir ^
	$(LINK) tpftest tpftest.o ArmScreen.o -Wl,-l./tpf/tpf_lib

tpftest.o: tpftest.c osspr.c screen.c tpf/tpf.h
	$(CC) tpftest.o tpftest.c

ArmScreen.o: ArmScreen.s
	$(ASM) ArmScreen.o ArmScreen.s
