1# Pioneers - Implementation of the excellent Settlers of Catan board game. 2# Go buy a copy. 3# 4# Copyright (C) 1999 Dave Cole 5# Copyright (C) 2003, 2006 Bas Wijnen <shevek@fmf.nl> 6# Copyright (C) 2006 Roland Clobus <rclobus@bigfoot.com> 7# 8# This program is free software; you can redistribute it and/or modify 9# it under the terms of the GNU General Public License as published by 10# the Free Software Foundation; either version 2 of the License, or 11# (at your option) any later version. 12# 13# This program is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16# GNU General Public License for more details. 17# 18# You should have received a copy of the GNU General Public License 19# along with this program; if not, write to the Free Software 20# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 22icon_DATA += editor/gtk/pioneers-editor.png 23desktop_in_files += editor/gtk/pioneers-editor.desktop.in 24bin_PROGRAMS += pioneers-editor 25 26icons += editor/gtk/pioneers-editor.svg 27 28pioneers_editor_CPPFLAGS = $(gtk_cflags) 29 30resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/editor/gtk/editor.gresource.xml) 31editor/gtk/editor-resources.c: editor/gtk/editor.gresource.xml $(resource_files) 32 $(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name editor $(srcdir)/editor/gtk/editor.gresource.xml 33editor/gtk/editor-resources.h: editor/gtk/editor.gresource.xml $(resource_files) 34 $(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name editor $(srcdir)/editor/gtk/editor.gresource.xml 35 36BUILT_RESOURCES = \ 37 editor/gtk/editor-resources.c \ 38 editor/gtk/editor-resources.h 39 40pioneers_editor_SOURCES = \ 41 editor/gtk/editor.c \ 42 editor/gtk/game-devcards.c \ 43 editor/gtk/game-devcards.h \ 44 editor/gtk/game-buildings.c \ 45 editor/gtk/game-buildings.h \ 46 editor/gtk/game-resources.c \ 47 editor/gtk/game-resources.h \ 48 editor/gtk/pioneers-editor.ico \ 49 editor/gtk/pioneers-editor.rc \ 50 $(BUILT_RESOURCES) 51 52pioneers_editor_LDADD = $(gtk_libs) 53 54EXTRA_DIST += \ 55 $(resource_files) \ 56 editor/gtk/editor.gresource.xml 57 58CLEANFILES += \ 59 $(BUILT_RESOURCES) 60 61if USE_WINDOWS_ICON 62pioneers_editor_LDADD += editor/gtk/pioneers-editor.res 63CLEANFILES += editor/gtk/pioneers-editor.res 64endif 65