--- GNUmakefile.orig 2019-02-26 22:35:48 UTC +++ GNUmakefile @@ -21,13 +21,13 @@ SRCFILES := $(sort $(shell find $(PROJDIRS) -ty OBJFILES := $(patsubst %.cpp, %.o, $(SRCFILES)) DEPFILES := $(patsubst %.cpp, %.d, $(SRCFILES)) WARNINGS ?= -Wall -Wextra -pedantic -OPTIMS ?= -march=native -mtune=native -Ofast +OPTIMS ?= -Ofast DMACROS := -DNDEBUG -DUNIX -DPACKAGE_VERSION=\"$(DISTVER)\" INCDIRS := -I'./include' CXXFLAGS += -std=c++11 $(WARNINGS) $(OPTIMS) -CPPFLAGS += $(DMACROS) $(INCDIRS) +CPPFLAGS += $(DMACROS) $(INCDIRS) `sdl2-config --cflags` EXTRA_LIBS := -lSDL2main -lGL -lGLU -lGLEW -lSDL2 -lSDL2_image -lphysfs -lopenal -lalut -lpthread -ltinyxml2 -LDFLAGS += $(EXTRA_LIBS) +LDFLAGS += `sdl2-config --libs` $(EXTRA_LIBS) INSTALL_PROGRAM := install --mode=0755 INSTALL_DATA := install --mode=0644