]> err.no Git - mapper/blob - src/Makefile.am
Use help.c wrappers
[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) \
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) $(BLUEZ_CFLAGS)
33
34 mapper_LDADD = $(GLIBGTK_LIBS) \
35         $(OSSO_LIBS) $(CONIC_LIBS) \
36         $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(OSSO_HELP_LIBS) \
37         $(GNOME_VFS_LIBS) $(GCONF_LIBS) \
38         $(LIBXML2_LIBS) $(GSTREAMER_LIBS) $(ESPEAK_LIBS) \
39         $(SQLITE_LIBS) $(LIBCURL_LIBS) \
40         $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) -lm libgtkgps.la
41
42 mapper_SOURCES = utils.c \
43         db.c file.c \
44         gpx.c \
45         bt-bluez.c \
46         bt-maemo-marshal.c \
47         bt-maemo.c \
48         latlon.c \
49         osm-db.c \
50         gps.c \
51         gps-browse.c \
52         gps-nmea-parse.c \
53         gps-panels.c \
54         gps-conn.c \
55         cb.c \
56         iap.c \
57         path.c \
58         route.c \
59         track.c \
60         maemo-osso.c \
61         map-repo.c \
62         map-download.c \
63         map.c \
64         poi.c \
65         poi-gui.c \
66         map-poi.c \
67         settings-gui.c \
68         filter-gui.c \
69         speed-display.c \
70         hildon-wrappers.c \
71         ui-common.c \
72         config-gconf.c \
73         speak.c \
74         audio-note.c \
75         help.c \
76         mapper.c
77
78 osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
79
80 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) $(BZ2_LIBS) -lm
81
82 osm2db_SOURCES = latlon.c osm.c
83
84 lib_LTLIBRARIES = libgtkgps.la
85
86 libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c
87
88 libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
89 libgtkgps_la_LIBADD = $(GLIBGTK_LIBS)
90 libgtkgps_la_LDFLAGS = -lm -no-undefined
91
92 EXTRA_DIST = bt-maemo-marshal.list
93
94 BUILT_SOURCES = bt-maemo-marshal.h bt-maemo-marshal.c
95
96 bt-maemo-marshal.h: bt-maemo-marshal.list
97         glib-genmarshal --prefix _bt_maemo --header $< > $@ 
98 bt-maemo-marshal.c: bt-maemo-marshal.list
99         glib-genmarshal --prefix _bt_maemo --body $< > $@