Fixing Linux build
This commit is contained in:
parent
a68b06226a
commit
9d53760016
4
Makefile
4
Makefile
@ -11,13 +11,13 @@ OBJ := build/obj
|
|||||||
|
|
||||||
CC := clang
|
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
|
SDL_LDFLAGS := -lSDL
|
||||||
LDFLAGS += -lc -lm
|
LDFLAGS += -lc -lm
|
||||||
CONF ?= debug
|
CONF ?= debug
|
||||||
|
|
||||||
ifeq ($(shell uname -s),Darwin)
|
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
|
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
|
LDFLAGS += -framework AppKit -framework Carbon
|
||||||
SDL_LDFLAGS := -framework SDL
|
SDL_LDFLAGS := -framework SDL
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <SDL/SDL.h>
|
#include <SDL/SDL.h>
|
||||||
|
|
||||||
#include "gb.h"
|
#include "gb.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user