#
#
CPP=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/arm-open2x-linux-g++
INCLUDE=/opt/open2x/gcc-4.1.1-glibc-2.3.6/include/
LIB=/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/

all: tcalc.gpe

tcalc.o: tcalc.cpp
	$(CPP) -c -o tcalc.o -I$(INCLUDE) -DGP2X tcalc.cpp

calc.o: calc.cpp
	$(CPP) -c -o calc.o -I$(INCLUDE) -DGP2X calc.cpp

tcalc.gpe: tcalc.o calc.o
	$(CPP) -o tcalc.gpe tcalc.o calc.o -L$(LIB) -lSDL_mixer -lSDL_ttf -lSDL_gfx -lsmpeg -lSDL -lfreetype -lpthread -lm -ldl -lstdc++ -static

