From 9d5376001624885014644a991292d267ad3dc844 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 17 Jul 2016 22:43:23 +0300 Subject: [PATCH] Fixing Linux build --- Makefile | 4 ++-- SDL/main.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 945df7f..04a02a8 100644 --- a/Makefile +++ b/Makefile @@ -11,13 +11,13 @@ OBJ := build/obj CC := clang -CFLAGS += -Werror -Wall -std=gnu11 -ICore -D_GNU_SOURCE +CFLAGS += -Werror -Wall -std=gnu11 -ICore -D_GNU_SOURCE -DVERSION="$(VERSION)" SDL_LDFLAGS := -lSDL LDFLAGS += -lc -lm CONF ?= debug ifeq ($(shell uname -s),Darwin) -CFLAGS += -F/Library/Frameworks -DVERSION="$(VERSION)" +CFLAGS += -F/Library/Frameworks OCFLAGS += -x objective-c -fobjc-arc -Wno-deprecated-declarations -isysroot $(shell xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.9 LDFLAGS += -framework AppKit -framework Carbon SDL_LDFLAGS := -framework SDL diff --git a/SDL/main.c b/SDL/main.c index 48a5aae..595cc8b 100644 --- a/SDL/main.c +++ b/SDL/main.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "gb.h"