aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 00f72ad..a639132 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,12 @@ CC := gcc
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)
+SDL_IMAGE_CFLAGS := $(shell pkg-config SDL_image --cflags)
+SDL_IMAGE_LDFLAGS := $(shell pkg-config SDL_image --libs)
+
CFLAGS := -std=c99 -Wall -g -O0 \
- $(SDL_CFLAGS)
-LDFLAGS := $(SDL_LDFLAGS)
+ $(SDL_CFLAGS) $(SDL_IMAGE_CFLAGS)
+LDFLAGS := $(SDL_LDFLAGS) $(SDL_IMAGE_LDFLAGS)
all : effect-pad