Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25089/tools
Added Files:
mcc
Log Message:
preparing for handling multiplexed inline functions.
minor code cleanup, saving 1.5 page of code.
--- NEW FILE: mcc ---
#!/bin/sh
prg=`basename $1 .c`
# will change to a dynamic lookup using monetdb-config
# should be generalized
top_builddir=$HOME/monet5/build/MonetDB5/
prefix=$HOME/monet5/Linux
libdir=$prefix/lib/MonetDB5
# we need libtool to be installed somewhere!
LIBTOOL=$top_builddir/libtool
# next list is to be filled in using configure
CC=gcc
CCLD=$CC
DEFS=-DHAVE_CONFIG_H
CFLAGS="-Wall -Wextra -std=c99 -g -D_REENTRANT"
LDFLAGS=
INSTALL="/usr/bin/install -c"
# the libs and includes are found via monetdb(5)-config
LIBS="`monetdb-config --libs` `monetdb5-config --libs`"
INCLUDES="`monetdb-config --cflags` `monetdb5-config --cflags`"
$LIBTOOL --tag=CC --mode=compile $CC $DEFS $INCLUDES $CFLAGS -c $prg.c
$LIBTOOL --tag=CC --mode=link $CCLD $CFLAGS $LDFLAGS -o lib_$prg.la -rpath
$libdir $LDFLAGS $prg.lo $LIBS
$LIBTOOL --mode=install $INSTALL lib_$prg.la $DESTDIR/$libdir
$LIBTOOL --mode=finish $DESTDIR/$libdir
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins