include ../../mk/rules.mk
include ../../mk/init.mk

OBJECTIVE_LIBS = libconsole$(SHARED_SUFFIX)

LIBDIR = $(plugindir)/$(INPUT_PLUGIN_DIR)

SOURCES = \
	Audacious_Config.cxx    \
	Audacious_Driver.cxx    \
	Ay_Apu.cxx              \
	Ay_Cpu.cxx              \
	Ay_Emu.cxx              \
	Blip_Buffer.cxx         \
	Classic_Emu.cxx         \
	Data_Reader.cxx         \
	Dual_Resampler.cxx      \
	Effects_Buffer.cxx      \
	Fir_Resampler.cxx       \
	Gbs_Emu.cxx             \
	Gb_Apu.cxx              \
	Gb_Cpu.cxx              \
	Gb_Oscs.cxx             \
	gme.cxx                 \
	Gme_File.cxx            \
	Gym_Emu.cxx             \
	Gzip_Reader.cxx         \
	Hes_Apu.cxx             \
	Hes_Cpu.cxx             \
	Hes_Emu.cxx             \
	Kss_Cpu.cxx             \
	Kss_Emu.cxx             \
	Kss_Scc_Apu.cxx         \
	M3u_Playlist.cxx        \
	Multi_Buffer.cxx        \
	Music_Emu.cxx           \
	Nes_Apu.cxx             \
	Nes_Cpu.cxx             \
	Nes_Fme7_Apu.cxx        \
	Nes_Namco_Apu.cxx       \
	Nes_Oscs.cxx            \
	Nes_Vrc6_Apu.cxx        \
	Nsfe_Emu.cxx            \
	Nsf_Emu.cxx             \
	Sap_Apu.cxx             \
	Sap_Cpu.cxx             \
	Sap_Emu.cxx             \
	Sms_Apu.cxx             \
	Snes_Spc.cxx            \
	Spc_Cpu.cxx             \
	Spc_Dsp.cxx             \
	Spc_Emu.cxx             \
	Vfs_File.cxx            \
	Vgm_Emu.cxx             \
	Vgm_Emu_Impl.cxx        \
	Ym2413_Emu.cxx          \
	Ym2612_Emu.cxx          \
	Zlib_Inflater.cxx

OBJECTS = ${SOURCES:.cxx=.o}

LIBADD += -lz $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) -lstdc++
CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) -I../../intl -I../..
CXXFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) -I../../intl -I../..

include ../../mk/objective.mk
