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 misc/fpconv-license.txt \
38 docbook2documenters.xsl \
39 vikenumtypes.h.template \
40 vikenumtypes.c.template
42 BUILT_SOURCES += vikenumtypes.h vikenumtypes.c
44 $(BUILT_SOURCES): $(srcdir)/Makefile.am
49 libviking_a_SOURCES = \
53 curl_download.c curl_download.h \
54 compression.c compression.h \
56 degrees_converters.c degrees_converters.h \
58 viking.h mapcoord.h config.h \
59 vik_compat.c vik_compat.h \
60 viktrack.c viktrack.h \
61 vikwaypoint.c vikwaypoint.h \
62 clipboard.c clipboard.h \
64 gpsmapper.c gpsmapper.h \
65 gpspoint.c gpspoint.h \
69 fileutils.c fileutils.h \
70 file_magic.c file_magic.h \
76 download.c download.h \
78 vikenumtypes.c vikenumtypes.h \
79 viktreeview.c viktreeview.h \
80 viktrwlayer.c viktrwlayer.h \
81 viklayer.c viklayer.h \
82 viklayerspanel.c viklayerspanel.h \
83 vikcoordlayer.c vikcoordlayer.h \
84 vikstatus.c vikstatus.h \
85 vikwindow.c vikwindow.h \
86 vikviewport.c vikviewport.h \
87 vikaggregatelayer.c vikaggregatelayer.h \
88 vikgobjectbuilder.c vikgobjectbuilder.h \
89 vikgpslayer.c vikgpslayer.h \
90 vikgeoreflayer.c vikgeoreflayer.h \
91 vikfileentry.c vikfileentry.h \
92 vikgototool.c vikgototool.h \
93 vikgotoxmltool.c vikgotoxmltool.h \
95 viktrwlayer_export.c viktrwlayer_export.h \
96 viktrwlayer_tpwin.c viktrwlayer_tpwin.h \
97 viktrwlayer_wpwin.c viktrwlayer_wpwin.h \
98 viktrwlayer_propwin.c viktrwlayer_propwin.h \
99 viktrwlayer_analysis.c viktrwlayer_analysis.h \
100 viktrwlayer_tracklist.c viktrwlayer_tracklist.h \
101 viktrwlayer_waypointlist.c viktrwlayer_waypointlist.h \
102 vikrouting.c vikrouting.h \
103 vikroutingengine.c vikroutingengine.h \
104 vikroutingwebengine.c vikroutingwebengine.h \
105 vikutils.c vikutils.h \
106 toolbar.c toolbar.h toolbar.xml.h \
107 thumbnails.c thumbnails.h \
108 md5_hash.c md5_hash.h \
109 background.c background.h \
110 vikradiogroup.c vikradiogroup.h \
111 vikcoord.c vikcoord.h \
112 mapcache.c mapcache.h \
113 maputils.c maputils.h \
114 vikmapsource.c vikmapsource.h \
115 vikmapsourcedefault.c vikmapsourcedefault.h \
116 vikmapslayer.c vikmapslayer.h \
117 vikmapslayer_compat.c vikmapslayer_compat.h \
118 vikmaptype.c vikmaptype.h \
119 vikslippymapsource.c vikslippymapsource.h \
120 vikwmscmapsource.c vikwmscmapsource.h \
121 viktmsmapsource.c viktmsmapsource.h \
122 metatile.c metatile.h \
124 garminsymbols.c garminsymbols.h \
125 acquire.c acquire.h \
127 babel_ui.c babel_ui.h \
129 datasource_geojson.c \
130 datasource_gps.c datasource_gps.h \
131 datasource_routing.c \
133 datasource_bfilter.c \
134 datasource_wikipedia.c \
137 googlesearch.c googlesearch.h \
139 vikdemlayer.h vikdemlayer.c \
140 vikdatetime_edit_dialog.c vikdatetime_edit_dialog.h \
141 vikfilelist.c vikfilelist.h \
142 vikexttool.c vikexttool.h \
143 vikexttools.c vikexttools.h \
144 vikwebtool.c vikwebtool.h \
145 vikwebtoolcenter.c vikwebtoolcenter.h \
146 vikwebtoolbounds.c vikwebtoolbounds.h \
147 vikwebtoolformat.c vikwebtoolformat.h \
148 vikexttool_datasources.c vikexttool_datasources.h \
149 vikwebtool_datasource.c vikwebtool_datasource.h \
152 uibuilder.c uibuilder.h \
153 print-preview.c print-preview.h \
156 viklayer_defaults.c viklayer_defaults.h \
157 settings.c settings.h \
158 preferences.c preferences.h \
159 misc/fpconv.c misc/fpconv.h misc/powers.h \
160 misc/strtod.c misc/strtod.h \
161 misc/kdtree.c misc/kdtree.h
164 libviking_a_SOURCES += \
165 bingmapsource.c bingmapsource.h \
170 libviking_a_SOURCES += \
175 libviking_a_SOURCES += \
176 terraservermapsource.c terraservermapsource.h \
177 terraserver.c terraserver.h
181 libviking_a_SOURCES += \
186 libviking_a_SOURCES += \
188 osm-traces.c osm-traces.h \
189 datasource_osm_my_traces.c \
194 libviking_a_SOURCES += \
195 bluemarble.c bluemarble.h
199 libviking_a_SOURCES += \
200 geonames.c geonames.h \
201 geonamessearch.c geonamessearch.h
205 libviking_a_SOURCES += \
206 datasource_geotag.c \
207 geotag_exif.c geotag_exif.h \
208 viktrwlayer_geotag.c viktrwlayer_geotag.h
211 # libexif doesn't have write support of EXIF info - so reused this code from command line exif tool
213 libviking_a_SOURCES += \
214 libjpeg/jpeg-data.c libjpeg/jpeg-data.h \
215 libjpeg/jpeg-marker.c libjpeg/jpeg-marker.h
219 libviking_a_SOURCES += \
220 vikmapniklayer.c vikmapniklayer.h \
221 mapnik_interface.cpp mapnik_interface.h
224 viking_SOURCES = main.c
226 LDADD = $(noinst_LIBRARIES) $(PACKAGE_LIBS) @EXPAT_LIBS@ @LIBCURL@ icons/libicons.a
229 ../win32/installer/pixmaps/viking_icon.o
232 AM_CFLAGS = -Wall -g -D_GNU_SOURCE \
234 @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@
237 -DVIKING_DATADIR=\""$(pkgdatadir)"\" \
238 -DVIKING_SYSCONFDIR=\""$(sysconfdir)/$(PACKAGE)"\"
240 @INTLTOOL_DESKTOP_RULE@
242 desktopdir = $(datadir)/applications
243 desktop_in_files = viking.desktop.in
244 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
245 EXTRA_DIST += $(desktop_in_files)
247 CLEANFILES = $(BUILT_SOURCES) $(desktop_DATA)