#!/bin/csh -f
# --- Copyright University of Sussex 1994. All rights reserved. ----------
# File: $poplocal/local/popvision/com/compile_popvision_linux
# Purpose:          Compile popvision files using gcc for linux
# Author:           David S Young, Jul 28 1994

# John Williams, Nov  5 1993
# revised David Young, 20 July 1994
# updated for linux, Aaron Sloman 4 Sep 1997


# run this in $local/popvision/lib
mkdir bin/linux

foreach f (*.c)
    set Comm = ( gcc -o bin/linux/${f:r}.so -O3 -fpic -shared $f )
    echo $Comm
    $Comm
end
