#This Makefile compile gpuppur using g++.
#It only for check whether gpuppur can be compiled by g++ and get error/warning messages.
#It is not generate executable file.
#
# Usage:
# Make link to PhysX SDK include dir, visual c++ include dir, and so on in your home directory.
# 
# Type
# $make USER=<your user name>
#
# $make clean
# will erase temporary files(object files, executable files, visual studio generated files, ...)

USER=username
HOMEDIR=/home/$(USER)
FLAGS=-Wall -W -std=c++98

all: a.exe
	-g++ -o gpuppur.exe -I$(HOMEDIR)/Cooking -I$(HOMEDIR)/Foundation -I$(HOMEDIR)/PhysXLoader -I$(HOMEDIR)/Physics -I./ -I../../include -I$(HOMEDIR)/cginc -I$(HOMEDIR)/ore_inc -DLINUX -DNX32 -W -Wall src/independent_from_gpuppurut.cpp >& log
	./a.exe < log >out

a.exe:
	g++ better_exp.cpp -O3

clean:
	-rm *.ncb
	-rm a.exe
	-rm a.exe.stackdump
	-rm *.suo
	-rm -rf src/Debug
	-rm -rf src/Release
	-rm -rf debug
	-rm -rf release
	-rm src/*.vcproj.*.user
	-rm data/*.cooked
