summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-01-04 23:35:55 -0800
committerMichael Pavone <pavone@retrodev.com>2015-01-04 23:35:55 -0800
commitb77a2044bb1d20267cbb54c4deab46332f2d9e39 (patch)
tree54c48c8bf3727e790f8a13ce3f1c0bda0e49c593 /Makefile
parenta788b768cdaffb4bcc62a0f45c1ac0d005db9aa6 (diff)
parent8a7f8bc09c88e9446d475127a82df23a1dcb0c75 (diff)
Merge
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f4b1e23..784ac8f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,17 @@
+ifndef OS
+OS:=$(shell uname -s)
+endif
+
ifdef NOGL
LIBS=sdl
else
+ifeq ($(OS),Darwin)
+LIBS=sdl glew
+else
LIBS=sdl glew gl
endif
+endif
+
ifdef DEBUG
CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration
LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS))
@@ -33,7 +42,9 @@ ifndef CPU
CPU:=$(shell uname -m)
endif
-
+ifeq ($(OS),Darwin)
+LDFLAGS+= -framework OpenGL
+endif
TRANSOBJS=gen.o backend.o mem.o
M68KOBJS=68kinst.o m68k_core.o