]> err.no Git - mapper/commitdiff
GpsWidgets: Move from src/ to libs/libgtkgps
authorKaj-Michael Lang <milang@tal.org>
Thu, 5 Jun 2008 09:05:34 +0000 (12:05 +0300)
committerKaj-Michael Lang <milang@tal.org>
Thu, 5 Jun 2008 09:05:34 +0000 (12:05 +0300)
libs/Makefile.am
libs/libgtkgps/Makefile.am
libs/libgtkgps/gtkcompass.c [moved from src/gtkcompass.c with 100% similarity]
libs/libgtkgps/gtkcompass.h [moved from src/gtkcompass.h with 100% similarity]
libs/libgtkgps/gtkgps.c [moved from src/gtkgps.c with 100% similarity]
libs/libgtkgps/gtkgps.h [moved from src/gtkgps.h with 100% similarity]
src/Makefile.am

index 710bc587c992439c1e5970cb2ba48941f78d0582..a013ff118f77e8b8e059f2adcf07e9bc9139f5df 100644 (file)
@@ -18,4 +18,4 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
 
-SUBDIRS = libgtkmap libgtkgps
+SUBDIRS = libgtkgps libgtkmap
index 8b137891791fe96927ad78e64b0aad7bded08bdc..044c4326627d568e844e2991fc1f6fd581018621 100644 (file)
@@ -1 +1,31 @@
+#
+# This file is part of mapper
+#
+# Copyright (C) 2008 Kaj-Michael Lang
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
 
+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_LIBADD = $(GLIBGTK_LIBS)
+libgtkgps_la_LDFLAGS = -lm -no-undefined
similarity index 100%
rename from src/gtkcompass.c
rename to libs/libgtkgps/gtkcompass.c
similarity index 100%
rename from src/gtkcompass.h
rename to libs/libgtkgps/gtkcompass.h
similarity index 100%
rename from src/gtkgps.c
rename to libs/libgtkgps/gtkgps.c
similarity index 100%
rename from src/gtkgps.h
rename to libs/libgtkgps/gtkgps.h
index 15e30216a2dc74b01ce800561916eb094ee6fa24..802e943653d16d6027019fd2b1ec04d9d0958d7f 100644 (file)
@@ -41,7 +41,7 @@ mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) \
        $(SQLITE_LIBS) $(LIBCURL_LIBS) \
        $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) \
        $(GYPSY_LIBS) $(LIBGPSBT_LIBS) $(HAL_LIBS)\
-       -lm libgtkgps.la libosmdb.la libmappergps.la ../libs/libgtkmap/libgtkmap.la
+       -lm ../libs/libgtkgps/libgtkgps.la libosmdb.la libmappergps.la ../libs/libgtkmap/libgtkmap.la
 
 mapper_SOURCES = \
        announcements.c \
@@ -118,7 +118,7 @@ osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm libosmdb.la
 osm2db_SOURCES = osm.c osm.h
 
-lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la
+lib_LTLIBRARIES = libosmdb.la libmappergps.la
 
 libmappergps_la_SOURCES = \
        bluetooth-scan.h \
@@ -150,12 +150,6 @@ libmappergps_la_CFLAGS+= $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAG
 libmappergps_la_LIBADD+= $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(LIBGPSBT_LIBS)
 endif
 
-libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c \
-                                          gtkgps.h gtkcompass.h gpsdata.h
-libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
-libgtkgps_la_LIBADD = $(GLIBGTK_LIBS)
-libgtkgps_la_LDFLAGS = -lm -no-undefined
-
 libosmdb_la_SOURCES = db.c osm-db.c osm-db-import.c latlon.c \
                                          db.h osm-db.h osm-db-import.h latlon.h \
                                          osm-sql-tables.h osm.h settings.h