Archive

Archive for the ‘GTK’ Category

Build files for gnome apps (configure.in & makefile.am)

October 30th, 2008 SuperHac No comments

I just started to take the leap to autogen and after 2 days I finally got the configure.in and Makefile.am figured out for building gnome apps. This will allow you to build the latest Glade app’s using GtkBuilder. I really like the automated dependency checking. My system is running Ubuntu 8.04 (Hardy).

configure.in

AC_INIT(src)

PACKAGE=YOURAPPNAME
VERSION=0.1

AM_INIT_AUTOMAKE($PACKAGE,$VERSION)

AC_STDC_HEADERS
AC_PROG_INSTALL
AC_PROG_CXX

PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.0 glib-2.0 >= 2.2 gmodule-export-2.0 >= 2.0)
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)

AC_OUTPUT([
Makefile
src/Makefile
])

Makefile.am (in your src directory)

bin_PROGRAMS = YOURAPPNAME

YOURAPPNAME_SOURCES = main.c
LIBS = $(DEPS_LIBS)
INCLUDES = $(DEPS_CFLAGS)

Categories: GTK, Linux, e500, programming Tags: