diff Makefile @ 1787:0c6d07f91346 mame_interp

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Thu, 14 Mar 2019 23:40:50 -0700
parents 0a26f3657295 3a8c4ee68568
children 49f65d240299
line wrap: on
line diff
--- a/Makefile	Wed Mar 13 22:01:22 2019 -0700
+++ b/Makefile	Thu Mar 14 23:40:50 2019 -0700
@@ -38,6 +38,14 @@
 LIBS=sdl2 glew
 FONT:=nuklear_ui/font_mac.o
 else
+
+ifdef USE_FBDEV
+LIBS=alsa
+ifndef NOGL
+LIBS+=glesv2 egl
+endif
+CFLAGS+= -DUSE_GLES -DUSE_FBDEV -pthread
+else
 ifdef USE_GLES
 ifdef GLES_LIB
 LIBS=sdl2
@@ -48,6 +56,7 @@
 else
 LIBS=sdl2 glew gl
 endif #USE_GLES
+endif #USE_FBDEV
 FONT:=nuklear_ui/font.o
 endif #Darwin
 
@@ -92,6 +101,9 @@
 else
 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS)
 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) $(GLES_LIB)
+ifdef USE_FBDEV
+LDFLAGS+= -pthread
+endif
 endif #libblastem.so
 
 ifeq ($(OS),Darwin)
@@ -173,8 +185,13 @@
 endif
 AUDIOOBJS=ym2612.o psg.o wave.o
 CONFIGOBJS=config.o tern.o util.o paths.o 
-NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o controller_info.o
-RENDEROBJS=render_sdl.o ppm.o
+NUKLEAROBJS=$(FONT) nuklear_ui/blastem_nuklear.o nuklear_ui/sfnt.o
+RENDEROBJS=ppm.o controller_info.o
+ifdef USE_FBDEV
+RENDEROBJS+= render_fbdev.o
+else
+RENDEROBJS+= render_sdl.o
+endif
 	
 ifdef NOZLIB
 CFLAGS+= -DDISABLE_ZLIB