AUTOMAKE_OPTIONS = subdir-objects bin_PROGRAMS = if GAME bin_PROGRAMS += wesnoth endif if SERVER bin_PROGRAMS += wesnothd endif if CAMPAIGNSERVER bin_PROGRAMS += campaignd endif if TOOLS bin_PROGRAMS += exploder cutter endif if EDITOR bin_PROGRAMS += wesnoth_editor endif pkgdatadir=$(datadir)/@DATADIR@ ############################################################################# # Wesnoth # ############################################################################# wesnoth_SOURCES = \ about.cpp \ actions.cpp \ ai.cpp \ ai_attack.cpp \ ai_move.cpp \ animated.cpp \ astarnode.cpp \ builder.cpp \ cavegen.cpp \ checksum.cpp \ clipboard.cpp \ config.cpp \ cursor.cpp \ dialogs.cpp \ display.cpp \ events.cpp \ filesystem.cpp \ font.cpp \ game.cpp \ game_config.cpp \ game_events.cpp \ gamestatus.cpp \ gettext.cpp \ halo.cpp \ help.cpp \ hotkeys.cpp \ image.cpp \ intro.cpp \ key.cpp \ language.cpp \ leader_list.cpp \ log.cpp \ map.cpp \ map_create.cpp \ map_label.cpp \ mapgen.cpp \ mapgen_dialog.cpp \ mouse.cpp \ multiplayer.cpp \ multiplayer_ui.cpp \ multiplayer_wait.cpp \ multiplayer_connect.cpp \ multiplayer_create.cpp \ multiplayer_lobby.cpp \ network.cpp \ network_worker.cpp \ pathfind.cpp \ pathutils.cpp \ playcampaign.cpp \ playlevel.cpp \ playturn.cpp \ preferences.cpp \ publish_campaign.cpp \ race.cpp \ random.cpp \ replay.cpp \ reports.cpp \ sdl_utils.cpp \ show_dialog.cpp \ sound.cpp \ statistics.cpp \ team.cpp \ terrain.cpp \ theme.cpp \ thread.cpp \ titlescreen.cpp \ tooltips.cpp \ tstring.cpp \ unit.cpp \ unit_display.cpp \ unit_types.cpp \ variable.cpp \ video.cpp \ wassert.cpp \ serialization/binary_or_text.cpp \ serialization/binary_wml.cpp \ serialization/parser.cpp \ serialization/preprocessor.cpp \ serialization/string_utils.cpp \ serialization/tokenizer.cpp \ widgets/button.cpp \ widgets/combo.cpp \ widgets/label.cpp \ widgets/menu.cpp \ widgets/progressbar.cpp \ widgets/scrollarea.cpp \ widgets/scrollbar.cpp \ widgets/scrollpane.cpp \ widgets/slider.cpp \ widgets/textbox.cpp \ widgets/widget.cpp \ zipios++/xcoll.cpp \ sdl_ttf/SDL_ttf.c \ about.hpp \ actions.hpp \ ai.hpp \ ai2.hpp \ ai_interface.hpp \ animated.hpp \ array.hpp \ astarnode.hpp \ builder.hpp \ cavegen.hpp \ checksum.hpp \ clipboard.hpp \ cursor.hpp \ config.hpp \ dialogs.hpp \ display.hpp \ events.hpp \ filesystem.hpp \ font.hpp \ game_config.hpp \ game_errors.hpp \ game_events.hpp \ gamestatus.hpp \ gettext.hpp \ global.hpp \ halo.hpp \ help.hpp \ hotkeys.hpp \ image.hpp \ intro.hpp \ key.hpp \ language.hpp \ leader_list.hpp \ log.hpp \ map.hpp \ map_create.hpp \ map_label.hpp \ mapgen.hpp \ mapgen_dialog.hpp \ mouse.hpp \ multiplayer.hpp \ multiplayer_ui.hpp \ multiplayer_wait.hpp \ multiplayer_connect.hpp \ multiplayer_create.hpp \ multiplayer_lobby.hpp \ network.hpp \ network_worker.hpp \ pathfind.hpp \ pathutils.hpp \ playcampaign.hpp \ playlevel.hpp \ playturn.hpp \ preferences.hpp \ publish_campaign.hpp \ race.hpp \ random.hpp \ replay.hpp \ reports.hpp \ scoped_resource.hpp \ sdl_utils.hpp \ show_dialog.hpp \ sound.hpp \ statistics.hpp \ team.hpp \ terrain.hpp \ theme.hpp \ thread.hpp \ titlescreen.hpp \ tooltips.hpp \ tstring.hpp \ unit.hpp \ unit_display.hpp \ unit_types.hpp \ util.hpp \ variable.hpp \ video.hpp \ wassert.hpp \ wml_separators.hpp \ serialization/binary_or_text.hpp \ serialization/binary_wml.hpp \ serialization/parser.hpp \ serialization/preprocessor.hpp \ serialization/string_utils.hpp \ serialization/tokenizer.hpp \ widgets/button.hpp \ widgets/combo.hpp \ widgets/label.hpp \ widgets/menu.hpp \ widgets/progressbar.hpp \ widgets/scrollarea.hpp \ widgets/scrollbar.hpp \ widgets/scrollpane.hpp \ widgets/slider.hpp \ widgets/textbox.hpp \ widgets/widget.hpp \ zipios++/xcoll.hpp \ sdl_ttf/SDL_ttf.h \ wesconfig.h ############################################################################# # Editor # ############################################################################# wesnoth_editor_SOURCES = \ editor/editor.cpp \ editor/editor_layout.cpp \ editor/map_manip.cpp \ editor/editor_palettes.cpp \ editor/editor_main.cpp \ editor/editor_dialogs.cpp \ editor/editor_undo.cpp \ about.cpp \ actions.cpp \ animated.cpp \ astarnode.cpp \ builder.cpp \ cavegen.cpp \ checksum.cpp \ clipboard.cpp \ config.cpp \ cursor.cpp \ dialogs.cpp \ display.cpp \ events.cpp \ filechooser.cpp \ filesystem.cpp \ font.cpp \ game_config.cpp \ game_events.cpp \ gamestatus.cpp \ gettext.cpp \ halo.cpp \ help.cpp \ hotkeys.cpp \ image.cpp \ key.cpp \ language.cpp \ log.cpp \ map_create.cpp \ map_label.cpp \ map.cpp \ mapgen.cpp \ mapgen_dialog.cpp \ mouse.cpp \ network.cpp \ network_worker.cpp \ pathutils.cpp \ pathfind.cpp \ playturn.cpp \ preferences.cpp \ race.cpp \ random.cpp \ replay.cpp \ reports.cpp \ sdl_utils.cpp \ show_dialog.cpp \ sound.cpp \ statistics.cpp \ team.cpp \ terrain.cpp \ thread.cpp \ theme.cpp \ tooltips.cpp \ tstring.cpp \ unit.cpp \ unit_display.cpp \ unit_types.cpp \ variable.cpp \ video.cpp \ serialization/binary_or_text.cpp \ serialization/binary_wml.cpp \ serialization/parser.cpp \ serialization/preprocessor.cpp \ serialization/string_utils.cpp \ serialization/tokenizer.cpp \ widgets/button.cpp \ widgets/file_chooser.cpp \ widgets/label.cpp \ widgets/menu.cpp \ widgets/progressbar.cpp \ widgets/textbox.cpp \ widgets/scrollarea.cpp \ widgets/scrollbar.cpp \ widgets/slider.cpp \ widgets/widget.cpp \ zipios++/xcoll.cpp \ sdl_ttf/SDL_ttf.c \ editor/editor.hpp \ editor/editor_layout.hpp \ editor/map_manip.hpp \ editor/editor_palettes.hpp \ editor/editor_dialogs.hpp \ editor/editor_undo.hpp \ about.hpp \ actions.hpp \ ai.hpp \ animated.hpp \ array.hpp \ astarnode.hpp \ builder.hpp \ cavegen.hpp \ checksum.hpp \ clipboard.hpp \ config.hpp \ cursor.hpp \ dialogs.hpp \ display.hpp \ events.hpp \ filesystem.hpp \ font.hpp \ game_config.hpp \ game_events.hpp \ gamestatus.hpp \ gettext.hpp \ halo.hpp \ help.hpp \ hotkeys.hpp \ image.hpp \ intro.hpp \ key.hpp \ language.hpp \ log.hpp \ map_create.hpp \ map_label.hpp \ map.hpp \ mapgen.hpp \ mapgen_dialog.hpp \ mouse.hpp \ network.hpp \ network_worker.hpp \ pathfind.hpp \ pathutils.hpp \ playlevel.hpp \ playturn.hpp \ preferences.hpp \ race.hpp \ random.hpp \ replay.hpp \ reports.hpp \ sdl_utils.hpp \ show_dialog.hpp \ sound.hpp \ statistics.hpp \ team.hpp \ terrain.hpp \ theme.hpp \ thread.hpp \ tooltips.hpp \ tstring.hpp \ unit.hpp \ unit_display.hpp \ unit_types.hpp \ variable.hpp \ video.hpp \ serialization/binary_or_text.hpp \ serialization/binary_wml.hpp \ serialization/parser.hpp \ serialization/preprocessor.hpp \ serialization/string_utils.hpp \ serialization/tokenizer.hpp \ widgets/button.hpp \ widgets/file_chooser.hpp \ widgets/label.hpp \ widgets/menu.hpp \ widgets/progressbar.hpp \ widgets/textbox.hpp \ widgets/scrollarea.hpp \ widgets/scrollbar.hpp \ widgets/slider.hpp \ widgets/widget.hpp \ zipios++/xcoll.hpp \ sdl_ttf/SDL_ttf.h \ wesconfig.h ############################################################################# # Wesnothd Server # ############################################################################# wesnothd_SOURCES = \ server/game.cpp \ server/input_stream.cpp \ server/metrics.cpp \ server/player.cpp \ server/proxy.cpp \ server/server.cpp \ config.cpp \ filesystem.cpp \ game_config.cpp \ gettext.cpp \ log.cpp \ network.cpp \ network_worker.cpp \ thread.cpp \ tstring.cpp \ serialization/binary_wml.cpp \ serialization/parser.cpp \ serialization/string_utils.cpp \ serialization/tokenizer.cpp \ zipios++/xcoll.cpp \ server/game.hpp \ server/input_stream.hpp \ server/metrics.hpp \ server/player.hpp \ server/proxy.hpp \ config.hpp \ filesystem.hpp \ game_config.hpp \ gettext.hpp \ log.hpp \ network.hpp \ network_worker.hpp \ thread.hpp \ tstring.hpp \ serialization/binary_wml.hpp \ serialization/string_utils.hpp \ zipios++/xcoll.hpp wesnothd_LDADD = @SDL_NET_LIBS@ @SDL_LIBS@ $(LIBZIPIOS) $(LIBINTL) ############################################################################# # Campaign Server # ############################################################################# campaignd_SOURCES = \ campaign_server/campaign_server.cpp \ config.cpp \ filesystem.cpp \ game_config.cpp \ gettext.cpp \ log.cpp \ network.cpp \ network_worker.cpp \ publish_campaign.cpp \ thread.cpp \ tstring.cpp \ serialization/binary_wml.cpp \ serialization/parser.cpp \ serialization/string_utils.cpp \ serialization/tokenizer.cpp \ zipios++/xcoll.cpp \ config.hpp \ filesystem.hpp \ game_config.hpp \ gettext.hpp \ log.hpp \ network.hpp \ network_worker.hpp \ publish_campaign.hpp \ serialization/binary_wml.hpp \ serialization/parser.hpp \ serialization/preprocessor.hpp \ serialization/string_utils.hpp \ serialization/tokenizer.hpp \ thread.hpp \ tstring.hpp \ zipios++/xcoll.hpp campaignd_LDADD = @SDL_NET_LIBS@ @SDL_LIBS@ $(LIBZIPIOS) $(LIBINTL) ############################################################################# # Castle building helpers # ############################################################################# exploder_SOURCES = \ tools/exploder.cpp \ tools/exploder_utils.cpp \ tools/exploder_cutter.cpp \ tools/exploder_composer.cpp \ tools/dummy_video.cpp \ config.cpp \ filesystem.cpp \ game_config.cpp \ sdl_utils.cpp \ log.cpp \ tstring.cpp \ serialization/parser.cpp \ serialization/preprocessor.cpp \ serialization/string_utils.cpp \ serialization/tokenizer.cpp \ zipios++/xcoll.cpp \ tools/exploder_composer.hpp \ tools/exploder_cutter.hpp \ tools/exploder_utils.hpp \ serialization/parser.hpp \ serialization/preprocessor.hpp \ serialization/string_utils.hpp \ serialization/tokenizer.hpp \ zipios++/xcoll.hpp \ tstring.hpp \ gettext.cpp cutter_SOURCES = \ tools/cutter.cpp \ tools/exploder_utils.cpp \ tools/exploder_cutter.cpp \ tools/dummy_video.cpp \ config.cpp \ filesystem.cpp \ game_config.cpp \ sdl_utils.cpp \ log.cpp \ tstring.cpp \ serialization/parser.cpp \ serialization/preprocessor.cpp \ serialization/string_utils.cpp \ serialization/tokenizer.cpp \ zipios++/xcoll.cpp \ tools/exploder_composer.hpp \ tools/exploder_cutter.hpp \ tools/exploder_utils.hpp \ serialization/parser.hpp \ serialization/preprocessor.hpp \ serialization/string_utils.hpp \ serialization/tokenizer.hpp \ zipios++/xcoll.hpp \ tstring.hpp \ gettext.cpp exploder_LDADD = @SDL_IMAGE_LIBS@ @SDL_LIBS@ $(LIBZIPIOS) $(LIBINTL) $(PNG_LIBS) cutter_LDADD = @SDL_IMAGE_LIBS@ @SDL_LIBS@ $(LIBZIPIOS) $(LIBINTL) $(PNG_LIBS) AM_CXXFLAGS = -I $(srcdir)/sdl_ttf -I../intl -I$(top_srcdir)/intl @SDL_CFLAGS@ -DWESNOTH_PATH=\"$(pkgdatadir)\" \ -DLOCALEDIR=\"$(LOCALEDIR)\" -DHAS_RELATIVE_LOCALEDIR=$(HAS_RELATIVE_LOCALEDIR) -DFIFODIR=\"$(fifodir)\" AM_CFLAGS = -I $(srcdir)/sdl_ttf -I../intl -I$(top_srcdir)/intl @SDL_CFLAGS@ -DWESNOTH_PATH=\"$(pkgdatadir)\" \ -DLOCALEDIR=\"$(LOCALEDIR)\" -DHAS_RELATIVE_LOCALEDIR=$(HAS_RELATIVE_LOCALEDIR) if X11 CXXFLAGS += -D_X11 @X_CFLAGS@ CFLAGS += -D_X11 @X_CFLAGS@ endif if GCC CXXFLAGS += -fno-omit-frame-pointer CFLAGS += -fno-omit-frame-pointer endif CXXLD = $(LDPREFIX) $(CXX) THELIBS = $(SDL_IMAGE_LIBS) $(SDL_MIXER_LIBS) $(SDL_NET_LIBS) \ $(SDL_TTF_LIBS) $(SDL_LIBS) $(LIBZIPIOS) $(FREETYPE_LIBS) $(LIBINTL) wesnoth_LDADD = $(THELIBS) wesnoth_editor_LDADD = $(THELIBS) if STATIC LDFLAGS += -all-static endif #if STATIC #LIBS += -static -L/usr/lib -Wl,-rpath,/usr/lib -L/usr/X11R6/lib -lSDL_image \ #-lSDL_mixer -lSDL_net -lSDL_ttf -lSDL -lpthread -ldl -laudio -lXt -lX11 -lXext \ #-lSDL_image -lSDL_mixer -lSDL_net -lSDL_ttf -lstdc++ -lm -lSM -lICE -ljpeg \ #-lpng -lz -lvorbisfile -lvorbis -logg -lsmpeg -lfreetype #endif if SERVER install-exec-hook: mkdir -p -m 0700 $(DESTDIR)$(fifodir) chown $(serveruid):$(servergid) $(DESTDIR)$(fifodir) uninstall-hook: rm -rf $(DESTDIR)$(fifodir) else install-exec-hook: uninstall-hook: endif