]> err.no Git - mapper/commitdiff
Support out-of-tree builds
authorTollef Fog Heen <tfheen@err.no>
Sun, 24 Aug 2008 09:31:09 +0000 (11:31 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 24 Aug 2008 09:31:09 +0000 (11:31 +0200)
libs/libgtkgps/Makefile.am
libs/libgtkmap/Makefile.am
src/Makefile.am

index 044c4326627d568e844e2991fc1f6fd581018621..0d4380ab0bf4739b90efe1bb6ad7a4dd5ea0533e 100644 (file)
 
 INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE
 
-TOPDIR=../../src
-
 lib_LTLIBRARIES = libgtkgps.la
 
 libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c \
                                           gtkgps.h gtkcompass.h
-libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
+libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines) -I$(top_srcdir)/src
 libgtkgps_la_LIBADD = $(GLIBGTK_LIBS)
 libgtkgps_la_LDFLAGS = -lm -no-undefined
index 42e8c7406857f2480bece41be6540e73d98ca48d..ac48e40c7c7db443d079db2bcb9d17130fcf7287 100644 (file)
@@ -20,7 +20,7 @@
 
 INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE
 
-TOPDIR=../../src
+TOPDIR=$(top_srcdir)/src
 
 bin_PROGRAMS = map_widget_test
 lib_LTLIBRARIES = libgtkmap.la
@@ -30,13 +30,13 @@ libgtkmap_la_SOURCES = gtkmap.c gtkmap.h \
        path.c path.h position.c position.h \
        tilerepo.c tilerepo.h \
        $(TOPDIR)/latlon.c $(TOPDIR)/image-cache.c
-libgtkmap_la_CFLAGS = $(GLIBGTK_CFLAGS) $(GNOME_VFS_CFLAGS) $(LIBXML2_CFLAGS) $(GTKGLEXT_CFLAGS) $(LIBCURL_CFLAGS) $(defines) 
+libgtkmap_la_CFLAGS = $(GLIBGTK_CFLAGS) $(GNOME_VFS_CFLAGS) $(LIBXML2_CFLAGS) $(GTKGLEXT_CFLAGS) $(LIBCURL_CFLAGS) $(defines) -I$(top_srcdir)/src
 libgtkmap_la_LIBADD = $(GLIBGTK_LIBS) $(GNOME_VFS_LIBS) $(LIBXML2_LIBS) $(GTKGLEXT_LIBS) $(LIBCURL_LIBS)
 libgtkmap_la_LDFLAGS = -lm -no-undefined
 
 map_widget_test_SOURCES = map-widget-test.c
 map_widget_test_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) -lm libgtkmap.la
-map_widget_test_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS)
+map_widget_test_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS) -I$(top_srcdir)/src
 
 EXTRA_DIST = gtkmap-marshal.list
 BUILT_SOURCES = gtkmap-marshal.c gtkmap-marshal.h
index 3761b0687544e239a1704ebd5a62466dfa94fdc3..31c937c018129b1828251e258fa7681ce0e6364a 100644 (file)
@@ -19,7 +19,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
 
-INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE -I../libs/libgtkmap/ -I../libs/libgtkgps
+INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE -I$(top_srcdir)/libs/libgtkmap/ -I$(top_srcdir)/libs/libgtkgps
 
 bin_PROGRAMS = mapper osm2db
 
@@ -120,7 +120,7 @@ libmappergps_la_SOURCES = \
        gps-nmea-parse.h \
        path.h
 
-libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines) 
+libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
 libmappergps_la_LIBADD = $(GLIBGTK_LIBS)
 libmappergps_la_LDFLAGS = -lm -no-undefined