1## Process this file with automake to produce Makefile.in 2## Copyright (c) 2001-2004 Philip Kendall 3## Copyright (c) 2015 Sergio Baldoví 4 5## This program is free software; you can redistribute it and/or modify 6## it under the terms of the GNU General Public License as published by 7## the Free Software Foundation; either version 2 of the License, or 8## (at your option) any later version. 9## 10## This program is distributed in the hope that it will be useful, 11## but WITHOUT ANY WARRANTY; without even the implied warranty of 12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13## GNU General Public License for more details. 14## 15## You should have received a copy of the GNU General Public License along 16## with this program; if not, write to the Free Software Foundation, Inc., 17## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18## 19## Author contact information: 20## 21## E-mail: philip-fuse@shadowmagic.org.uk 22 23if UI_GTK 24 25fuse_SOURCES += $(ui_gtk_files) 26 27BUILT_SOURCES += $(ui_gtk_built) 28 29pkgdata_DATA += ui/gtk/menu_data.ui 30 31endif 32 33 34CLEANFILES += $(ui_gtk_built) 35 36ui_gtk_files = \ 37 ui/gtk/binary.c \ 38 ui/gtk/browse.c \ 39 ui/gtk/confirm.c \ 40 ui/gtk/debugger.c \ 41 ui/gtk/fileselector.c \ 42 ui/gtk/gtkcompat.h \ 43 ui/gtk/gtkdisplay.c \ 44 ui/gtk/gtkinternals.h \ 45 ui/gtk/gtkjoystick.c \ 46 ui/gtk/gtkkeyboard.c \ 47 ui/gtk/gtkmouse.c \ 48 ui/gtk/gtkui.c \ 49 ui/gtk/keysyms.c \ 50 ui/gtk/menu_data.c \ 51 ui/gtk/options.c \ 52 ui/gtk/picture.c \ 53 ui/gtk/pixmaps.c \ 54 ui/gtk/pokefinder.c \ 55 ui/gtk/pokemem.c \ 56 ui/gtk/rollback.c \ 57 ui/gtk/roms.c \ 58 ui/gtk/statusbar.c \ 59 ui/gtk/stock.c 60 61if HAVE_GTK2 62 63ui_gtk_files += ui/gtk/gtkcompat.c \ 64 ui/gtk/memory_gtk2.c 65 66else 67 68ui_gtk_files += ui/gtk/memory.c 69 70endif 71 72ui_gtk_built = \ 73 ui/gtk/keysyms.c \ 74 ui/gtk/menu_data.c \ 75 ui/gtk/menu_data.ui \ 76 ui/gtk/options.c \ 77 ui/gtk/options_internals.h 78 79EXTRA_DIST += \ 80 ui/gtk/options.pl \ 81 ui/gtk/options-header.pl 82 83ui/gtk/keysyms.c: $(srcdir)/keysyms.pl $(srcdir)/keysyms.dat 84 @$(MKDIR_P) ui/gtk 85 $(AM_V_GEN)$(PERL) -I$(srcdir)/perl $(srcdir)/keysyms.pl gtk $(srcdir)/keysyms.dat > $@.tmp && mv $@.tmp $@ 86 87ui/gtk/menu_data.c: $(srcdir)/perl/cpp-perl.pl $(srcdir)/menu_data.pl $(srcdir)/menu_data.dat config.h 88 @$(MKDIR_P) ui/gtk 89 $(AM_V_GEN)$(PERL) $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/menu_data.dat | $(PERL) -I$(srcdir)/perl $(srcdir)/menu_data.pl gtk c > $@.tmp && mv $@.tmp $@ 90 91ui/gtk/menu_data.ui: $(srcdir)/perl/cpp-perl.pl $(srcdir)/menu_data.pl $(srcdir)/menu_data.dat config.h 92 @$(MKDIR_P) ui/gtk 93 $(AM_V_GEN)$(PERL) $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/menu_data.dat | $(PERL) -I$(srcdir)/perl $(srcdir)/menu_data.pl gtk ui > $@.tmp && mv $@.tmp $@ 94 95ui/gtk/options.c: $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/gtk/options.pl $(srcdir)/ui/options.dat $(srcdir)/perl/Fuse.pm $(srcdir)/perl/Fuse/Dialog.pm 96 @$(MKDIR_P) ui/gtk 97 $(AM_V_GEN)$(PERL) $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/options.dat | $(PERL) -I$(srcdir)/perl $(srcdir)/ui/gtk/options.pl - > $@.tmp && mv $@.tmp $@ 98 99ui/gtk/options_internals.h: $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/gtk/options-header.pl $(srcdir)/ui/options.dat $(srcdir)/perl/Fuse.pm $(srcdir)/perl/Fuse/Dialog.pm 100 @$(MKDIR_P) ui/gtk 101 $(AM_V_GEN)$(PERL) $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/options.dat | $(PERL) -I$(srcdir)/perl $(srcdir)/ui/gtk/options-header.pl - > $@.tmp && mv $@.tmp $@ 102