initial commit, lordsawar source, slightly modified
[lordsawar] / src / editor / Makefile.am
1 #   Copyright (C) 2007, 2008 Ole Laursen
2 #   Copyright (C) 2007, 2008, 2009 Ben Asselstine
3 #   Copyright (C) 2008 Barry deFreese
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 3 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 Library General Public License for more details.
14
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 
18 #   02110-1301, USA.
19 MAINTAINERCLEANFILES= Makefile.in
20
21 if WANT_EDITOR
22 bin_PROGRAMS = lordsawar-editor lordsawar-army-editor lordsawar-tile-editor lordsawar-city-editor lordsawar-shield-editor
23
24 lordsawar_army_editor_SOURCES = \
25         armyset-main.cpp \
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 \
30         glade-helpers.h
31
32 lordsawar_city_editor_SOURCES = \
33         cityset-main.cpp \
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 \
37         glade-helpers.h
38
39 lordsawar_shield_editor_SOURCES = \
40         shieldset-main.cpp \
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 \
44         glade-helpers.h
45
46 lordsawar_tile_editor_SOURCES = \
47         tileset-main.cpp \
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 \
57         glade-helpers.h
58
59 lordsawar_editor_SOURCES = \
60         main.cpp \
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 \
73         glade-helpers.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
83         
84 if FL_RESRC
85 lordsawar_editor_SOURCES += editor.rc
86 endif
87 .rc.o:
88         i586-mingw32msvc-windres -o $@ $<
89
90 lordsawar_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
91                          $(top_builddir)/src/liblordsawargfx.la \
92                          $(top_builddir)/src/liblordsawar.la \
93                          $(GTKMM_LIBS) \
94                          $(SDL_LIBS) \
95                          $(SDLIMAGE_LIBS) \
96                          @LIBINTL@ -L$(top_builddir)/src
97
98 lordsawar_shield_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
99                          $(top_builddir)/src/liblordsawargfx.la \
100                          $(top_builddir)/src/liblordsawar.la \
101                          $(SDL_LIBS) \
102                          $(SDLIMAGE_LIBS) \
103                          $(GTKMM_LIBS) \
104                          @LIBINTL@ -L$(top_builddir)/src
105
106 lordsawar_city_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
107                          $(top_builddir)/src/liblordsawargfx.la \
108                          $(top_builddir)/src/liblordsawar.la \
109                          $(SDL_LIBS) \
110                          $(SDLIMAGE_LIBS) \
111                          $(GTKMM_LIBS) \
112                          @LIBINTL@ -L$(top_builddir)/src
113
114 lordsawar_army_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
115                          $(top_builddir)/src/liblordsawargfx.la \
116                          $(top_builddir)/src/liblordsawar.la \
117                          $(SDL_LIBS) \
118                          $(SDLIMAGE_LIBS) \
119                          $(GTKMM_LIBS) \
120                          @LIBINTL@ -L$(top_builddir)/src
121
122 lordsawar_tile_editor_LDADD = $(top_builddir)/src/gui/liblwgui.la \
123                          $(top_builddir)/src/liblordsawargfx.la \
124                          $(top_builddir)/src/liblordsawar.la \
125                          $(SDL_LIBS) \
126                          $(SDLIMAGE_LIBS) \
127                          $(GTKMM_LIBS) \
128                          @LIBINTL@ -L$(top_builddir)/src
129 endif
130
131
132 localedir = $(datadir)/locale
133 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
134
135
136 AM_CXXFLAGS = -Wall -DPO_PATH=\"$(prefix)/share/locale/\"
137 INCLUDES = $(GTKMM_CFLAGS) \
138     $(SDL_CFLAGS) \
139     -DLORDSAWAR_DATADIR='"$(LORDSAWAR_DATADIR)"' -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/gui/