From b0dbc67281a20c84c74259baad946d6ad02750e9 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 17 Oct 2011 15:35:02 +0200 Subject: [PATCH] Fix build when only Cg is being compiled. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9baa947d10..558392ea18 100644 --- a/Makefile +++ b/Makefile @@ -115,11 +115,17 @@ ifeq ($(HAVE_CG), 1) endif ifeq ($(HAVE_XML), 1) - OBJ += gfx/shader_glsl.o gfx/image.o gfx/snes_state.o sha256.o cheats.o + OBJ += gfx/shader_glsl.o sha256.o cheats.o LIBS += $(XML_LIBS) DEFINES += $(XML_CFLAGS) endif +ifeq ($(HAVE_XML), 1) + OBJ += gfx/snes_state.o gfx/image.o +else ifeq ($(HAVE_CG), 1) + OBJ += gfx/snes_state.o gfx/image.o +endif + ifeq ($(HAVE_DYLIB), 1) OBJ += gfx/ext.o audio/ext.o LIBS += $(DYLIB_LIB)