2 # This file is part of mapper
4 # Copyright (C) 2007 Kaj-Michael Lang
5 # Copyright (C) 2006 John Costigan.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE
24 bin_PROGRAMS = mapper osm2db
26 mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) \
27 $(OSSO_CFLAGS) $(CONIC_CFLAGS) \
28 $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAGS) $(OSSO_HELP_CFLAGS) \
29 $(GNOME_VFS_CFLAGS) $(GCONF_CFLAGS) \
30 $(LIBXML2_CFLAGS) $(GSTREAMER_CFLAGS) $(ESPEAK_CFLAGS) \
31 $(SQLITE_CFLAGS) $(LIBCURL_CFLAGS) \
33 $(BLUEZ_CFLAGS) $(LIBGPSBT_CFLAGS) \
36 mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) \
37 $(OSSO_LIBS) $(CONIC_LIBS) \
38 $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(OSSO_HELP_LIBS) \
39 $(GNOME_VFS_LIBS) $(GCONF_LIBS) \
40 $(LIBXML2_LIBS) $(GSTREAMER_LIBS) $(ESPEAK_LIBS) \
41 $(SQLITE_LIBS) $(LIBCURL_LIBS) \
42 $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) \
43 $(GYPSY_LIBS) $(LIBGPSBT_LIBS) \
44 -lm libgtkgps.la libosmdb.la libmappergps.la
114 osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
115 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm libosmdb.la
116 osm2db_SOURCES = osm.c osm.h
118 lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la
120 libmappergps_la_SOURCES = \
129 if HAVE_BLUEZ_DBUS_BT
130 libmappergps_la_SOURCES+=gps-bluetooth-bluez.c gps-bluetooth-bluez-marshal.c
133 libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
134 libmappergps_la_LIBADD = $(GLIBGTK_LIBS)
135 libmappergps_la_LDFLAGS = -lm -no-undefined
137 if HAVE_HILDON_DBUS_BT
138 libmappergps_la_SOURCES+=gps-bluetooth-maemo.c gps-bluetooth-maemo-marshal.c
139 libmappergps_la_CFLAGS+= $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAGS) $(LIBGPSBT_CFLAGS)
140 libmappergps_la_LIBADD+= $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(LIBGPSBT_LIBS)
143 libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c \
144 gtkgps.h gtkcompass.h gpsdata.h
145 libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
146 libgtkgps_la_LIBADD = $(GLIBGTK_LIBS)
147 libgtkgps_la_LDFLAGS = -lm -no-undefined
149 libosmdb_la_SOURCES = db.c osm-db.c osm-db-import.c latlon.c \
150 db.h osm-db.h osm-db-import.h latlon.h \
151 osm-sql-tables.h osm.h settings.h
152 libosmdb_la_CFLAGS = $(GLIBGTK_CFLAGS) $(SQLITE_CFLAGS) $(defines)
153 libosmdb_la_LIBADD = $(GLIBGTK_LIBS) $(SQLITE_LIBS) $(BZ2_LIBS)
154 libosmdb_la_LDFLAGS = -lm -no-undefined
156 EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list
158 BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c \
159 gps-bluetooth-bluez-marshal.h gps-bluetooth-bluez-marshal.c
161 gps-bluetooth-maemo-marshal.h: gps-bluetooth-maemo-marshal.list
162 glib-genmarshal --prefix _bt_maemo --header $< > $@
164 gps-bluetooth-maemo-marshal.c: gps-bluetooth-maemo-marshal.list
165 glib-genmarshal --prefix _bt_maemo --body $< > $@
167 gps-bluetooth-bluez-marshal.h: gps-bluetooth-bluez-marshal.list
168 glib-genmarshal --prefix _bt_bluez --header $< > $@
170 gps-bluetooth-bluez-marshal.c: gps-bluetooth-bluez-marshal.list
171 glib-genmarshal --prefix _bt_bluez --body $< > $@
173 CLEANFILES = $(BUILT_SOURCES)