#!/bin/sh
#------------------------------------------------------------------------------
# CLiCC: The Common Lisp to C Compiler
# Copyright (C) 1994 Wolfgang Goerigk, Ulrich Hoffmann, Heinz Knutzen
# Christian-Albrechts-Universitaet zu Kiel, Germany
#------------------------------------------------------------------------------
# Function : Update the shared lisp library files
#
# $Revision: 1.2 $
# $Id: rt-s,v 1.2 1994/11/22 15:11:46 hk Exp $
#------------------------------------------------------------------------------


as=`which as | tail -1`
if [ "$as" != "/usr/lang/as" ]; then
  echo To produce a shared executable you must use the original
  echo assembler /usr/lang/as and not $as.
  exit 1
fi

gmake -C $CLICCROOT/src/runtime/c "OPTIMIZE=-O -fPIC -DSHARED_LIBRARY" \
   "CC=gcc" "AR=ld" "ARFLAGS=-o" "LIBRARY=$CLICCROOT/lib/librtc.so" \
   "RANLIB=echo >/dev/null"
gmake -C $CLICCROOT/src/runtime/lisp2c "OPTIMIZE=-O -fPIC" "CC=gcc" \
   "AR=ld" "ARFLAGS=-o" "LIBRARY=$CLICCROOT/lib/librtl.so" \
   "RANLIB=echo >/dev/null"
ViewGit