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) 2006 Bas Wijnen <shevek@fmf.nl>
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
21icon_DATA += server/gtk/pioneers-server.png
22desktop_in_files += server/gtk/pioneers-server-gtk.desktop.in
23bin_PROGRAMS += pioneers-server-gtk
24
25icons += server/gtk/pioneers-server.svg
26
27pioneers_server_gtk_CPPFLAGS = $(gtk_cflags) $(avahi_cflags) -I $(srcdir)/server
28pioneers_server_gtk_LDADD = libpioneers_server.a $(gtk_libs) $(avahi_libs)
29
30server_resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/server/gtk/server.gresource.xml)
31server/gtk/server-resources.c: server/gtk/server.gresource.xml $(server_resource_files)
32	$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name server $(srcdir)/server/gtk/server.gresource.xml
33server/gtk/server-resources.h: server/gtk/server.gresource.xml $(server_resource_files)
34	$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name server $(srcdir)/server/gtk/server.gresource.xml
35
36pioneers_server_gtk_BUILT_RESOURCES = \
37	server/gtk/server-resources.c \
38	server/gtk/server-resources.h
39
40pioneers_server_gtk_SOURCES = \
41	server/gtk/main.c \
42	server/gtk/pioneers-server.ico \
43	server/gtk/pioneers-server.rc \
44	$(pioneers_server_gtk_BUILT_RESOURCES)
45
46EXTRA_DIST += \
47	$(server_resource_files) \
48	server/gtk/server.gresource.xml
49
50CLEANFILES += \
51	$(pioneers_server_gtk_BUILT_RESOURCES)
52
53if USE_WINDOWS_ICON
54pioneers_server_gtk_LDADD += server/gtk/pioneers-server.res
55CLEANFILES += server/gtk/pioneers-server.res
56endif
57