CPP = g++ SOURCE = src/y.tab.cpp src/lex.yy.cpp src/Actions.cpp src/Building.cpp src/Debug.cpp src/Expression.cpp src/Input.cpp src/main.cpp src/Render.cpp src/Rules.cpp src/TextureCache.cpp RELEASEDIR = ReleaseLinux RELEASE = cgshape INCLUDEDIRS = -I$(HOME)/glew/include/ -I$(HOME)/FreeImage/Dist LIBDIRS = -L$(HOME)/glew/lib/ -L$(HOME)/FreeImage/Dist LIBS = -lglut -lGLEW -lfreeimage -lfreeimageplus all: - mkdir $(RELEASEDIR) yacc -d src/cgshape.y -o src/y.tab.cpp lex -o src/lex.yy.cpp src/cgshape.l $(CPP) $(SOURCE) -o $(RELEASEDIR)/$(RELEASE) $(INCLUDEDIRS) $(LIBDIRS) $(LIBS) run: all ./Release/cgshape test: all ./Release/cgshape < ./Release/grammartest.txt