2010-09-25 15:46:12 +00:00
|
|
|
SUBDIRS = data po
|
|
|
|
|
|
|
|
bin_PROGRAMS = snes9x-gtk
|
|
|
|
snes9x_gtk_LDADD =
|
|
|
|
if DEBUG
|
|
|
|
else
|
|
|
|
snes9x_gtk_CXXFLAGS = -fno-exceptions -fno-rtti
|
|
|
|
endif
|
|
|
|
noinst_LIBRARIES =
|
|
|
|
|
2018-04-28 01:35:20 +00:00
|
|
|
AM_CPPFLAGS = -I../apu/bapu -I$(top_srcdir) -I.. -DDATADIR=\""$(snes9xdatadir)"\" -DSNES9XLOCALEDIR=\""$(snes9xlocaledir)"\"
|
2010-09-25 15:46:12 +00:00
|
|
|
|
|
|
|
CLEANFILES = \
|
2010-09-26 09:19:15 +00:00
|
|
|
src/gtk_snes9x_ui.cpp \
|
2010-09-25 15:46:12 +00:00
|
|
|
src/sourcify
|
|
|
|
|
|
|
|
snes9x_gtk_SOURCES = \
|
|
|
|
src/gtk_sound_driver.h \
|
|
|
|
../filter/2xsai.cpp \
|
|
|
|
../filter/2xsai.h \
|
|
|
|
../filter/epx.cpp \
|
|
|
|
../filter/epx.h \
|
|
|
|
src/filter_epx_unsafe.h \
|
|
|
|
src/filter_epx_unsafe.cpp \
|
|
|
|
src/gtk_binding.cpp \
|
|
|
|
src/gtk_binding.h \
|
|
|
|
src/gtk_cheat.cpp \
|
|
|
|
src/gtk_cheat.h \
|
|
|
|
src/gtk_config.cpp \
|
|
|
|
src/gtk_config.h \
|
|
|
|
src/gtk_control.cpp \
|
|
|
|
src/gtk_control.h \
|
|
|
|
src/gtk_display.cpp \
|
|
|
|
src/gtk_display_driver_gtk.cpp \
|
|
|
|
src/gtk_display_driver_gtk.h \
|
|
|
|
src/gtk_display_driver.h \
|
|
|
|
src/gtk_display.h \
|
|
|
|
src/gtk_file.cpp \
|
|
|
|
src/gtk_file.h \
|
2010-09-26 09:19:15 +00:00
|
|
|
src/gtk_snes9x_ui.cpp \
|
|
|
|
src/gtk_builder_window.cpp \
|
|
|
|
src/gtk_builder_window.h \
|
2010-09-25 15:46:12 +00:00
|
|
|
src/gtk_preferences.cpp \
|
|
|
|
src/gtk_preferences.h \
|
|
|
|
src/gtk_s9xcore.h \
|
|
|
|
src/gtk_s9x.cpp \
|
|
|
|
src/gtk_s9x.h \
|
|
|
|
src/gtk_s9xwindow.cpp \
|
|
|
|
src/gtk_s9xwindow.h \
|
|
|
|
src/gtk_sound.cpp \
|
|
|
|
src/gtk_sound.h \
|
2015-08-16 10:36:56 +00:00
|
|
|
src/gtk_splash.cpp \
|
2010-09-25 15:46:12 +00:00
|
|
|
src/snes_ntsc_config.h \
|
|
|
|
src/snes_ntsc.h \
|
|
|
|
src/snes_ntsc_impl.h \
|
|
|
|
src/snes_ntsc.c
|
|
|
|
|
2010-09-26 09:19:15 +00:00
|
|
|
if HQ2X
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../filter/hq2x.cpp \
|
|
|
|
../filter/hq2x.h
|
|
|
|
endif
|
|
|
|
|
2015-01-28 14:24:35 +00:00
|
|
|
if XBRZ
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/filter_xbrz.cpp\
|
|
|
|
src/filter_xbrz.h\
|
|
|
|
../filter/xbrz.cpp \
|
|
|
|
../filter/xbrz.h
|
|
|
|
endif
|
|
|
|
|
2010-09-25 15:46:12 +00:00
|
|
|
if PORTAUDIO
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_sound_driver_portaudio.cpp \
|
|
|
|
src/gtk_sound_driver_portaudio.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if PULSEAUDIO
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_sound_driver_pulse.cpp \
|
|
|
|
src/gtk_sound_driver_pulse.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if OSS
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_sound_driver_oss.h \
|
|
|
|
src/gtk_sound_driver_oss.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if SDL
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_sound_driver_sdl.h \
|
|
|
|
src/gtk_sound_driver_sdl.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ALSA
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_sound_driver_alsa.h \
|
|
|
|
src/gtk_sound_driver_alsa.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ZSNESFX
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../i386/fxemu2b.asm \
|
|
|
|
../i386/fxemu2.asm \
|
|
|
|
../i386/fxemu2c.asm \
|
|
|
|
../i386/fxtable.asm \
|
|
|
|
../i386/sfxproc.asm \
|
|
|
|
../i386/zsnes.asm
|
|
|
|
else
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../fxinst.cpp \
|
|
|
|
../fxemu.cpp \
|
|
|
|
../fxdbg.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ZSNESC4
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../i386/c4.asm \
|
|
|
|
../i386/zsnesc4.asm \
|
|
|
|
../c4.cpp
|
|
|
|
else
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../c4.cpp \
|
|
|
|
../c4emu.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
# APU
|
|
|
|
snes9x_gtk_SOURCES += \
|
2015-08-16 10:36:56 +00:00
|
|
|
../apu/apu.cpp
|
|
|
|
|
2011-06-12 06:25:22 +00:00
|
|
|
# Byuu's APU
|
|
|
|
snes9x_gtk_SOURCES += \
|
2011-06-25 08:10:42 +00:00
|
|
|
../apu/bapu/dsp/sdsp.cpp \
|
2011-06-12 06:25:22 +00:00
|
|
|
../apu/bapu/dsp/SPC_DSP.cpp \
|
2011-06-24 11:42:04 +00:00
|
|
|
../apu/bapu/smp/smp.cpp \
|
|
|
|
../apu/bapu/smp/smp_state.cpp
|
2010-09-25 15:46:12 +00:00
|
|
|
|
2016-11-03 19:45:20 +00:00
|
|
|
# MSU1
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../msu1.cpp \
|
|
|
|
../msu1.h
|
|
|
|
|
2010-09-25 15:46:12 +00:00
|
|
|
# DSP
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../dsp.cpp \
|
|
|
|
../dsp1.cpp \
|
|
|
|
../dsp2.cpp \
|
|
|
|
../dsp3.cpp \
|
2015-08-16 10:36:56 +00:00
|
|
|
../dsp4.cpp
|
2010-09-25 15:46:12 +00:00
|
|
|
|
|
|
|
# Base
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../spc7110.cpp \
|
|
|
|
../obc1.cpp \
|
|
|
|
../seta.cpp \
|
|
|
|
../seta010.cpp \
|
|
|
|
../seta011.cpp \
|
|
|
|
../seta018.cpp \
|
|
|
|
../controls.cpp \
|
|
|
|
../crosshairs.cpp \
|
|
|
|
../cpu.cpp \
|
|
|
|
../sa1.cpp \
|
|
|
|
../debug.cpp \
|
|
|
|
../sdd1.cpp \
|
|
|
|
../tile.cpp \
|
|
|
|
../srtc.cpp \
|
|
|
|
../gfx.cpp \
|
|
|
|
../memmap.cpp \
|
|
|
|
../clip.cpp \
|
|
|
|
../ppu.cpp \
|
|
|
|
../dma.cpp \
|
|
|
|
../snes9x.cpp \
|
|
|
|
../globals.cpp \
|
2012-01-02 00:48:51 +00:00
|
|
|
../stream.cpp \
|
2010-09-25 15:46:12 +00:00
|
|
|
../conffile.cpp \
|
|
|
|
../bsx.cpp \
|
|
|
|
../logger.cpp \
|
|
|
|
../snapshot.cpp \
|
|
|
|
../screenshot.cpp \
|
2014-06-27 08:36:36 +00:00
|
|
|
../movie.cpp \
|
2018-04-24 22:06:32 +00:00
|
|
|
../statemanager.cpp \
|
2018-04-26 00:29:26 +00:00
|
|
|
../sha256.cpp \
|
|
|
|
../bml.cpp
|
2010-09-25 15:46:12 +00:00
|
|
|
|
|
|
|
# ASMCPU Doesn't exist anymore.
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../cpuops.cpp \
|
|
|
|
../cpuexec.cpp \
|
|
|
|
../sa1cpu.cpp
|
|
|
|
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../cheats.cpp \
|
|
|
|
../cheats2.cpp
|
|
|
|
|
|
|
|
if SDD1_DECOMP
|
|
|
|
snes9x_gtk_SOURCES += ../sdd1emu.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NETPLAY
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
../netplay.cpp \
|
|
|
|
../server.cpp
|
|
|
|
endif
|
|
|
|
|
2016-11-11 16:52:07 +00:00
|
|
|
|
2010-09-25 15:46:12 +00:00
|
|
|
# Zip support is nonconfigurable.
|
|
|
|
snes9x_gtk_SOURCES += \
|
2016-11-11 16:52:07 +00:00
|
|
|
../loadzip.cpp
|
|
|
|
if ! SYSTEM_ZIP
|
|
|
|
snes9x_gtk_SOURCES += \
|
2010-09-25 15:46:12 +00:00
|
|
|
../unzip/unzip.c \
|
|
|
|
../unzip/ioapi.c \
|
|
|
|
../unzip/zip.c
|
2016-11-11 16:52:07 +00:00
|
|
|
endif
|
2010-09-25 15:46:12 +00:00
|
|
|
UNZIPDEFINES=-DUNZIP_SUPPORT
|
|
|
|
|
|
|
|
if JMA
|
|
|
|
snes9x_gtk_LDADD += libjma.a
|
|
|
|
noinst_LIBRARIES += libjma.a
|
|
|
|
libjma_a_SOURCES = \
|
|
|
|
../jma/s9x-jma.cpp \
|
|
|
|
../jma/7zlzma.cpp \
|
|
|
|
../jma/crc32.cpp \
|
|
|
|
../jma/iiostrm.cpp \
|
|
|
|
../jma/inbyte.cpp \
|
|
|
|
../jma/jma.cpp \
|
|
|
|
../jma/lzma.cpp \
|
|
|
|
../jma/lzmadec.cpp \
|
|
|
|
../jma/winout.cpp
|
|
|
|
libjma_a_CPPFLAGS = -fexceptions
|
|
|
|
endif
|
|
|
|
|
|
|
|
if OPENGL
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_display_driver_opengl.cpp \
|
2018-05-08 21:56:18 +00:00
|
|
|
src/gtk_display_driver_opengl.h \
|
2018-05-13 23:22:54 +00:00
|
|
|
../shaders/glsl.cpp \
|
|
|
|
../shaders/shader_helpers.cpp \
|
2018-05-12 20:07:07 +00:00
|
|
|
src/gtk_shader_parameters.cpp
|
2010-09-25 15:46:12 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if XV
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_display_driver_xv.cpp \
|
|
|
|
src/gtk_display_driver_xv.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NETPLAY
|
|
|
|
snes9x_gtk_SOURCES += \
|
|
|
|
src/gtk_netplay_dialog.cpp \
|
|
|
|
src/gtk_netplay_dialog.h \
|
|
|
|
src/gtk_netplay.cpp \
|
|
|
|
src/gtk_netplay.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUFFIXES = .asm .ASM
|
|
|
|
|
|
|
|
src/sourcify: src/sourcify.c
|
|
|
|
$(CC) src/sourcify.c -o src/sourcify
|
|
|
|
|
2010-09-26 09:19:15 +00:00
|
|
|
src/gtk_snes9x_ui.cpp: src/sourcify src/snes9x.ui
|
|
|
|
src/sourcify src/snes9x.ui src/gtk_snes9x_ui.cpp snes9x_ui
|
2010-09-25 15:46:12 +00:00
|
|
|
|
|
|
|
.asm.o:
|
|
|
|
$(NASM) -f elf -DELF $(NASM_FLAGS) -i ./ -i ../ -i ../i386/ -i i386/ -o $@ $*.asm
|
|
|
|
|
|
|
|
.ASM.o:
|
|
|
|
$(NASM) -f elf -DELF $(NASM_FLAGS) -i ./ -i ../ -i ../i386/ -i i386/ $*.ASM -o $@
|
|
|
|
|