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 = \
51 curl_download.c curl_download.h \
52 compression.c compression.h \
54 degrees_converters.c degrees_converters.h \
56 viking.h mapcoord.h config.h \
57 viktrack.c viktrack.h \
58 vikwaypoint.c vikwaypoint.h \
59 clipboard.c clipboard.h \
61 gpsmapper.c gpsmapper.h \
62 gpspoint.c gpspoint.h \
66 fileutils.c fileutils.h \
71 download.c download.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 \
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 \
116 garminsymbols.c garminsymbols.h \
117 acquire.c acquire.h \
119 babel_ui.c babel_ui.h \
121 datasource_geojson.c \
122 datasource_gps.c datasource_gps.h \
123 datasource_routing.c \
125 datasource_bfilter.c \
126 datasource_wikipedia.c \
129 googlesearch.c googlesearch.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 vikexttool_datasources.c vikexttool_datasources.h \
140 vikwebtool_datasource.c vikwebtool_datasource.h \
143 uibuilder.c uibuilder.h \
144 print-preview.c print-preview.h \
146 viklayer_defaults.c viklayer_defaults.h \
147 settings.c settings.h \
148 preferences.c preferences.h \
149 misc/strtod.c misc/strtod.h \
150 misc/kdtree.c misc/kdtree.h
153 libviking_a_SOURCES += \
154 bingmapsource.c bingmapsource.h \
159 libviking_a_SOURCES += \
164 libviking_a_SOURCES += \
165 terraservermapsource.c terraservermapsource.h \
166 terraserver.c terraserver.h
170 libviking_a_SOURCES += \
175 libviking_a_SOURCES += \
177 osm-traces.c osm-traces.h \
178 datasource_osm_my_traces.c \
183 libviking_a_SOURCES += \
184 bluemarble.c bluemarble.h
188 libviking_a_SOURCES += \
189 geonames.c geonames.h \
190 geonamessearch.c geonamessearch.h
194 libviking_a_SOURCES += \
195 datasource_geotag.c \
196 geotag_exif.c geotag_exif.h \
197 viktrwlayer_geotag.c viktrwlayer_geotag.h \
198 libjpeg/jpeg-data.c libjpeg/jpeg-data.h \
199 libjpeg/jpeg-marker.c libjpeg/jpeg-marker.h
202 viking_SOURCES = main.c
204 LDADD = libviking.a $(PACKAGE_LIBS) @EXPAT_LIBS@ @LIBCURL@ icons/libicons.a
207 ../win32/installer/pixmaps/viking_icon.o
210 AM_CFLAGS = -Wall -g -D_GNU_SOURCE \
212 @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@
214 -DVIKING_DATADIR=\""$(pkgdatadir)"\" \
215 -DVIKING_SYSCONFDIR=\""$(sysconfdir)/$(PACKAGE)"\"
217 @INTLTOOL_DESKTOP_RULE@
219 desktopdir = $(datadir)/applications
220 desktop_in_files = viking.desktop.in
221 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
222 EXTRA_DIST += $(desktop_in_files)
224 CLEANFILES = $(BUILT_SOURCES) $(desktop_DATA)