2005-09-19 15:15:15 +02:00
|
|
|
#!/bin/sh
|
2006-07-18 16:52:53 +02:00
|
|
|
|
2006-08-17 16:21:10 +02:00
|
|
|
INSTALL="install -o bin"
|
2006-07-18 16:52:53 +02:00
|
|
|
CCACHE=config.cache
|
|
|
|
rm -f $CCACHE
|
2006-08-17 11:53:26 +02:00
|
|
|
if [ -f Makefile ]
|
|
|
|
then make distclean
|
|
|
|
fi
|
2006-07-25 11:39:13 +02:00
|
|
|
L=libfl.a
|
2006-08-17 16:21:10 +02:00
|
|
|
YACC=/usr/bin/yacc RANLIB=true AR=ar CONFIG_SHELL=/bin/bigsh CC=cc /bin/bigsh ./configure
|
|
|
|
make clean all
|
|
|
|
|
|
|
|
$INSTALL -m 755 flex /usr/bin
|
|
|
|
$INSTALL -l /usr/bin/flex /usr/bin/flex++
|
|
|
|
$INSTALL FlexLexer.h /usr/local/include
|
|
|
|
$INSTALL libfl.a /usr/lib/i386
|
2006-07-18 16:52:53 +02:00
|
|
|
|
|
|
|
if [ -f /usr/gnu/bin/gcc ]
|
|
|
|
then PATH=/usr/gnu/bin:$PATH
|
|
|
|
rm -f $CCACHE
|
2006-08-17 16:21:10 +02:00
|
|
|
YACC=/usr/bin/yacc CC=gcc CONFIG_SHELL=/bin/bigsh AR=gar /bin/bigsh ./configure
|
2006-08-17 11:53:26 +02:00
|
|
|
make clean $L
|
2006-08-17 16:21:10 +02:00
|
|
|
$INSTALL libfl.a /usr/gnu/lib
|
2006-01-27 15:38:23 +01:00
|
|
|
fi
|