]> err.no Git - mapper/blob - src/Makefile.am
More map widget integration changes
[mapper] / src / Makefile.am
1 #
2 # This file is part of mapper
3 #
4 # Copyright (C) 2007 Kaj-Michael Lang
5 # Copyright (C) 2006 John Costigan.
6 #
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.
11 #
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.
16 #
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.
20 #
21
22 INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE -I../libs/libgtkmap/ -I../libs/libgtkgps
23
24 bin_PROGRAMS = mapper osm2db
25
26 mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_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) \
32         $(DBUS_GLIB_CFLAGS) \
33         $(BLUEZ_CFLAGS) $(LIBGPSBT_CFLAGS) \
34         $(GYPSY_CFLAGS) $(HAL_CFLAGS)
35
36 mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_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) $(HAL_LIBS)\
44         -lm ../libs/libgtkgps/libgtkgps.la libosmdb.la libmappergps.la ../libs/libgtkmap/libgtkmap.la
45
46 mapper_SOURCES = \
47         announcements.c \
48         announcements.h \
49         cb.c \
50         cb.h \
51         config-gconf.c \
52         config-gconf.h \
53         dialogs.c \
54         dialogs.h \
55         file.c \
56         file.h \
57         filter.c \
58         filter.h \
59         filter-gui.c \
60         filter-gui.h \
61         import-gui.c \
62         gps-browse.c \
63         gps-panels.c \
64         gps-panels.h \
65         gps-conn.c \
66         gpx.c \
67         gpx.h \
68         help.c \
69         help.h \
70         hildon-mapper.h \
71         hildon-wrappers.c \
72         hildon-wrappers.h \
73         iap.c \
74         iap.h \
75         maemo-osso.c \
76         map-download.c \
77         map-download.h \
78         map-poi.c \
79         map-poi.h \
80         map-tile-repo.c \
81         map-tile-repo.h \
82         map-repo.c \
83         map-repo.h \
84         mapper.c \
85         mapper.h \
86         path.c \
87         path.h \
88         position.c \
89         position.h \
90         route.c \
91         route.h \
92         image-cache.c \
93         image-cache.h \
94         poi-gui.c \
95         poi-gui.h \
96         poi.c \
97         poi.h \
98         search.c \
99         search.h \
100         settings-gui.c \
101         settings-gui.h \
102         speak.c \
103         speak.h \
104         speed-display.c \
105         ui-common.c \
106         ui-common.h \
107         ui-maemo.h \
108         utils.c \
109         utils.h \
110         mapper-types.h \
111         settings-gconf.h 
112
113 if HAVE_GST
114 mapper_SOURCES+=audio.h audio-note.c audio-note.h
115 endif
116
117 osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
118 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm libosmdb.la
119 osm2db_SOURCES = osm.c osm.h
120
121 lib_LTLIBRARIES = libosmdb.la libmappergps.la
122
123 libmappergps_la_SOURCES = \
124         bluetooth-scan.h \
125         gps.c \
126         gps.h \
127         gps-conn.h \
128         gps-nmea-parse.c \
129         gps-nmea-parse.h \
130         map.h \
131         path.h
132
133 libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines) 
134 libmappergps_la_LIBADD = $(GLIBGTK_LIBS)
135 libmappergps_la_LDFLAGS = -lm -no-undefined
136
137 # Old C lib
138 if HAVE_BLUEZ
139 libmappergps_la_SOURCES+=gps-bluetooth-bluez.c
140 endif
141
142 # New D-Bus based bluez
143 if HAVE_BLUEZ_DBUS_BT
144 libmappergps_la_SOURCES+=gps-bluetooth-bluez-dbus.c gps-bluetooth-bluez-marschal.h gps-bluetooth-bluez-marshal.c
145 endif
146
147 if HAVE_HILDON_DBUS_BT
148 libmappergps_la_SOURCES+=gps-bluetooth-maemo.c gps-bluetooth-maemo-marshal.c 
149 libmappergps_la_CFLAGS+= $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAGS) $(LIBGPSBT_CFLAGS)
150 libmappergps_la_LIBADD+= $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(LIBGPSBT_LIBS)
151 endif
152
153 libosmdb_la_SOURCES = db.c osm-db.c osm-db-import.c latlon.c \
154                                           db.h osm-db.h osm-db-import.h latlon.h \
155                                           osm-sql-tables.h osm.h settings.h
156 libosmdb_la_CFLAGS = $(GLIBGTK_CFLAGS) $(SQLITE_CFLAGS) $(defines)
157 libosmdb_la_LIBADD = $(GLIBGTK_LIBS) $(SQLITE_LIBS) $(BZ2_LIBS)
158 libosmdb_la_LDFLAGS = -lm -no-undefined
159
160 EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list
161
162 BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c \
163         gps-bluetooth-bluez-marshal.h gps-bluetooth-bluez-marshal.c
164
165 gps-bluetooth-maemo-marshal.h: gps-bluetooth-maemo-marshal.list
166         glib-genmarshal --prefix _bt_maemo --header $< > $@ 
167
168 gps-bluetooth-maemo-marshal.c: gps-bluetooth-maemo-marshal.list
169         glib-genmarshal --prefix _bt_maemo --body $< > $@ 
170
171 gps-bluetooth-bluez-marshal.h: gps-bluetooth-bluez-marshal.list
172         glib-genmarshal --prefix _bt_bluez --header $< > $@ 
173
174 gps-bluetooth-bluez-marshal.c: gps-bluetooth-bluez-marshal.list
175         glib-genmarshal --prefix _bt_bluez --body $< > $@ 
176
177 CLEANFILES = $(BUILT_SOURCES)