diff --git a/Makefile b/Makefile index 13e006a..6288fc7 100644 --- a/Makefile +++ b/Makefile @@ -29,14 +29,14 @@ SDLLIBS := $(shell sdl-config --libs) -lSDL_image ODEINCLUDE := $(shell ode-config --cflags) ODELIBS := $(shell ode-config --libs) +TOPLEVEL := $(shell pwd) + ifeq ($(WINDOWS),1) GLLIBS := -lopengl32 -lglu32 WINDOWSLIBS := -lmingw32 TARGET := $(TARGET).exe -TOPLEVEL := $(shell cd) else GLLIBS := -lGL -lGLU -TOPLEVEL := $(shell pwd) endif export CPPFLAGS := $(LUAINCLUDE) $(SDLINCLUDE) $(ODEINCLUDE) -I$(TOPLEVEL)