Skip to content

Commit

Permalink
Take SDL2 CXXFLAGS/LDFLAGS from pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 30, 2014
1 parent 9b3dcdb commit c36df77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CXX ?= g++
MKDIR := mkdir -p
CXXFLAGS += -Wall -Werror -Wextra -Weffc++ -pedantic -std=c++11
LDFLAGS += -lSDL2 -lSDL2_image
CXXFLAGS += `pkg-config --cflags sdl2 SDL2_image` -Wall -Werror -Wextra -Weffc++ -pedantic -std=c++11
LDFLAGS += `pkg-config --libs sdl2 SDL2_image`
PROGS := bin/cave
OBJS := $(patsubst src/%.cpp,obj/%.o, $(wildcard src/*.cpp))

Expand Down

0 comments on commit c36df77

Please sign in to comment.