AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(mapper, 1.0.3.95)
+AC_CONFIG_MACRO_DIR(m4)
AM_MAINTAINER_MODE
AC_PROG_CPP
AC_ARG_ENABLE([opengl],AS_HELP_STRING([--enable-opengl],[Use OpenGL (gtkglext]),
[enable_opengl=$enableval], [enable_opengl=no])
+GTK_DOC_CHECK(1.9)
+
if test "x$enable_cairo" = "xyes" ; then
PKG_CHECK_MODULES(CAIRO, cairo)
AC_SUBST(CAIRO_LIBS)
AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
# Produce output files
-AC_OUTPUT(
- Makefile \
+AC_OUTPUT(Makefile \
+ libs/Makefile \
+ libs/libgtkgps/Makefile \
+ libs/libgtkmap/Makefile \
src/Makefile \
data/Makefile \
data/help/Makefile \
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE
+INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE -I../libs/libgtkmap/
-bin_PROGRAMS = mapper osm2db map_widget_test
+bin_PROGRAMS = mapper osm2db
mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS) \
$(OSSO_CFLAGS) $(CONIC_CFLAGS) \
$(SQLITE_LIBS) $(LIBCURL_LIBS) \
$(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) \
$(GYPSY_LIBS) $(LIBGPSBT_LIBS) $(HAL_LIBS)\
- -lm libgtkgps.la libosmdb.la libmappergps.la libgtkmap.la
+ -lm libgtkgps.la libosmdb.la libmappergps.la ../libs/libgtkmap/libgtkmap.la
mapper_SOURCES = \
announcements.c \
osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm libosmdb.la
osm2db_SOURCES = osm.c osm.h
-lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la libgtkmap.la
+lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la
libmappergps_la_SOURCES = \
bluetooth-scan.h \
libmappergps_la_LIBADD+= $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(LIBGPSBT_LIBS)
endif
-libgtkmap_la_SOURCES = gtkmap.c gtkmap.h gtkmap-marshal.c gtkmap-marshal.h
-libgtkmap_la_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKGLEXT_CFLAGS) $(defines)
-libgtkmap_la_LIBADD = $(GLIBGTK_LIBS) $(GTKGLEXT_LIBS)
-libgtkmap_la_LDFLAGS = -lm -no-undefined
-
-map_widget_test_SOURCES = map-widget-test.c latlon.c image-cache.c map-tile-repo.c
-map_widget_test_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) -lm libgtkgps.la libgtkmap.la
-map_widget_test_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS)
-
libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c \
gtkgps.h gtkcompass.h gpsdata.h
libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
libosmdb_la_LIBADD = $(GLIBGTK_LIBS) $(SQLITE_LIBS) $(BZ2_LIBS)
libosmdb_la_LDFLAGS = -lm -no-undefined
-EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list gtkmap-marshal.list
+EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list
BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c \
gps-bluetooth-bluez-marshal.h gps-bluetooth-bluez-marshal.c
gps-bluetooth-bluez-marshal.c: gps-bluetooth-bluez-marshal.list
glib-genmarshal --prefix _bt_bluez --body $< > $@
-gtkmap-marshal.c: gtkmap-marshal.list
- glib-genmarshal --prefix _gtkamp --body $< > $@
-
-gtkmap-marshal.h: gtkmap-marshal.list
- glib-genmarshal --prefix _gtkamp --header $< > $@
-
CLEANFILES = $(BUILT_SOURCES)