4 LIBS = sdl2 SDL2_image glew
6 PKGFLAGS := $(shell pkg-config --cflags $(LIBS))
7 PKGLIBS := $(shell pkg-config --libs $(LIBS))
10 CPPFLAGS += $(PKGFLAGS)
14 LDXXFLAGS += $(PKGLIBS)
16 SRC = $(wildcard src/*.cpp)
24 rm -f $(BIN) $(OBJ) $(DEP)
31 $(LDXX) -o $@ $(CXXFLAGS) $(LDXXFLAGS) $^
34 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ -MMD -MP -MF"$*".d -MT"$@" $<