diff Makefile @ 1758:95e387e1d63c mame_interp

Fix build
author Michael Pavone <pavone@retrodev.com>
date Tue, 19 Feb 2019 07:03:57 +0000
parents 956c1cce05e2
children 8fe162bdb038
line wrap: on
line diff
--- a/Makefile	Thu Jan 24 19:15:59 2019 -0800
+++ b/Makefile	Tue Feb 19 07:03:57 2019 +0000
@@ -39,7 +39,11 @@
 FONT:=nuklear_ui/font_mac.o
 else
 ifdef USE_GLES
+ifdef GLES_LIB
+LIBS=sdl2
+else
 LIBS=sdl2 glesv2
+endif
 CFLAGS+= -DUSE_GLES
 else
 LIBS=sdl2 glew gl
@@ -87,7 +91,7 @@
 LDFLAGS:=-lm
 else
 CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS)
-LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS))
+LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) $(GLES_LIB)
 endif #libblastem.so
 
 ifeq ($(OS),Darwin)