]> err.no Git - mapper/blob - src/Makefile.am
Fixes to gstreamer element and caps handlings.
[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
23
24 bin_PROGRAMS = mapper osm2db
25
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) \
32         $(DBUS_GLIB_CFLAGS) \
33         $(BLUEZ_CFLAGS) $(LIBGPSBT_CFLAGS) \
34         $(GYPSY_CFLAGS)
35
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
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-repo.c \
81         map-repo.h \
82         map.c \
83         map.h \
84         mapper.c \
85         mapper.h \
86         path.c \
87         path.h \
88         poi-gui.c \
89         poi-gui.h \
90         poi.c \
91         poi.h \
92         route.c \
93         route.h \
94         search.c \
95         search.h \
96         settings-gui.c \
97         settings-gui.h \
98         audio.h \
99         audio-note.c \
100         audio-note.h \
101         speak.c \
102         speak.h \
103         speed-display.c \
104         track.c \
105         track.h \
106         ui-common.c \
107         ui-common.h \
108         ui-maemo.h \
109         utils.c \
110         utils.h \
111         mapper-types.h \
112         settings-gconf.h 
113
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
117
118 lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la
119
120 libmappergps_la_SOURCES = \
121         bluetooth-scan.h \
122         gps.c \
123         gps.h \
124         gps-conn.h \
125         gps-nmea-parse.c \
126         gps-nmea-parse.h \
127         map.h \
128         path.h
129 if HAVE_BLUEZ_DBUS_BT
130 libmappergps_la_SOURCES+=gps-bluetooth-bluez.c gps-bluetooth-bluez-marshal.c
131 endif
132
133 libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines) 
134 libmappergps_la_LIBADD = $(GLIBGTK_LIBS)
135 libmappergps_la_LDFLAGS = -lm -no-undefined
136
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)
141 endif
142
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
148
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
155
156 EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list
157
158 BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c \
159         gps-bluetooth-bluez-marshal.h gps-bluetooth-bluez-marshal.c
160
161 gps-bluetooth-maemo-marshal.h: gps-bluetooth-maemo-marshal.list
162         glib-genmarshal --prefix _bt_maemo --header $< > $@ 
163
164 gps-bluetooth-maemo-marshal.c: gps-bluetooth-maemo-marshal.list
165         glib-genmarshal --prefix _bt_maemo --body $< > $@ 
166
167 gps-bluetooth-bluez-marshal.h: gps-bluetooth-bluez-marshal.list
168         glib-genmarshal --prefix _bt_bluez --header $< > $@ 
169
170 gps-bluetooth-bluez-marshal.c: gps-bluetooth-bluez-marshal.list
171         glib-genmarshal --prefix _bt_bluez --body $< > $@ 
172
173 CLEANFILES = $(BUILT_SOURCES)