]> git.street.me.uk Git - andy/viking.git/blob - src/Makefile.am
Enable i18n on 'Routing' preferences tab name.
[andy/viking.git] / src / Makefile.am
1 # This is the Makefile for the Viking GPS viewer program.
2 # This file is licensed through the GPL version 2 or newer.
3
4 SUBDIRS = icons
5
6 bin_PROGRAMS = viking
7
8 noinst_LIBRARIES = libviking.a
9
10 authors.h: $(top_srcdir)/AUTHORS
11         rm -f $@
12         echo "/* Generated file. */" >> $@
13         echo "const gchar *AUTHORS[] = {\\" >> $@
14         sed -e "s/ \*\*.*//" -e 's/^/"/' -e 's/$$/",\\/' -e '$$s/\\$$//' $< >> $@
15         echo "NULL};" >> $@
16
17 if HAVE_XSLTPROC
18 documenters.h: $(top_srcdir)/help/C/viking.xml
19         $(XP) $(srcdir)/docbook2documenters.xsl $(top_srcdir)/help/C/viking.xml > $@
20 else
21 documenters.h:
22         rm -f $@
23         echo "/* Generated file. */" >> $@
24         echo "const gchar *DOCUMENTERS[] = {\\" >> $@
25         echo "NULL};" >> $@
26 endif
27
28 BUILT_SOURCES = authors.h documenters.h
29
30 vikenumtypes.h: vikenumtypes.h.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
31         (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.h.template $(ENUM_H_FILES)) > $@
32
33 vikenumtypes.c: vikenumtypes.c.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
34         (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.c.template $(ENUM_H_FILES)) > $@
35
36 EXTRA_DIST = \
37         docbook2documenters.xsl \
38         vikenumtypes.h.template \
39         vikenumtypes.c.template
40
41 BUILT_SOURCES += vikenumtypes.h vikenumtypes.c
42
43 $(BUILT_SOURCES): $(srcdir)/Makefile.am
44
45 ENUM_H_FILES = \
46         vikviewport.h
47
48 libviking_a_SOURCES = \
49         bbox.h \
50         modules.h modules.c \
51         curl_download.c curl_download.h \
52         compression.c compression.h \
53         menu.xml.h \
54         degrees_converters.c degrees_converters.h \
55         globals.c globals.h \
56         viking.h mapcoord.h config.h \
57         viktrack.c viktrack.h \
58         vikwaypoint.c vikwaypoint.h \
59         clipboard.c clipboard.h \
60         coords.c coords.h \
61         gpsmapper.c gpsmapper.h \
62         gpspoint.c gpspoint.h \
63         geojson.c geojson.h \
64         dir.c dir.h \
65         file.c file.h \
66         fileutils.c fileutils.h \
67         authors.h \
68         documenters.h \
69         dialog.c dialog.h \
70         util.c util.h \
71         download.c download.h \
72         jpg.c jpg.h \
73         vikenumtypes.c vikenumtypes.h \
74         viktreeview.c viktreeview.h \
75         viktrwlayer.c viktrwlayer.h \
76         viklayer.c viklayer.h \
77         viklayerspanel.c viklayerspanel.h \
78         vikcoordlayer.c vikcoordlayer.h \
79         vikstatus.c vikstatus.h \
80         vikwindow.c vikwindow.h \
81         vikviewport.c vikviewport.h \
82         vikaggregatelayer.c vikaggregatelayer.h \
83         vikgobjectbuilder.c vikgobjectbuilder.h \
84         vikgpslayer.c vikgpslayer.h \
85         vikgeoreflayer.c vikgeoreflayer.h \
86         vikfileentry.c vikfileentry.h \
87         vikgototool.c vikgototool.h \
88         vikgotoxmltool.c vikgotoxmltool.h \
89         vikgoto.c vikgoto.h \
90         viktrwlayer_export.c viktrwlayer_export.h \
91         viktrwlayer_tpwin.c viktrwlayer_tpwin.h \
92         viktrwlayer_wpwin.c viktrwlayer_wpwin.h \
93         viktrwlayer_propwin.c viktrwlayer_propwin.h \
94         viktrwlayer_analysis.c viktrwlayer_analysis.h \
95         viktrwlayer_tracklist.c viktrwlayer_tracklist.h \
96         viktrwlayer_waypointlist.c viktrwlayer_waypointlist.h \
97         vikrouting.c vikrouting.h \
98         vikroutingengine.c vikroutingengine.h \
99         vikroutingwebengine.c vikroutingwebengine.h \
100         vikutils.c vikutils.h \
101         thumbnails.c thumbnails.h \
102         background.c background.h \
103         vikradiogroup.c vikradiogroup.h \
104         vikcoord.c vikcoord.h \
105         mapcache.c mapcache.h \
106         maputils.c maputils.h \
107         vikmapsource.c vikmapsource.h \
108         vikmapsourcedefault.c vikmapsourcedefault.h \
109         vikmapslayer.c vikmapslayer.h \
110         vikmapslayer_compat.c vikmapslayer_compat.h \
111         vikmaptype.c vikmaptype.h \
112         vikslippymapsource.c vikslippymapsource.h \
113         vikwmscmapsource.c vikwmscmapsource.h \
114         viktmsmapsource.c viktmsmapsource.h \
115         gpx.c gpx.h \
116         garminsymbols.c garminsymbols.h \
117         acquire.c acquire.h \
118         babel.c babel.h \
119         babel_ui.c babel_ui.h \
120         datasource_file.c \
121         datasource_geojson.c \
122         datasource_gps.c datasource_gps.h \
123         datasource_routing.c \
124         datasource_gc.c \
125         datasource_bfilter.c \
126         datasource_wikipedia.c \
127         datasource_url.c \
128         datasources.h \
129         googlesearch.c googlesearch.h \
130         dem.c dem.h \
131         vikdemlayer.h vikdemlayer.c \
132         vikdatetime_edit_dialog.c vikdatetime_edit_dialog.h \
133         vikfilelist.c vikfilelist.h \
134         vikexttool.c vikexttool.h \
135         vikexttools.c vikexttools.h \
136         vikwebtool.c vikwebtool.h \
137         vikwebtoolcenter.c vikwebtoolcenter.h \
138         vikwebtoolbounds.c vikwebtoolbounds.h \
139         vikwebtoolformat.c vikwebtoolformat.h \
140         vikexttool_datasources.c vikexttool_datasources.h \
141         vikwebtool_datasource.c vikwebtool_datasource.h \
142         dems.c dems.h \
143         srtm_continent.c \
144         uibuilder.c uibuilder.h \
145         print-preview.c print-preview.h \
146         print.c print.h \
147         viklayer_defaults.c viklayer_defaults.h \
148         settings.c settings.h \
149         preferences.c preferences.h \
150         misc/strtod.c misc/strtod.h \
151         misc/kdtree.c misc/kdtree.h
152
153 if BING
154 libviking_a_SOURCES += \
155         bingmapsource.c bingmapsource.h \
156         bing.c bing.h
157 endif
158
159 if GOOGLE
160 libviking_a_SOURCES += \
161         google.c google.h
162 endif
163
164 if TERRASERVER
165 libviking_a_SOURCES += \
166         terraservermapsource.c terraservermapsource.h \
167         terraserver.c terraserver.h
168 endif
169
170 if EXPEDIA
171 libviking_a_SOURCES += \
172         expedia.c expedia.h
173 endif
174
175 if OPENSTREETMAP
176 libviking_a_SOURCES += \
177         osm.c osm.h \
178         osm-traces.c osm-traces.h \
179         datasource_osm_my_traces.c \
180         datasource_osm.c
181 endif
182
183 if BLUEMARBLE
184 libviking_a_SOURCES += \
185         bluemarble.c bluemarble.h
186 endif
187
188 if GEONAMES
189 libviking_a_SOURCES += \
190         geonames.c geonames.h \
191         geonamessearch.c geonamessearch.h
192 endif
193
194 if GEOTAG
195 libviking_a_SOURCES += \
196         datasource_geotag.c \
197         geotag_exif.c geotag_exif.h \
198         viktrwlayer_geotag.c viktrwlayer_geotag.h \
199         libjpeg/jpeg-data.c libjpeg/jpeg-data.h \
200         libjpeg/jpeg-marker.c libjpeg/jpeg-marker.h
201 endif
202
203 viking_SOURCES = main.c
204
205 LDADD           = libviking.a $(PACKAGE_LIBS) @EXPAT_LIBS@ @LIBCURL@ icons/libicons.a
206 if WINDOWS
207 LDADD += \
208         ../win32/installer/pixmaps/viking_icon.o
209 endif
210
211 AM_CFLAGS               = -Wall -g -D_GNU_SOURCE \
212         $(PACKAGE_CFLAGS) \
213         @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@
214 AM_CPPFLAGS             = \
215         -DVIKING_DATADIR=\""$(pkgdatadir)"\" \
216         -DVIKING_SYSCONFDIR=\""$(sysconfdir)/$(PACKAGE)"\"
217
218 @INTLTOOL_DESKTOP_RULE@
219
220 desktopdir = $(datadir)/applications
221 desktop_in_files = viking.desktop.in
222 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
223 EXTRA_DIST += $(desktop_in_files)
224
225 CLEANFILES = $(BUILT_SOURCES) $(desktop_DATA)