CFLAGS = -std=c++14 -g -I. `pkg-config --cflags sdl2 protobuf` -I./eigen/ -I/tmp/tri/usr/local/include/
LDFLAGS = `pkg-config --libs sdl2 absl` crn/crn.o

PWD=./

all:	native

native:
	/tmp/tri/protobuf/protobuf/protoc --cpp_out=./proto --proto_path=/tmp/tri/earth/proto rocktree.proto
	g++ -std=c++14 -c ./crn/crn.cc -fpermissive -O3 -o ./crn/crn.o
	echo ${PWD}
	g++ ${CFLAGS} -Igl2/include -I/usr/include/SDL2 main.cpp ${LDFLAGS} -L/tmp/tri/protobuf/protobuf/ -lpthread -lprotobuf -lGL -lm -ldl -D_REENTRANT -lSDL2 -fpermissive -O3 -o main

clean:
	rm main
