#!/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 : Compile with shared lisp library
#
#  $Revision: 1.2 $
#  $Id: cl-s,v 1.2 1994/11/22 15:11:46 hk Exp $
#------------------------------------------------------------------------------

first=$1
shift

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 -f $CLICCROOT/lib/makefile.cl "SOURCE=$first" MODULES="$*" \
   "OPTIMIZE=-O -fPIC"\
   "CC=gcc"  "RTC=$CLICCROOT/lib/librtc.so" "RTL=$CLICCROOT/lib/librtl.so" \
   "LINK.c=gcc"
ViewGit