aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1fdf54f..e21da87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
NAME = clak
PREFIX = $(HOME)/.local
-CC = gcc
+CC = clang
CFLAGS += -std=c99 -Wall -Wextra -Wshadow -Werror
ifeq ($(OS),Windows_NT)
@@ -14,6 +14,9 @@ else
PKG_CONF_LIBS = sdl2 SDL2_mixer x11 xi
CFLAGS += `pkg-config --cflags $(PKG_CONF_LIBS)`
LDLIBS += `pkg-config --libs $(PKG_CONF_LIBS)`
+ else ifeq ($(UNAME_S),Darwin)
+ PLATFORM = darwin
+ CFLAGS += -framework CoreFoundation -framework IOKit -framework AppKit
endif
endif