1 # Copyright (C) 2007, 2008 Ole Laursen
2 # Copyright (C) 2007, 2008, 2009 Ben Asselstine
3 # Copyright (C) 2008 Barry deFreese
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 3 of the License, or
8 # (at your option) any later version.
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 Library General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 MAINTAINERCLEANFILES= Makefile.in
22 bin_PROGRAMS = lordsawar-editor lordsawar-army-editor lordsawar-tile-editor lordsawar-city-editor lordsawar-shield-editor
24 lordsawar_army_editor_SOURCES = \
26 armyset-window.cpp armyset-window.h \
27 armyset-info-dialog.cpp armyset-info-dialog.h \
28 masked-image-editor-dialog.cpp masked-image-editor-dialog.h \
29 image-editor-dialog.cpp image-editor-dialog.h \
32 lordsawar_city_editor_SOURCES = \
34 cityset-window.cpp cityset-window.h \
35 cityset-info-dialog.cpp cityset-info-dialog.h \
36 image-editor-dialog.cpp image-editor-dialog.h \
39 lordsawar_shield_editor_SOURCES = \
41 shieldset-window.cpp shieldset-window.h \
42 shieldset-info-dialog.cpp shieldset-info-dialog.h \
43 masked-image-editor-dialog.cpp masked-image-editor-dialog.h \
46 lordsawar_tile_editor_SOURCES = \
48 tileset-window.cpp tileset-window.h \
49 tileset-info-dialog.cpp tileset-info-dialog.h \
50 tile-preview-dialog.cpp tile-preview-dialog.h \
51 tile-preview-scene.cpp tile-preview-scene.h \
52 tileset-selector-editor-dialog.cpp tileset-selector-editor-dialog.h \
53 tileset-flag-editor-dialog.cpp tileset-flag-editor-dialog.h \
54 tileset-explosion-picture-editor-dialog.cpp \
55 tileset-explosion-picture-editor-dialog.h \
56 image-editor-dialog.cpp image-editor-dialog.h \
59 lordsawar_editor_SOURCES = \
61 main-window.cpp main-window.h \
62 signpost-editor-dialog.cpp signpost-editor-dialog.h \
63 temple-editor-dialog.cpp temple-editor-dialog.h \
64 ruin-editor-dialog.cpp ruin-editor-dialog.h \
65 stack-editor-dialog.cpp stack-editor-dialog.h \
66 select-army-dialog.cpp select-army-dialog.h \
67 players-dialog.cpp players-dialog.h \
68 city-editor-dialog.cpp city-editor-dialog.h \
69 map-info-dialog.cpp map-info-dialog.h \
70 new-map-dialog.cpp new-map-dialog.h \
71 switch-sets-dialog.cpp switch-sets-dialog.h \
72 editorbigmap.cpp editorbigmap.h \
74 itemlist-dialog.cpp itemlist-dialog.h \
75 reward-editor-dialog.cpp reward-editor-dialog.h \
76 select-item-dialog.cpp select-item-dialog.h \
77 select-reward-dialog.cpp select-reward-dialog.h \
78 rewardlist-dialog.cpp rewardlist-dialog.h \
79 select-hidden-ruin-dialog.cpp select-hidden-ruin-dialog.h \
80 RenamableLocation.cpp RenamableLocation.h \
81 backpack-editor-dialog.cpp backpack-editor-dialog.h \
82 hero-editor-dialog.cpp hero-editor-dialog.h
85 lordsawar_editor_SOURCES += editor.rc
88 i586-mingw32msvc-windres -o $@ $<
90 lordsawar_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
91 $(top_builddir)/src/liblordsawargfx.la \
92 $(top_builddir)/src/liblordsawar.la \
96 @LIBINTL@ -L$(top_builddir)/src
98 lordsawar_shield_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
99 $(top_builddir)/src/liblordsawargfx.la \
100 $(top_builddir)/src/liblordsawar.la \
104 @LIBINTL@ -L$(top_builddir)/src
106 lordsawar_city_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
107 $(top_builddir)/src/liblordsawargfx.la \
108 $(top_builddir)/src/liblordsawar.la \
112 @LIBINTL@ -L$(top_builddir)/src
114 lordsawar_army_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
115 $(top_builddir)/src/liblordsawargfx.la \
116 $(top_builddir)/src/liblordsawar.la \
120 @LIBINTL@ -L$(top_builddir)/src
122 lordsawar_tile_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
123 $(top_builddir)/src/liblordsawargfx.la \
124 $(top_builddir)/src/liblordsawar.la \
128 @LIBINTL@ -L$(top_builddir)/src
132 localedir = $(datadir)/locale
133 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
136 AM_CXXFLAGS = -Wall -DPO_PATH=\"$(prefix)/share/locale/\"
137 INCLUDES = $(GTKMM_CFLAGS) \
139 -DLORDSAWAR_DATADIR='"$(LORDSAWAR_DATADIR)"' -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/gui/