aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authornotaz2012-12-21 00:52:07 +0200
committernotaz2012-12-23 02:16:54 +0200
commit5b9aa74918361ff5d306c39cb695a77d7ea40b8f (patch)
treee402e9d9c55f92d482357479a851f9fa2fdbd2ef /Makefile
parent349f7d81b5f776ab69533fcb4e9c4904235b90fd (diff)
downloadpcsx_rearmed-5b9aa74918361ff5d306c39cb695a77d7ea40b8f.tar.gz
pcsx_rearmed-5b9aa74918361ff5d306c39cb695a77d7ea40b8f.tar.bz2
pcsx_rearmed-5b9aa74918361ff5d306c39cb695a77d7ea40b8f.zip
frontend: switch to libpicofe sdl code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2ca2fdd..a3cd3b2 100644
--- a/Makefile
+++ b/Makefile
@@ -132,9 +132,18 @@ OBJS += plugins/dfinput/main.o plugins/dfinput/pad.o plugins/dfinput/guncon.o
# frontend/gui
ifeq "$(PLATFORM)" "generic"
-OBJS += frontend/libpicofe/in_sdl.o frontend/plat_sdl.o
+OBJS += frontend/libpicofe/in_sdl.o
+OBJS += frontend/libpicofe/plat_sdl.o
OBJS += frontend/libpicofe/plat_dummy.o
OBJS += frontend/libpicofe/linux/in_evdev.o
+OBJS += frontend/plat_sdl.o
+ifeq "$(HAVE_GLES)" "1"
+OBJS += frontend/libpicofe/gl.o
+LDLIBS += $(LDLIBS_GLES)
+frontend/libpicofe/plat_sdl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
+frontend/libpicofe/gl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
+frontend/plat_sdl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
+endif
USE_PLUGIN_LIB = 1
USE_FRONTEND = 1
endif