Allow to compile for X11 under OS X
This commit is contained in:
parent
c53b86d6c9
commit
815e77aff3
@ -172,6 +172,7 @@ endif
|
|||||||
FWDIR = /Library/Frameworks
|
FWDIR = /Library/Frameworks
|
||||||
BIN = ../bin/grafx2
|
BIN = ../bin/grafx2
|
||||||
|
|
||||||
|
ifeq ($(API),sdl)
|
||||||
SDLCONFIG := $(shell which sdl-config)
|
SDLCONFIG := $(shell which sdl-config)
|
||||||
ifneq ($(SDLCONFIG), )
|
ifneq ($(SDLCONFIG), )
|
||||||
# these are for use with macports
|
# these are for use with macports
|
||||||
@ -182,6 +183,7 @@ else
|
|||||||
#-framework SDL_ttf
|
#-framework SDL_ttf
|
||||||
SDLLOPT = -isysroot $(MACOSX_SYSROOT) $(MACOSX_ARCH) -L/usr/lib -framework SDL -framework SDL_image -framework Cocoa -framework Carbon -framework OpenGL
|
SDLLOPT = -isysroot $(MACOSX_SYSROOT) $(MACOSX_ARCH) -L/usr/lib -framework SDL -framework SDL_image -framework Cocoa -framework Carbon -framework OpenGL
|
||||||
SDLCOPT = $(MACOSX_ARCH) -I$(FWDIR)/SDL.framework/Headers -I$(FWDIR)/SDL_image.framework/Headers -I$(FWDIR)/SDL_ttf.framework/Headers -D_THREAD_SAFE
|
SDLCOPT = $(MACOSX_ARCH) -I$(FWDIR)/SDL.framework/Headers -I$(FWDIR)/SDL_image.framework/Headers -I$(FWDIR)/SDL_ttf.framework/Headers -D_THREAD_SAFE
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# these are for use with macports
|
# these are for use with macports
|
||||||
@ -216,10 +218,15 @@ endif
|
|||||||
endif
|
endif
|
||||||
COPT += -DENABLE_FILENAMES_ICONV
|
COPT += -DENABLE_FILENAMES_ICONV
|
||||||
LOPT += -liconv
|
LOPT += -liconv
|
||||||
|
ifeq ($(API),x11)
|
||||||
|
LOPT += -Wl,-framework,CoreFoundation
|
||||||
|
endif
|
||||||
# Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
|
# Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
|
||||||
#CC = nccgen -ncgcc -ncld -ncfabs
|
#CC = nccgen -ncgcc -ncld -ncfabs
|
||||||
OBJDIR = ../obj/macosx
|
OBJDIR = ../obj/macosx
|
||||||
|
ifeq ($(API),sdl)
|
||||||
PLATFORMOBJ = SDLMain.o
|
PLATFORMOBJ = SDLMain.o
|
||||||
|
endif
|
||||||
FCLOPT =
|
FCLOPT =
|
||||||
MACAPPEXE = Grafx2.app/Contents/MacOS/Grafx2
|
MACAPPEXE = Grafx2.app/Contents/MacOS/Grafx2
|
||||||
NOTTF = 1
|
NOTTF = 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user