]> err.no Git - mapper/blob - src/Makefile.am
Misc UI 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
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 = utils.c \
47         file.c \
48         gpx.c \
49         filter.c \
50         gps-browse.c \
51         gps-panels.c \
52         gps-conn.c \
53         cb.c \
54         iap.c \
55         path.c \
56         route.c \
57         track.c \
58         maemo-osso.c \
59         map-repo.c \
60         map-download.c \
61         map.c \
62         poi.c \
63         poi-gui.c \
64         map-poi.c \
65         settings-gui.c \
66         filter-gui.c \
67         speed-display.c \
68         hildon-wrappers.c \
69         ui-common.c \
70         dialogs.c \
71         config-gconf.c \
72         speak.c \
73         announcements.c \
74         help.c \
75         search.c \
76         mapper.c
77
78 # audio-note.c
79
80 osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
81 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) $(BZ2_LIBS) -lm libosmdb.la
82 osm2db_SOURCES = osm.c
83
84 lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la
85
86 libmappergps_la_SOURCES = gps.c gps-nmea-parse.c
87 if HAVE_BLUEZ_DBUS_BT
88 libmappergps_la_SOURCES+=gps-bluetooth-bluez.c gps-bluetooth-bluez-marshal.c
89 endif
90
91 if HAVE_HILDON_DBUS_BT
92 libmappergps_la_SOURCES+=gps-bluetooth-maemo.c gps-bluetooth-maemo-marshal.c 
93 endif
94 libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(LIBGPSBT_CFLAGS) $(defines) 
95 libmappergps_la_LIBADD = $(GLIBGTK_LIBS) $(LIBGPSBT_LIBS)
96 libmappergps_la_LDFLAGS = -lm -no-undefined
97
98 libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c
99 libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
100 libgtkgps_la_LIBADD = $(GLIBGTK_LIBS)
101 libgtkgps_la_LDFLAGS = -lm -no-undefined
102
103 libosmdb_la_SOURCES = db.c osm-db.c latlon.c
104 libosmdb_la_CFLAGS = $(GLIBGTK_CFLAGS) $(SQLITE_CFLAGS) $(defines)
105 libosmdb_la_LIBADD = $(GLIBGTK_LIBS) $(SQLITE_LIBS)
106 libosmdb_la_LDFLAGS = -lm -no-undefined
107
108 EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list
109
110 BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c \
111         gps-bluetooth-bluez-marshal.h gps-bluetooth-bluez-marshal.c
112
113 gps-bluetooth-maemo-marshal.h: gps-bluetooth-maemo-marshal.list
114         glib-genmarshal --prefix _bt_maemo --header $< > $@ 
115
116 gps-bluetooth-maemo-marshal.c: gps-bluetooth-maemo-marshal.list
117         glib-genmarshal --prefix _bt_maemo --body $< > $@ 
118
119 gps-bluetooth-bluez-marshal.h: gps-bluetooth-bluez-marshal.list
120         glib-genmarshal --prefix _bt_bluez --header $< > $@ 
121
122 gps-bluetooth-bluez-marshal.c: gps-bluetooth-bluez-marshal.list
123         glib-genmarshal --prefix _bt_bluez --body $< > $@