Rework README.ruleset_civ2civ3 defense bonus description.
[freeciv.git] / tools / Makefile.am
blob771084ba9fafde5c42b7ad30aefa179f10189cfa
1 ## Process this file with automake to produce Makefile.in
3 MOCCMD=@MOCCMD@
5 include $(top_srcdir)/bootstrap/Makerules.mk
7 bin_PROGRAMS = 
9 if SERVER
10 if CLIENT
11 if FCMANUAL
12 bin_PROGRAMS += freeciv-manual
13 endif
14 endif
15 endif
17 if MODINST_CLI
18 bin_PROGRAMS += freeciv-mp-cli
19 endif
20 if MODINST_GTK2
21 bin_PROGRAMS += freeciv-mp-gtk2
22 endif
23 if MODINST_GTK3
24 bin_PROGRAMS += freeciv-mp-gtk3
25 endif
26 if MODINST_QT
27 bin_PROGRAMS += freeciv-mp-qt
28 endif
30 if MODINST
31 noinst_LTLIBRARIES = libfcmp.la
32 endif
34 common_cppflags = \
35         -I$(top_srcdir)/utility \
36         -I$(top_srcdir)/common \
37         -I$(top_srcdir)/server \
38         -I$(top_srcdir)/client \
39         -I$(top_srcdir)/client/include
41 AM_CPPFLAGS = $(common_cppflags)
43 if MINGW32
44 MPICON = $(top_builddir)/win32/mpicon.o
45 else
46 desktopfiledir = @DESKTOPDIR@
47 desktopfile_DATA =
49 appdatafiledir = @APPDATADIR@
50 appdatafile_DATA =
52 if MODINST_GTK2
53 desktopfile_DATA += \
54         freeciv-mp-gtk2.desktop
55 appdatafile_DATA += \
56         freeciv-mp-gtk2.appdata.xml
57 endif
59 if MODINST_GTK3
60 desktopfile_DATA += \
61         freeciv-mp-gtk3.desktop
62 appdatafile_DATA += \
63         freeciv-mp-gtk3.appdata.xml
64 endif
66 if MODINST_QT
67 desktopfile_DATA += \
68         freeciv-mp-qt.desktop
69 appdatafile_DATA += \
70         freeciv-mp-qt.appdata.xml
71 endif
73 endif
75 if FCMANUAL
76 freeciv_manual_SOURCES = \
77                 civmanual.c
79 freeciv_manual_LDFLAGS = $(GGZDMOD_LDFLAGS)
81 # This is a bit of a hack.  The program links in with the server lib
82 # but also uses some files from the client.
83 freeciv_manual_LDADD = \
84  $(top_builddir)/server/libfreeciv-srv.la \
85  ../client/helpdata.lo \
86  $(top_builddir)/common/libfreeciv.la \
87  $(INTLLIBS)  $(MAPIMG_WAND_LIBS) \
88  $(SERVER_LIBS) $(LIB_GGZDMOD)
89 endif
91 libfcmp_la_SOURCES = \
92                 download.c      \
93                 download.h      \
94                 modinst.c       \
95                 modinst.h       \
96                 mpcmdline.c     \
97                 mpcmdline.h     \
98                 mpdb.c          \
99                 mpdb.h
101 if MODINST_CLI
102 freeciv_mp_cli_CPPFLAGS = $(common_cppflags) $(mp_cli_cflags)
104 freeciv_mp_cli_SOURCES = mpcli.c
106 freeciv_mp_cli_LDFLAGS = $(mp_cli_ldflags)
108 freeciv_mp_cli_LDADD = \
109                 libfcmp.la \
110                 $(top_builddir)/common/libfreeciv.la \
111                 $(MAPIMG_WAND_LIBS) \
112                 $(mp_cli_libs)
113 endif
115 if MODINST_GTK2
116 freeciv_mp_gtk2_CPPFLAGS = $(common_cppflags) $(mp_gtk2_cflags)
118 freeciv_mp_gtk2_SOURCES = mpgui_gtk2.c
120 freeciv_mp_gtk2_LDFLAGS = $(mp_gtk2_ldflags)
122 freeciv_mp_gtk2_LDADD = \
123                 libfcmp.la \
124                 $(top_builddir)/common/libfreeciv.la \
125                 $(MAPIMG_WAND_LIBS) \
126                 $(mp_gtk2_libs) \
127                 $(MPICON)
128 endif
130 if MODINST_GTK3
131 freeciv_mp_gtk3_CPPFLAGS = $(common_cppflags) $(mp_gtk3_cflags)
133 freeciv_mp_gtk3_SOURCES = mpgui_gtk3.c
135 freeciv_mp_gtk3_LDFLAGS = $(mp_gtk3_ldflags)
137 freeciv_mp_gtk3_LDADD = \
138                 libfcmp.la \
139                 $(top_builddir)/common/libfreeciv.la \
140                 $(MAPIMG_WAND_LIBS) \
141                 $(mp_gtk3_libs) \
142                 $(MPICON)
143 endif
145 if MODINST_QT
147 MOC_FILES = \
148         meta_mpgui_qt.cpp \
149         meta_mpgui_qt_worker.cpp
151 freeciv_mp_qt_CPPFLAGS = $(common_cppflags) $(mp_qt_cppflags)
152 freeciv_mp_qt_CXXFLAGS = $(mp_qt_cxxflags)
154 freeciv_mp_qt_SOURCES = \
155         mpgui_qt.cpp    \
156         mpgui_qt.h      \
157         mpgui_qt_worker.cpp \
158         mpgui_qt_worker.h
160 nodist_freeciv_mp_qt_SOURCES = $(MOC_FILES)
162 CLEANFILES = $(MOC_FILES)
164 freeciv_mp_qt_LDADD = \
165                 libfcmp.la \
166                 $(top_builddir)/common/libfreeciv.la \
167                 $(MAPIMG_WAND_LIBS) \
168                 $(mp_qt_libs) \
169                 $(MPICON)
170 endif