DEVKIT = c:/Compilers/Caanoo/CaanooSDK
HOST = arm-gph-linux-gnueabi

BINPATH = $(DEVKIT)/bin
LIBPATH = $(DEVKIT)/lib
INCPATH = $(DEVKIT)/include

CC := ${BINPATH}/$(HOST)-gcc
CXX := ${BINPATH}/$(HOST)-g++

OBJ = main.o bitfonts.o blitting.o bunny3d.o engine3d.o env1.o generate3d.o plasma.o radialblur.o render3d.o rotozoomer.o sky1.o
LIBS =  -L$(LIBPATH) -lSDL
INCS =  -I$(INCPATH)
BIN  = gpmark.gpe
CFLAGS = $(INCS) -O3
CXXFLAGS = $(INCS) -O3
RM = rm -f



.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ) Makefile
	$(CC) $(OBJ) -o $(BIN) $(LIBS)
