]> err.no Git - mapper/commitdiff
Build the gps widgets as a shared lib
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 26 Sep 2007 12:12:36 +0000 (15:12 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 26 Sep 2007 12:12:36 +0000 (15:12 +0300)
src/Makefile.am

index b690f4b0963b397bcc6b8325a193237ff71bf04e..13abe4a79fb8fe7a01c9e31fba335ae7bb609d5c 100644 (file)
@@ -29,7 +29,7 @@ mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(OSSO_CFLAGS) $(HILDON_CFLAGS) $(HILDONFM_CFL
 
 mapper_LDADD = $(GLIBGTK_LIBS) $(OSSO_LIBS) $(HILDON_LIBS) $(HILDONFM_LIBS) \
        $(GNOME_VFS_LIBS) $(GCONF_LIBS) $(LIBXML2_LIBS) $(GSTREAMER_LIBS) $(ESPEAK_LIBS) \
-       $(SQLITE_LIBS) $(LIBCURL_LIBS) $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) -lm
+       $(SQLITE_LIBS) $(LIBCURL_LIBS) $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) -lm libgtkgps.la
 
 mapper_SOURCES = utils.c \
        db.c file.c \
@@ -72,6 +72,16 @@ osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm
 
 osm2db_SOURCES = latlon.c osm.c
 
+lib_LTLIBRARIES = libgtkgps.la
+
+libgtkgps_la_SOURCES = gtkgps.c
+
+libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
+libgtkgps_la_LIBADD = $(GLIBGTK_LIBS)
+libgtkgps_la_LDFLAGS = -lm -no-undefined
+
+# libgtkgpsheading_la_SOURCES = gtkgpsheading.c
+
 EXTRA_DIST = bt-maemo-marshal.list
 
 BUILT_SOURCES = bt-maemo-marshal.h bt-maemo-marshal.c