Skip to content

Commit

Permalink
use pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
pdaxrom committed Oct 4, 2017
1 parent c8b1d3f commit 6f206ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyldin601/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CC := gcc
CXX := g++
OPT_FLAGS := -g -Ofast -fomit-frame-pointer
#OPT_STRIP := -s
CFLAGS = -Wall $(OPT_FLAGS) -Isrc/core -Isrc $(shell sdl2-config --cflags) $(EXTRA_CFLAGS)
CFLAGS = -Wall $(OPT_FLAGS) -Isrc/core -Isrc $(shell pkg-config sdl2 --cflags) $(EXTRA_CFLAGS)
CFLAGS += -DDATADIR=\"$(DATADIR)/pyldin\" -DVERSION=\"$(VERSION)-$(EXTRAVERSION)\"
CFLAGS += -DPYLDIN_LOGO -DPYLDIN_ICON -DUSE_JOYSTICK
#CFLAGS += -DUSE_GUI
Expand All @@ -28,7 +28,7 @@ VIDEOLIB = -lGLESv2 -lEGL
endif

CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
LDFLAGS = $(OPT_LIBS) $(shell sdl2-config --libs) -lSDL2_image $(VIDEOLIB) -lz $(OPT_STRIP) -g
LDFLAGS = $(OPT_LIBS) $(shell pkg-config sdl2 --libs) -lSDL2_image $(VIDEOLIB) -lz $(OPT_STRIP) -g
#LDFLAGS += -lSDL2_gfx

##########################
Expand Down

0 comments on commit 6f206ae

Please sign in to comment.