]> err.no Git - mapper/blob - src/Makefile.am
2dcf4e5de10c6b49787125d493ab1084624bef99
[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)"\"
23
24 bin_PROGRAMS = mapper osm2db
25
26 mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(OSSO_CFLAGS) $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) \
27         $(GNOME_VFS_CFLAGS) $(GCONF_CFLAGS) $(LIBXML2_CFLAGS) $(GSTREAMER_CFLAGS) $(ESPEAK_CFLAGS) \
28         $(SQLITE_CFLAGS) $(LIBCURL_CFLAGS) $(DBUS_GLIB_CFLAGS) $(BLUEZ_CFLAGS)
29
30 mapper_LDADD = $(GLIBGTK_LIBS) $(OSSO_LIBS) $(HILDON_LIBS) $(HILDONFM_LIBS) \
31         $(GNOME_VFS_LIBS) $(GCONF_LIBS) $(LIBXML2_LIBS) $(GSTREAMER_LIBS) $(ESPEAK_LIBS) \
32         $(SQLITE_LIBS) $(LIBCURL_LIBS) $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) -lm
33
34 mapper_SOURCES = utils.c \
35         db.c file.c \
36         gpx.c \
37         bt-bluez.c \
38         bt-maemo-marshal.c \
39         bt-maemo.c \
40         latlon.c \
41         osm-db.c \
42         gps.c \
43         gps-browse.c \
44         gps-nmea-parse.c \
45         gps-panels.c \
46         gps-conn.c \
47         cb.c \
48         iap.c \
49         path.c \
50         route.c \
51         track.c \
52         maemo-osso.c \
53         map-repo.c \
54         map-download.c \
55         map.c \
56         poi.c \
57         poi-gui.c \
58         map-poi.c \
59         settings-gui.c \
60         filter-gui.c \
61         speed-display.c \
62         hildon-wrappers.c \
63         ui-common.c \
64         config-gconf.c \
65         speak.c \
66         audio-note.c \
67         mapper.c
68
69 osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
70
71 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm
72
73 osm2db_SOURCES = latlon.c osm.c
74
75 EXTRA_DIST = bt-maemo-marshal.list
76
77 BUILT_SOURCES = bt-maemo-marshal.h bt-maemo-marshal.c
78
79 bt-maemo-marshal.h: bt-maemo-marshal.list
80         glib-genmarshal --prefix _bt_maemo --header $< > $@ 
81 bt-maemo-marshal.c: bt-maemo-marshal.list
82         glib-genmarshal --prefix _bt_maemo --body $< > $@