diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |