1 # This is the Makefile for the Viking GPS viewer program.
2 # This file is licensed through the GPL version 2 or newer.
8 noinst_LIBRARIES = libviking.a
10 authors.h: $(top_srcdir)/AUTHORS
12 echo "/* Generated file. */" >> $@
13 echo "const gchar *AUTHORS[] = {\\" >> $@
14 sed -e "s/ \*\*.*//" -e 's/^/"/' -e 's/$$/",\\/' -e '$$s/\\$$//' $< >> $@
18 documenters.h: $(top_srcdir)/help/C/viking.xml
19 $(XP) $(srcdir)/docbook2documenters.xsl $(top_srcdir)/help/C/viking.xml > $@
23 echo "/* Generated file. */" >> $@
24 echo "const gchar *DOCUMENTERS[] = {\\" >> $@
28 BUILT_SOURCES = authors.h documenters.h
30 vikenumtypes.h: vikenumtypes.h.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
31 (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.h.template $(ENUM_H_FILES)) > $@
33 vikenumtypes.c: vikenumtypes.c.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
34 (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.c.template $(ENUM_H_FILES)) > $@
37 docbook2documenters.xsl \
38 vikenumtypes.h.template \
39 vikenumtypes.c.template
41 BUILT_SOURCES += vikenumtypes.h vikenumtypes.c
43 $(BUILT_SOURCES): $(srcdir)/Makefile.am
48 libviking_a_SOURCES = \
52 curl_download.c curl_download.h \
53 compression.c compression.h \
55 degrees_converters.c degrees_converters.h \
57 viking.h mapcoord.h config.h \
58 vik_compat.c vik_compat.h \
59 viktrack.c viktrack.h \
60 vikwaypoint.c vikwaypoint.h \
61 clipboard.c clipboard.h \
63 gpsmapper.c gpsmapper.h \
64 gpspoint.c gpspoint.h \
68 fileutils.c fileutils.h \
74 download.c download.h \
76 vikenumtypes.c vikenumtypes.h \
77 viktreeview.c viktreeview.h \
78 viktrwlayer.c viktrwlayer.h \
79 viklayer.c viklayer.h \
80 viklayerspanel.c viklayerspanel.h \
81 vikcoordlayer.c vikcoordlayer.h \
82 vikstatus.c vikstatus.h \
83 vikwindow.c vikwindow.h \
84 vikviewport.c vikviewport.h \
85 vikaggregatelayer.c vikaggregatelayer.h \
86 vikgobjectbuilder.c vikgobjectbuilder.h \
87 vikgpslayer.c vikgpslayer.h \
88 vikgeoreflayer.c vikgeoreflayer.h \
89 vikfileentry.c vikfileentry.h \
90 vikgototool.c vikgototool.h \
91 vikgotoxmltool.c vikgotoxmltool.h \
93 viktrwlayer_export.c viktrwlayer_export.h \
94 viktrwlayer_tpwin.c viktrwlayer_tpwin.h \
95 viktrwlayer_wpwin.c viktrwlayer_wpwin.h \
96 viktrwlayer_propwin.c viktrwlayer_propwin.h \
97 viktrwlayer_analysis.c viktrwlayer_analysis.h \
98 viktrwlayer_tracklist.c viktrwlayer_tracklist.h \
99 viktrwlayer_waypointlist.c viktrwlayer_waypointlist.h \
100 vikrouting.c vikrouting.h \
101 vikroutingengine.c vikroutingengine.h \
102 vikroutingwebengine.c vikroutingwebengine.h \
103 vikutils.c vikutils.h \
104 toolbar.c toolbar.h toolbar.xml.h \
105 thumbnails.c thumbnails.h \
106 background.c background.h \
107 vikradiogroup.c vikradiogroup.h \
108 vikcoord.c vikcoord.h \
109 mapcache.c mapcache.h \
110 maputils.c maputils.h \
111 vikmapsource.c vikmapsource.h \
112 vikmapsourcedefault.c vikmapsourcedefault.h \
113 vikmapslayer.c vikmapslayer.h \
114 vikmapslayer_compat.c vikmapslayer_compat.h \
115 vikmaptype.c vikmaptype.h \
116 vikslippymapsource.c vikslippymapsource.h \
117 vikwmscmapsource.c vikwmscmapsource.h \
118 viktmsmapsource.c viktmsmapsource.h \
119 metatile.c metatile.h \
121 garminsymbols.c garminsymbols.h \
122 acquire.c acquire.h \
124 babel_ui.c babel_ui.h \
126 datasource_geojson.c \
127 datasource_gps.c datasource_gps.h \
128 datasource_routing.c \
130 datasource_bfilter.c \
131 datasource_wikipedia.c \
134 googlesearch.c googlesearch.h \
136 vikdemlayer.h vikdemlayer.c \
137 vikdatetime_edit_dialog.c vikdatetime_edit_dialog.h \
138 vikfilelist.c vikfilelist.h \
139 vikexttool.c vikexttool.h \
140 vikexttools.c vikexttools.h \
141 vikwebtool.c vikwebtool.h \
142 vikwebtoolcenter.c vikwebtoolcenter.h \
143 vikwebtoolbounds.c vikwebtoolbounds.h \
144 vikwebtoolformat.c vikwebtoolformat.h \
145 vikexttool_datasources.c vikexttool_datasources.h \
146 vikwebtool_datasource.c vikwebtool_datasource.h \
149 uibuilder.c uibuilder.h \
150 print-preview.c print-preview.h \
152 viklayer_defaults.c viklayer_defaults.h \
153 settings.c settings.h \
154 preferences.c preferences.h \
155 misc/strtod.c misc/strtod.h \
156 misc/kdtree.c misc/kdtree.h
159 libviking_a_SOURCES += \
160 bingmapsource.c bingmapsource.h \
165 libviking_a_SOURCES += \
170 libviking_a_SOURCES += \
171 terraservermapsource.c terraservermapsource.h \
172 terraserver.c terraserver.h
176 libviking_a_SOURCES += \
181 libviking_a_SOURCES += \
183 osm-traces.c osm-traces.h \
184 datasource_osm_my_traces.c \
189 libviking_a_SOURCES += \
190 bluemarble.c bluemarble.h
194 libviking_a_SOURCES += \
195 geonames.c geonames.h \
196 geonamessearch.c geonamessearch.h
200 libviking_a_SOURCES += \
201 datasource_geotag.c \
202 geotag_exif.c geotag_exif.h \
203 viktrwlayer_geotag.c viktrwlayer_geotag.h
206 # libexif doesn't have write support of EXIF info - so reused this code from command line exif tool
208 libviking_a_SOURCES += \
209 libjpeg/jpeg-data.c libjpeg/jpeg-data.h \
210 libjpeg/jpeg-marker.c libjpeg/jpeg-marker.h
214 libviking_a_SOURCES += \
215 vikmapniklayer.c vikmapniklayer.h \
216 mapnik_interface.cpp mapnik_interface.h
219 viking_SOURCES = main.c
221 LDADD = libviking.a $(PACKAGE_LIBS) @EXPAT_LIBS@ @LIBCURL@ icons/libicons.a
224 ../win32/installer/pixmaps/viking_icon.o
227 AM_CFLAGS = -Wall -g -D_GNU_SOURCE \
229 @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@
232 -DVIKING_DATADIR=\""$(pkgdatadir)"\" \
233 -DVIKING_SYSCONFDIR=\""$(sysconfdir)/$(PACKAGE)"\"
235 @INTLTOOL_DESKTOP_RULE@
237 desktopdir = $(datadir)/applications
238 desktop_in_files = viking.desktop.in
239 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
240 EXTRA_DIST += $(desktop_in_files)
242 CLEANFILES = $(BUILT_SOURCES) $(desktop_DATA)