From: michele Date: Mon, 9 Nov 2009 22:03:48 +0000 (+0100) Subject: adding autools stuff X-Git-Url: http://git.maemo.org/git/?p=wai;a=commitdiff_plain;h=43e9cadb3707ce4cbb9305005a317f1794a62687 adding autools stuff --- diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..2dab305 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,22 @@ +# +# This file is part of way +# +# Copyright (C) 2009 Michele Tameni. All rights reserved. +# +# This maemo code example is licensed under a MIT-style license, +# that can be found in the file called "COPYING" in the root +# directory. +# + +EXTRA_DIST = \ + autogen.sh \ + intltool-extract.in \ + intltool-merge.in \ + intltool-update.in + #debian/changelog \ + #debian/control \ + #debian/copyright \ + #debian/rules \ + #debian/maemopad.links + +SUBDIRS = src diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..3af226d --- /dev/null +++ b/autogen.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -x +glib-gettextize --copy --force +libtoolize --automake --copy --force +intltoolize --automake --copy --force +aclocal-1.7 +autoconf --force +autoheader --force +automake-1.7 --add-missing --copy --force-missing --foreign diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..73167a0 --- /dev/null +++ b/configure.ac @@ -0,0 +1,81 @@ +AC_INIT(Makefile.am) +AM_INIT_AUTOMAKE(wai, 0.1) +AM_CONFIG_HEADER(config.h) + +AC_CANONICAL_HOST + +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_RANLIB +AC_PROG_LIBTOOL +AC_PROG_INTLTOOL([0.23]) +AC_HEADER_STDC + +# Option to enable debugging +AC_ARG_ENABLE(debug, + [AC_HELP_STRING([ --enable-debug],[Debugging (default=no)])], + [with_debug=yes], [with_debug=no]) + +if test "x$with_debug" == "xyes" ; then + CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall " +else + CFLAGS="$CFLAGS -O2 -Wall " +fi + +# Hildon library dependencies +PKG_CHECK_MODULES(HILDON, hildon-1 glib-2.0) +AC_SUBST(HILDON_LIBS) +AC_SUBST(HILDON_CFLAGS) + +# location library +PKG_CHECK_MODULES(LIBLOCATION, liblocation ) +AC_SUBST(LIBLOCATION_LIBS) +AC_SUBST(LIBLOCATION_CFLAGS) + +# Localisation +#GETTEXT_PACKAGE=$PACKAGE +#AC_SUBST(GETTEXT_PACKAGE) +#AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package]) +#ALL_LINGUAS="en_GB fi_FI" +#AM_GLIB_GNU_GETTEXT + +# To make application visible in maemo Task Navigator it needs a Desktop +# file for the application. +# The following line defines install directories for these files. +desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir` + +# Application locale install directory +#localedir=`$PKG_CONFIG osso-af-settings --variable=localedir` + +# Application pixmaps install directory +#pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir` + +# Application icon install directories +#icon_26x26dir=$datadir/icons/hicolor/26x26/hildon +#icon_34x34dir=$datadir/icons/hicolor/34x34/hildon +#icon_40x40dir=$datadir/icons/hicolor/40x40/hildon +#icon_50x50dir=$datadir/icons/hicolor/50x50/hildon +#icon_scalabledir=$datadir/icons/hicolor/scalable/hildon + +# Define as variables in Makefiles +AC_SUBST(desktopentrydir) +#AC_SUBST(localedir) +#AC_SUBST(pixmapdir) +#AC_SUBST(icon_26x26dir) +#AC_SUBST(icon_34x34dir) +#AC_SUBST(icon_40x40dir) +#AC_SUBST(icon_50x50dir) +#AC_SUBST(icon_scalabledir) + +#AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path]) +AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path]) + +# Produce output files +AC_OUTPUT( + Makefile \ + src/Makefile + #data/Makefile \ + #po/Makefile.in \ + #po/Makefile +) diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..aa5bfbc --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,20 @@ +# +# This file is part of wai +# +# Copyright (C) 2009 Michele Tameni. All rights reserved. +# +# This maemo code example is licensed under a MIT-style license, +# that can be found in the file called "COPYING" in the root +# directory. +# + +bin_PROGRAMS = wai + +wai_LDADD = $(HILDON_LIBS) $(LILOCATION_LIBS) + +wai_CFLAGS= $(HILDON_CFLAGS) $(LIBLOCATION_CFLAGS) + +wai_SOURCES = \ + main.c \ + interface.h interface.c app_data.c app_data.h loc_data.c loc_data.h + diff --git a/welcome b/welcome deleted file mode 100644 index e69de29..0000000