]> git.street.me.uk Git - andy/viking.git/blobdiff - src/Makefile.am
Enable Open Waypoint Image via right click menu entry.
[andy/viking.git] / src / Makefile.am
index e598210e25a324f5130a1b6d3af7efd2973b2699..d3d40b46db0d32c2765cee81e21e09e75e0d5590 100644 (file)
@@ -7,14 +7,26 @@ bin_PROGRAMS = viking
 
 noinst_LIBRARIES = libviking.a
 
 
 noinst_LIBRARIES = libviking.a
 
-authors.h: ../AUTHORS
+authors.h: $(top_srcdir)/AUTHORS
        rm -f $@
        echo "/* Generated file. */" >> $@
        echo "const gchar *AUTHORS[] = {\\" >> $@
        sed -e "s/ \*\*.*//" -e 's/^/"/' -e 's/$$/",\\/' -e '$$s/\\$$//' $< >> $@
        echo "NULL};" >> $@
 
        rm -f $@
        echo "/* Generated file. */" >> $@
        echo "const gchar *AUTHORS[] = {\\" >> $@
        sed -e "s/ \*\*.*//" -e 's/^/"/' -e 's/$$/",\\/' -e '$$s/\\$$//' $< >> $@
        echo "NULL};" >> $@
 
-BUILT_SOURCES = authors.h
+if HAVE_XSLTPROC
+XP=@XP@
+documenters.h: $(top_srcdir)/help/C/viking.xml
+       $(XP) $(srcdir)/docbook2documenters.xsl $(top_srcdir)/help/C/viking.xml > $@
+else
+documenters.h:
+       rm -f $@
+       echo "/* Generated file. */" >> $@
+       echo "const gchar *DOCUMENTERS[] = {\\" >> $@
+       echo "NULL};" >> $@
+endif
+
+BUILT_SOURCES = authors.h documenters.h
 
 vikenumtypes.h: vikenumtypes.h.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
        (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.h.template $(ENUM_H_FILES)) > $@
 
 vikenumtypes.h: vikenumtypes.h.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
        (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.h.template $(ENUM_H_FILES)) > $@
@@ -23,6 +35,7 @@ vikenumtypes.c: vikenumtypes.c.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
        (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.c.template $(ENUM_H_FILES)) > $@
 
 EXTRA_DIST =                         \
        (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.c.template $(ENUM_H_FILES)) > $@
 
 EXTRA_DIST =                         \
+        docbook2documenters.xsl      \
         vikenumtypes.h.template      \
         vikenumtypes.c.template
 
         vikenumtypes.h.template      \
         vikenumtypes.c.template
 
@@ -34,6 +47,7 @@ ENUM_H_FILES = \
        vikviewport.h
 
 libviking_a_SOURCES = \
        vikviewport.h
 
 libviking_a_SOURCES = \
+       bbox.h \
        modules.h modules.c \
        curl_download.c curl_download.h \
        menu.xml.h \
        modules.h modules.c \
        curl_download.c curl_download.h \
        menu.xml.h \
@@ -48,6 +62,7 @@ libviking_a_SOURCES = \
        gpspoint.c gpspoint.h \
        file.c file.h \
        authors.h \
        gpspoint.c gpspoint.h \
        file.c file.h \
        authors.h \
+       documenters.h \
        dialog.c dialog.h \
        util.c util.h \
        download.c download.h \
        dialog.c dialog.h \
        util.c util.h \
        download.c download.h \
@@ -81,6 +96,8 @@ libviking_a_SOURCES = \
        vikmapslayer_compat.c vikmapslayer_compat.h \
        vikmaptype.c vikmaptype.h \
        vikslippymapsource.c vikslippymapsource.h \
        vikmapslayer_compat.c vikmapslayer_compat.h \
        vikmaptype.c vikmaptype.h \
        vikslippymapsource.c vikslippymapsource.h \
+       vikwmscmapsource.c vikwmscmapsource.h \
+       viktmsmapsource.c viktmsmapsource.h \
         gpx.c gpx.h \
        garminsymbols.c garminsymbols.h \
        acquire.c acquire.h \
         gpx.c gpx.h \
        garminsymbols.c garminsymbols.h \
        acquire.c acquire.h \
@@ -105,6 +122,12 @@ libviking_a_SOURCES = \
        print.c print.h \
        preferences.c preferences.h
 
        print.c print.h \
        preferences.c preferences.h
 
+if BING
+libviking_a_SOURCES += \
+       bingmapsource.c bingmapsource.h \
+       bing.c bing.h
+endif
+
 if GOOGLE
 libviking_a_SOURCES += \
        google.c google.h
 if GOOGLE
 libviking_a_SOURCES += \
        google.c google.h
@@ -138,6 +161,11 @@ libviking_a_SOURCES += \
        geonamessearch.c geonamessearch.h
 endif
 
        geonamessearch.c geonamessearch.h
 endif
 
+#if SPOTMAPS
+libviking_a_SOURCES += \
+       spotmaps.c spotmaps.h
+#endif
+
 viking_SOURCES = main.c
 
 LDADD           = libviking.a $(PACKAGE_LIBS) @EXPAT_LIBS@ @LIBCURL@ icons/libicons.a
 viking_SOURCES = main.c
 
 LDADD           = libviking.a $(PACKAGE_LIBS) @EXPAT_LIBS@ @LIBCURL@ icons/libicons.a
@@ -145,7 +173,6 @@ if REALTIME_GPS_TRACKING
 LDADD           += -lgps
 endif
 AM_CFLAGS              = -Wall -g -D_GNU_SOURCE \
 LDADD           += -lgps
 endif
 AM_CFLAGS              = -Wall -g -D_GNU_SOURCE \
-       $(DISABLE_DEPRECATED_CFLAGS) \
        $(PACKAGE_CFLAGS) \
        @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@
 
        $(PACKAGE_CFLAGS) \
        @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@