aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cf64742..bc2e86a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ NAME = clak
PREFIX = $(HOME)/.local
CC = gcc
-CFLAGS += -std=c99 -Wall -Wextra -Wshadow -Werror -pedantic
+CFLAGS += -std=c99 -Wall -Wextra -Wshadow -Werror
ifeq ($(OS),Windows_NT)
LDLIBS = -lWinmm
@@ -11,6 +11,9 @@ else
UNAME_S := $(shell uname)
ifeq ($(UNAME_S),Linux)
PLATFORM = linux
+ PKG_CONF_LIBS = sdl2 SDL2_mixer x11 xi
+ CFLAGS += `pkg-config --cflags $(PKG_CONF_LIBS)`
+ LDLIBS += `pkg-config --libs $(PKG_CONF_LIBS)`
endif
endif
@@ -21,4 +24,4 @@ $(NAME): $(NAME).c platform/$(PLATFORM).c
clean:
rm -f *.o
- rm -f $(NAME) \ No newline at end of file
+ rm -f $(NAME)