diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-01-04 23:35:55 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-01-04 23:35:55 -0800 |
commit | b77a2044bb1d20267cbb54c4deab46332f2d9e39 (patch) | |
tree | 54c48c8bf3727e790f8a13ce3f1c0bda0e49c593 /Makefile | |
parent | a788b768cdaffb4bcc62a0f45c1ac0d005db9aa6 (diff) | |
parent | 8a7f8bc09c88e9446d475127a82df23a1dcb0c75 (diff) |
Merge
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |