snes9x/gtk/Makefile.am

274 lines
5.3 KiB
Makefile
Raw Normal View History

2010-09-25 17:46:12 +02: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 03:35:20 +02:00
AM_CPPFLAGS = -I../apu/bapu -I$(top_srcdir) -I.. -DDATADIR=\""$(snes9xdatadir)"\" -DSNES9XLOCALEDIR=\""$(snes9xlocaledir)"\"
2010-09-25 17:46:12 +02:00
CLEANFILES = \
2010-09-26 11:19:15 +02:00
src/gtk_snes9x_ui.cpp \
2010-09-25 17:46:12 +02: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 11:19:15 +02:00
src/gtk_snes9x_ui.cpp \
src/gtk_builder_window.cpp \
src/gtk_builder_window.h \
2010-09-25 17:46:12 +02: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 \
src/gtk_splash.cpp \
2010-09-25 17:46:12 +02:00
src/snes_ntsc_config.h \
src/snes_ntsc.h \
src/snes_ntsc_impl.h \
src/snes_ntsc.c
2010-09-26 11:19:15 +02:00
if HQ2X
snes9x_gtk_SOURCES += \
../filter/hq2x.cpp \
../filter/hq2x.h
endif
2015-01-28 15:24:35 +01:00
if XBRZ
snes9x_gtk_SOURCES += \
src/filter_xbrz.cpp\
src/filter_xbrz.h\
../filter/xbrz.cpp \
../filter/xbrz.h
endif
2010-09-25 17:46:12 +02: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 += \
../apu/apu.cpp
2011-06-12 08:25:22 +02:00
# Byuu's APU
snes9x_gtk_SOURCES += \
../apu/bapu/dsp/sdsp.cpp \
2011-06-12 08:25:22 +02:00
../apu/bapu/dsp/SPC_DSP.cpp \
2011-06-24 13:42:04 +02:00
../apu/bapu/smp/smp.cpp \
../apu/bapu/smp/smp_state.cpp
2010-09-25 17:46:12 +02:00
# MSU1
snes9x_gtk_SOURCES += \
../msu1.cpp \
../msu1.h
2010-09-25 17:46:12 +02:00
# DSP
snes9x_gtk_SOURCES += \
../dsp.cpp \
../dsp1.cpp \
../dsp2.cpp \
../dsp3.cpp \
../dsp4.cpp
2010-09-25 17:46:12 +02: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 \
../stream.cpp \
2010-09-25 17:46:12 +02:00
../conffile.cpp \
../bsx.cpp \
../logger.cpp \
../snapshot.cpp \
../screenshot.cpp \
../movie.cpp \
../statemanager.cpp \
2018-04-26 02:29:26 +02:00
../sha256.cpp \
../bml.cpp
2010-09-25 17:46:12 +02: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
2010-09-25 17:46:12 +02:00
# Zip support is nonconfigurable.
snes9x_gtk_SOURCES += \
../loadzip.cpp
if ! SYSTEM_ZIP
snes9x_gtk_SOURCES += \
2010-09-25 17:46:12 +02:00
../unzip/unzip.c \
../unzip/ioapi.c \
../unzip/zip.c
endif
2010-09-25 17:46:12 +02: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 \
src/gtk_display_driver_opengl.h \
2018-05-14 01:22:54 +02:00
../shaders/CGLCG.cpp \
../shaders/cgFunctions.cpp \
../shaders/CCGShader.cpp \
../shaders/glsl.cpp \
../shaders/shader_helpers.cpp \
2018-05-12 22:07:07 +02:00
src/gtk_shader_parameters.cpp
2010-09-25 17:46:12 +02: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 11:19:15 +02: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 17:46:12 +02: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 $@