diff --git a/Makefile.ps3 b/Makefile.ps3 index c20373fe1a..a7ab85ee85 100644 --- a/Makefile.ps3 +++ b/Makefile.ps3 @@ -4,6 +4,7 @@ DEBUG = 0 CELL_BUILD_TOOLS = GCC DOWNLOAD_SHADERS = 1 STRIPPING_ENABLE = 0 +HAVE_SSNES_GL = 0 ## Platform detection from nall/Makefile. Only two applicable hosts for PS3 SDK. ifeq ($(platform),) @@ -45,9 +46,16 @@ MAKE_PACKAGE_NPDRM = $(CELL_SDK)/$(HOST_DIR)/bin/make_package_npdrm OBJ = fifo_buffer.o ps3/cellframework2/fileio/file_browser.o ps3/ps3_audio.o ps3/menu.o console/main_wrap.o console/rom_ext.o ps3/ps3_input.o ps3/cellframework2/input/pad_input.o getopt.o ssnes.o driver.o file.o settings.o message.o rewind.o movie.o netplay.o netplay_compat.o gfx/gfx_common.o ps3/ps3_video_psgl.o gfx/shader_cg.o gfx/snes_state.o ups.o bps.o strl.o audio/hermite.o dynamic.o ps3/main.o audio/utils.o conf/config_file.o ps3/image.o -LIBS = -ldbgfont -lPSGL -lPSGLcgc -lcgc -lgcm_cmd -lgcm_sys_stub -lsnes -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lpthread +ifeq ($(HAVE_SSNES_GL), 1) + DEFINES = -DHAVE_SSNES_GL + GL_LIBS := -lSSNESGL -lSSNESGLcgc +else + GL_LIBS := -lPSGL -lPSGLcgc +endif -DEFINES = -DSSNES_CONSOLE -DHAVE_OPENGL=1 -DHAVE_CG=1 -DHAVE_FBO=1 -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DPACKAGE_VERSION=\"0.9.4.1\" -DHAVE_SCREENSHOTS_BUILTIN=1 -Dmain=ssnes_main +LIBS = -ldbgfont $(GL_LIBS) -lcgc -lgcm_cmd -lgcm_sys_stub -lsnes -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lpthread + +DEFINES += -DSSNES_CONSOLE -DHAVE_OPENGL=1 -DHAVE_CG=1 -DHAVE_FBO=1 -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DPACKAGE_VERSION=\"0.9.4.1\" -DHAVE_SCREENSHOTS_BUILTIN=1 -Dmain=ssnes_main ifeq ($(DEBUG), 1) PPU_OPTIMIZE_LV := -O0 -g @@ -55,6 +63,7 @@ else PPU_OPTIMIZE_LV := -O3 -g endif + ## Use this for new SDK! CFLAGS = $(PPU_OPTIMIZE_LV) $(DEFINES) CXXFLAGS = $(PPU_OPTIMIZE_LV) $(DEFINES)