comparison Makefile @ 719:019d27995e32

Upgrade to SDL 2.0 and drop support for the non-OpenGL render path
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 May 2015 19:05:11 -0700
parents 7ed1dbb48f61
children 15d9359fd771
comparison
equal deleted inserted replaced
718:eaba6789f316 719:019d27995e32
1 ifndef OS 1 ifndef OS
2 OS:=$(shell uname -s) 2 OS:=$(shell uname -s)
3 endif 3 endif
4 4
5 ifdef NOGL 5 ifeq ($(OS),Darwin)
6 LIBS=sdl 6 LIBS=sdl2 glew
7 else 7 else
8 ifeq ($(OS),Darwin) 8 LIBS=sdl2 glew gl
9 LIBS=sdl glew
10 else
11 LIBS=sdl glew gl
12 endif
13 endif 9 endif
14 10
15 ifdef DEBUG 11 ifdef DEBUG
16 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration 12 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration
17 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS)) 13 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS))