1 # Copyright (C) 2008 Barry deFreese
2 # Copyright (C) 2009 Ben Asselstine
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Library General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 SUBDIRS = gui . editor pbm
19 MAINTAINERCLEANFILES= Makefile.in
21 bin_PROGRAMS = lordsawar
22 noinst_LTLIBRARIES = liblordsawar.la liblordsawarnet.la liblordsawargfx.la
24 liblordsawar_la_SOURCES = action.cpp action.h AI_Analysis.cpp AI_Analysis.h \
25 AI_Allocation.cpp AI_Allocation.h AI_Diplomacy.cpp AI_Diplomacy.h \
26 ai_dummy.cpp ai_dummy.h ai_fast.cpp ai_fast.h \
27 ai_smart.cpp ai_smart.h AICityInfo.cpp AICityInfo.h \
28 armybase.cpp armybase.h armyproto.cpp armyproto.h armyprodbase.cpp \
29 armyprodbase.h army.cpp army.h armysetlist.cpp armysetlist.h \
30 armyset.cpp armyset.h armyprotobase.cpp armyprotobase.h \
31 bridge.cpp bridge.h bridgelist.cpp bridgelist.h \
32 city.cpp city.h citylist.cpp citylist.h set.h set.cpp setlist.h \
33 citysetlist.cpp citysetlist.h cityset.cpp cityset.h \
34 Configuration.cpp Configuration.h counter.cpp counter.h \
35 CreateScenario.cpp CreateScenario.h \
36 CreateScenarioRandomize.cpp CreateScenarioRandomize.h \
37 fight.cpp fight.h File.cpp File.h FogMap.cpp FogMap.h \
38 GameMap.cpp GameMap.h GameScenario.cpp GameScenario.h \
39 GameScenarioOptions.cpp GameScenarioOptions.h \
40 hero.cpp hero.h heroproto.cpp heroproto.h \
41 herotemplates.cpp herotemplates.h history.cpp history.h \
42 Immovable.cpp Immovable.h Item.cpp Item.h Sage.cpp Sage.h \
43 ItemProto.cpp ItemProto.h stacktile.cpp stacktile.h \
44 stackreflist.cpp stackreflist.h Commentator.cpp Commentator.h \
45 Itemlist.cpp Itemlist.h Location.cpp Location.h \
46 LocationBox.cpp LocationBox.h LocationList.h \
47 MapGenerator.cpp MapGenerator.h \
48 maptile.cpp maptile.h Movable.cpp Movable.h \
49 MoveResult.cpp MoveResult.h Named.cpp Named.h Namable.cpp Namable.h \
50 NamedLocation.cpp NamedLocation.h network_player.cpp network_player.h \
51 network-action.cpp network-action.h \
52 network-history.cpp network-history.h \
53 NextTurn.cpp NextTurn.h NextTurnHotseat.cpp NextTurnHotseat.h \
54 NextTurnNetworked.cpp NextTurnNetworked.h \
55 NextTurnPbm.cpp NextTurnPbm.h OwnerId.cpp OwnerId.h \
56 Ownable.cpp Ownable.h path.cpp path.h \
57 PathCalculator.cpp PathCalculator.h \
58 RoadPathCalculator.cpp RoadPathCalculator.h \
59 player.cpp player.h playerlist.cpp playerlist.h \
60 port.cpp port.h portlist.cpp portlist.h \
61 Positioned.cpp Positioned.h QCityOccupy.cpp QCityOccupy.h \
62 QCityRaze.cpp QCityRaze.h QCitySack.cpp QCitySack.h \
63 QEnemyArmies.cpp QEnemyArmies.h QEnemyArmytype.cpp QEnemyArmytype.h \
64 QKillHero.cpp QKillHero.h QPillageGold.cpp QPillageGold.h \
65 Quest.cpp Quest.h QuestsManager.cpp QuestsManager.h \
66 real_player.cpp real_player.h Renamable.cpp Renamable.h \
67 reward.h reward.cpp rewardlist.h rewardlist.cpp \
68 road.cpp road.h roadlist.cpp roadlist.h \
69 ruin.cpp ruin.h ruinlist.cpp ruinlist.h \
70 shield.cpp shield.h shieldset.cpp shieldset.h \
71 shieldsetlist.cpp shieldsetlist.h shieldstyle.cpp shieldstyle.h \
72 signpost.cpp signpost.h signpostlist.cpp signpostlist.h \
73 stack.cpp stack.h stacklist.cpp stacklist.h \
74 temple.cpp temple.h templelist.cpp templelist.h \
75 Threat.cpp Threat.h Threatlist.cpp Threatlist.h \
76 Tile.cpp Tile.h tileset.cpp tileset.h tilesetlist.cpp tilesetlist.h \
77 tilestyle.cpp tilestyle.h tilestyleset.cpp tilestyleset.h \
78 timing.cpp timing.h UniquelyIdentified.cpp UniquelyIdentified.h \
79 vectoredunit.cpp vectoredunit.h \
80 vectoredunitlist.cpp vectoredunitlist.h xmlhelper.cpp xmlhelper.h \
81 tarhelper.cpp tarhelper.h \
82 rectangle.h vector.h ucompose.hpp boxcompose.h \
83 SightMap.cpp SightMap.h SmallTile.cpp SmallTile.h \
84 Triumphs.cpp Triumphs.h Backpack.cpp Backpack.h \
85 MapBackpack.cpp MapBackpack.h prodslot.cpp prodslot.h \
86 prodslotlist.cpp prodslotlist.h namelist.cpp namelist.h \
87 PixMask.cpp PixMask.h \
88 GraphicsCache.cpp GraphicsCache.h
90 liblordsawarnet_la_SOURCES = \
91 game-client.cpp game-client.h \
92 game-client-decoder.cpp game-client-decoder.h \
93 game-server.cpp game-server.h game-station.cpp game-station.h \
94 network-connection.cpp chat-client.cpp chat-client.h \
95 network-connection.h network-common.h \
96 network-server.cpp network-server.h \
97 pbm/pbm.cpp pbm/pbm.h \
98 pbm-game-client.cpp pbm-game-client.h \
99 pbm-game-server.cpp pbm-game-server.h
101 liblordsawargfx_la_SOURCES = \
102 bigmap.cpp bigmap.h citymap.cpp citymap.h \
103 historymap.cpp historymap.h heromap.cpp heromap.h \
104 heroesmap.cpp heroesmap.h \
105 ruinmap.cpp ruinmap.h questmap.cpp questmap.h \
106 vectormap.cpp vectormap.h overviewmap.cpp overviewmap.h \
107 smallmap.cpp smallmap.h \
108 MapRenderer.cpp MapRenderer.h \
109 input-events.h map-tip-position.h
112 lordsawar_SOURCES = armymap.cpp armymap.h \
113 callback-enums.h defs.h game-parameters.h \
114 recently-played-game.cpp recently-played-game.h \
115 recently-played-game-list.cpp recently-played-game-list.h \
116 sidebar-stats.h game.cpp game.h gamebigmap.cpp gamebigmap.h \
117 sound.cpp sound.h main.cpp
121 lordsawar_SOURCES += lordsawar.rc
124 i586-mingw32msvc-windres -o $@ $<
126 localedir = $(datadir)/locale
127 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
129 liblordsawar_la_LIBADD = gui/liblwgui.la \
133 lordsawar_LDADD = liblordsawar.la \
139 $(LIBSIGC_LIBS) -ltar \
143 lordsawar_DEPENDENCIES = \
149 AM_CXXFLAGS = -Wall -DPO_PATH=\"$(prefix)/share/locale/\" -Wunused-function
150 INCLUDES = $(SDL_CFLAGS) \
154 -DLORDSAWAR_DATADIR='"$(LORDSAWAR_DATADIR)"' \