Ticket #40631: patch-BlockOut-Makefile.diff

File patch-BlockOut-Makefile.diff, 1.0 KB (added by jeremy@…, 11 years ago)

link OpenGL with framework flag

  • BlockOut/Makefile

    old new  
    3434
    3535#---------------------------------------------------------------------
    3636
    37 SDL_ROOT        = /users/pons/test/opengl/SDL
    38 IMGLIB_ROOT     = ../ImageLib
     37SDL_ROOT        = $(PREFIX)
     38IMGLIB_ROOT     = ../ImageLib/src
    3939
    4040CXX             = g++
    4141
    42 CXXFLAGS =     -g -D_DEBUG -Dlinux -c \
    43                -I$(SDL_ROOT)/include/SDL -I$(IMGLIB_ROOT) -I.
     42CXXFLAGS =     -g -D_DEBUG -c \
     43               -I$(SDL_ROOT)/include/SDL -I$(IMGLIB_ROOT) -I. -I/usr/include -D_GNU_SOURCE=1 -D_THREAD_SAFE
    4444
    45 LIBS     =     -L$(SDL_ROOT)/lib -L$(IMGLIB_ROOT)
     45LIBS     =     -L$(SDL_ROOT)/lib -L$(IMGLIB_ROOT) -lSDLmain -Wl,-framework,AppKit -lSDL -Wl,-framework,Cocoa -Wl,-framework,OpenGL
    4646
    47 LFLAGS   =      $(LIBS) -limagelib -lGL -lGLU -lSDL_mixer -lSDL -lpthread -lm -ldl
     47LFLAGS   =      $(LIBS) -limagelib -lSDL_mixer -lSDL -lSDLmain -lpthread -lm -ldl
    4848
    4949#--------------------------------------------------------------------
    5050