Compiles with automake

This commit is contained in:
Tom Willemsen 2010-10-25 22:57:25 +02:00
parent 0c774c7fac
commit ad9ed8ffaf
4 changed files with 16 additions and 58 deletions

View file

@ -1,4 +1,4 @@
EXTRA_DIST = \ EXTRA_DIST = \
autogen.sh autogen.sh
SUBDIRS = src data SUBDIRS = src

View file

@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
set -x aclocal
aclocal-1.7 automake -ac
autoconf --force autoconf
autoheader --force echo "Ready to go (run configure)"
automake-1.7 --add-missing --copy --force-missing --foreign

View file

@ -1,53 +1,16 @@
AC_INIT(Makefile.am) AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(eye-on-manga, 0.1) AM_INIT_AUTOMAKE(eye-on-manga, 0.0.1)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PROG_CC
AC_PROG_INSTALL AC_PROG_INSTALL
AC_HEADER_STDC
# Option to enable debugging # Check for necessary packages
AC_ARG_ENABLE(debug, PKG_CHECK_MODULES(EOM, hildon-1 sqlite3)
[AC_HELP_STRING([ --enable-debug], [Debugging (default=no)])], # Add packages to flags and libs
[with_debug=yes], [with_debug=no]) CFLAGS="$EOM_CFLAGS $CFLAGS"
LIBS="$EOM_LIBS $LIBS"
if test "x$with_debug" == "xyes" ; then # Generate the Makefile from Makefile.in
CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall " AC_OUTPUT( \
else
CFLAGS="$CFLAGS -O2 -Wall "
fi
# Hildon library dependencies
PKG_CHECK_MODULES(HILDON, hildon-1)
AC_SUBST(HILDON_LIBS)
AC_SUBST(HILDON_CFLAGS)
# To make the application visible in maemo Task Navigator it needs a Desktop
# file for the application.
desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
# 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 Makefile
AC_SUBST(desktopentrydir)
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([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
AC_OUTPUT(
Makefile \ Makefile \
src\Makefile \ src/Makefile
data\Makefile
) )

View file

@ -1,10 +1,6 @@
bin_PROGRAMS = eye-on-manga bin_PROGRAMS = eye-on-manga
eye-on-manga_LDADD = $(HILDON_LIBS) eye_on_manga_SOURCES = \
eye-on-manga_CFLAGS = $(HILDON_CFLAGS)
eye-on-manga_SOURCES = \
data.c data.h \ data.c data.h \
eom.c eom.h \ eom.c eom.h \
eom-edit-window.c eom-edit-window.h \ eom-edit-window.c eom-edit-window.h \