eobish

changeset 6:c02579c0a6c6

macos fix
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 04:05:47 +0200
parents 0baf4e98315e
children c0e8bbf96849
files Makefile
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/Makefile	Mon Jan 19 02:32:01 2015 +0200
     1.2 +++ b/Makefile	Mon Jan 19 04:05:47 2015 +0200
     1.3 @@ -8,6 +8,10 @@
     1.4  dbg = -g
     1.5  def = -DFBLIB_SDL
     1.6  
     1.7 +ifeq ($(shell uname -s), Darwin)
     1.8 +	def += -Dmain=SDL_main
     1.9 +endif
    1.10 +
    1.11  CFLAGS = $(warn) $(opt) $(dbg) $(def) `pkg-config --cflags sdl`
    1.12  CXXFLAGS = $(CFLAGS)
    1.13  LDFLAGS = `pkg-config --libs sdl`