Previous 15994 Revisions Next

r14890 Tuesday 10th April, 2012 at 13:21:23 UTC by R. Belmont
Trying this again (nw)
[src/osd/sdl]sdl.mak

src/osd/sdl/sdl.mak
r14889r14890
365365DEFS += -DMACOSX_USE_LIBSDL
366366endif   # MACOSX_USE_LIBSDL
367367
368endif   # Mac OS X
368else   # ifeq ($(TARGETOS),macosx)
369369
370370DEFS += -DSDLMAME_UNIX
371371DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
r14889r14890
374374NO_DEBUGGER = 1
375375endif
376376
377INCPATH += `$(SDL_CONFIG) --cflags  | sed -e 's:/SDL[2]*::' -e 's:\(-D[^ ]*\)::g'`
378CCOMFLAGS += `$(SDL_CONFIG) --cflags  | sed -e 's:/SDL[2]*::' -e 's:\(-I[^ ]*\)::g'`
379LIBS += -lm `$(SDL_CONFIG) --libs`
380
381ifeq ($(SDL_LIBVER),sdl2)
382ifdef SDL_INSTALL_ROOT
383# FIXME: remove the directfb ref. later. This is just there for now to work around an issue with SDL1.3 and SDL2.0
384INCPATH += -I$(SDL_INSTALL_ROOT)/include/directfb
385endif
386endif
387
388INCPATH += `pkg-config --cflags fontconfig`
389LIBS += `pkg-config --libs fontconfig`
390
391ifeq ($(SDL_LIBVER),sdl2)
392LIBS += -lSDL2_ttf -lutil
393else
394LIBS += -lSDL_ttf -lutil
395endif
396
397endif # not Mac OS X
398
377399ifneq (,$(findstring ppc,$(UNAME)))
378400# override for preprocessor weirdness on PPC Linux
379401CFLAGS += -Upowerpc
r14889r14890
400422endif
401423endif
402424
403
404INCPATH += `$(SDL_CONFIG) --cflags  | sed -e 's:/SDL[2]*::' -e 's:\(-D[^ ]*\)::g'`
405CCOMFLAGS += `$(SDL_CONFIG) --cflags  | sed -e 's:/SDL[2]*::' -e 's:\(-I[^ ]*\)::g'`
406LIBS += -lm `$(SDL_CONFIG) --libs`
407
408ifeq ($(SDL_LIBVER),sdl2)
409ifdef SDL_INSTALL_ROOT
410# FIXME: remove the directfb ref. later. This is just there for now to work around an issue with SDL1.3 and SDL2.0
411INCPATH += -I$(SDL_INSTALL_ROOT)/include/directfb
412endif
413endif
414
415INCPATH += `pkg-config --cflags fontconfig`
416LIBS += `pkg-config --libs fontconfig`
417
418ifeq ($(SDL_LIBVER),sdl2)
419LIBS += -lSDL2_ttf -lutil
420else
421LIBS += -lSDL_ttf -lutil
422endif
423
424
425425endif # Unix
426426
427427#-------------------------------------------------

Previous 15994 Revisions Next


© 1998-2018 The MESS Team