Skip to content

Commit d1a33b5

Browse files
committed
Use pkg-config in Makefile.simple.
Let's see if TravisCI is happy with this. Addresses, but does not fully resolve, #135.
1 parent 2e236be commit d1a33b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile.simple

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ifeq (${OS},linux)
4848
LDFLAGS_GL := -lGL
4949
LDFLAGS_GLEW := -lGLEW
5050
LDFLAGS_PNG := -lpng
51-
LDFLAGS_SDL := -lSDL -lSDL_gfx -lSDL_mixer -lSDL_ttf -lpthread -lz
51+
LDFLAGS_SDL := $(shell pkg-config --libs sdl SDL_gfx SDL_mixer SDL_ttf) -pthread -lz
5252
OBJ_EXTENSION := .o
5353
hyper_RES :=
5454
endif
@@ -74,7 +74,7 @@ ifeq (${OS},osx)
7474
LDFLAGS_GL := -framework AppKit -framework OpenGL
7575
LDFLAGS_GLEW := -lGLEW
7676
LDFLAGS_PNG := -lpng
77-
LDFLAGS_SDL := -lSDL -lSDLMain -lSDL_gfx -lSDL_mixer -lSDL_ttf -lpthread -lz
77+
LDFLAGS_SDL := $(shell pkg-config --libs sdl SDL_gfx SDL_mixer SDL_ttf) -pthread -lz
7878
OBJ_EXTENSION := .o
7979
hyper_RES :=
8080
endif

0 commit comments

Comments
 (0)