AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"${datadir}/pcsxr/\" \ -DPIXMAPDIR=\"${datadir}/pixmaps/\" \ -DLOCALE_DIR=\"${datadir}/locale/\" \ $(GTK3_CFLAGS) \ -I$(top_srcdir)/libpcsxcore -I$(top_srcdir)/include \ -DPSEMU_DATA_DIR=\"${datadir}/psemu\" \ -DDEF_PLUGIN_DIR=\"${libdir}/games/psemu\" bin_PROGRAMS = pcsxr pcsxr_SOURCES = \ LnxMain.c \ Linux.h \ nopic.h \ Plugin.c \ Config.c \ GtkGui.c \ MemcardDlg.c \ MemcardDlg.h \ ConfDlg.c \ ConfDlg.h \ Cheat.c \ Cheat.h \ DebugMemory.c \ DebugMemory.h \ AboutDlg.c \ AboutDlg.h \ GtkResources.c \ GtkResources.h # gresource.xml is dynamically generated in CMake. Mirror that here in a static way. define gresource_xml = pcsxr.ui pixmaps/pcsxr-about.png pixmaps/pcsxr-cd-open.png pixmaps/pcsxr-cheats-browse.png pixmaps/pcsxr-cheats-search.png pixmaps/pcsxr-cheats.png pixmaps/pcsxr-cpu.png pixmaps/pcsxr-exit.png pixmaps/pcsxr-icon.png pixmaps/pcsxr-iso-open.png pixmaps/pcsxr-iso-reopen.png pixmaps/pcsxr-load-state.png pixmaps/pcsxr-memcard.png pixmaps/pcsxr-memory-dump.png pixmaps/pcsxr-play.png pixmaps/pcsxr-plugin-cdr.png pixmaps/pcsxr-plugin-gpu.png pixmaps/pcsxr-plugin-netplay.png pixmaps/pcsxr-plugin-pad.png pixmaps/pcsxr-plugin-sio1.png pixmaps/pcsxr-plugin-spu.png pixmaps/pcsxr-reset.png pixmaps/pcsxr-run-bios.png pixmaps/pcsxr-run-exe.png pixmaps/pcsxr-save-state.png pixmaps/pcsxr-settings.png pixmaps/pcsxr-shutdown.png pixmaps/pcsxr.png endef pcsxr.gresource.xml: $(file >$@,$(gresource_xml)) pcsxr_gresource: pcsxr.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/data --generate-dependencies $(srcdir)/$<) GtkResources.c: pcsxr.gresource.xml $(pcsxr_gresource) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data --generate-source --c-name pcsxr $< GtkResources.h: pcsxr.gresource.xml $(pcsxr_gresource) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data --generate-header --c-name pcsxr $< pcsxr_LDADD = \ ../libpcsxcore/libpcsxcore.a \ $(GTK3_LIBS) -lpthread -lz -lm -lXext -lXtst CLEANFILES = pcsxr.gresource.xml GtkResources.c GtkResources.h