apt-get install python2.3-libxml2
apt-get install python2.3-dev
wget http://keihanna.dl.sourceforge.net/sourceforge/bakefile/bakefile-0.2.0.tar.gz
tar xvfz bakefile-0.2.0.tar.gz
cd bakefile-0.2.0
./configure
make
su
make install
ln -s /usr/local/share/aclocal/bakefile-lang.m4 bakefile-lang.m4
ln -s /usr/local/share/aclocal/bakefile.m4 bakefile.m4
exit
test
---hello.c---
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
---hello.bkl---
<?xml version="1.0"?>
<makefile>
<include file="presets/simple.bkl"/>
<exe id="hello" template="simple">
<sources>hello.c</sources>
</exe>
</makefile>
---configure.ac---
AC_PREREQ(2.53)
AC_INIT(aclocal.m4)
AC_CANONICAL_SYSTEM
AC_ARG_ENABLE(debug,
[ --enable-debug Enable debugging information],
USE_DEBUG="$enableval", USE_DEBUG="no")
if test $USE_DEBUG = yes ; then
DEBUG=1
dnl Bakefile doesn't touch {C,CPP,CXX,LD}FLAGS in autoconf format, we
dnl have to do it ourselves. This will work with many compilers
dnl (but not all, proper configure script would check if the compiler
dnl supports it):
CFLAGS="$CFLAGS -g"
else
DEBUG=0
fi
AC_BAKEFILE([m4_include(autoconf_inc.m4)])
AC_OUTPUT([Makefile])
------
bakefile -f autoconf hello.bkl
bakefilize --copy &&amp;amp; aclocal && autoconf
./configure --help
./configure --enable-debug
make
./hello
星期日, 8月 20, 2006
install bakefile 2.0 from source code on linux
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言