#!/bin/sh 
## ==========================================================================
##
##      FFFFF  RRRR   EEEEE  EEEEE  FFFFF  FFFFF   OOOO   RRRR   M    M 
##      F      R   R  E      E      F      F      O    O  R   R  MM  MM 
##      FFF    RRRR   EEE    EEE    FFF    FFF    O    O  RRRR   M MM M 
##      F      R  R   E      E      F      F      O    O  R  R   M    M 
##      F      R   R  E      E      F      F      O    O  R   R  M    M 
##      F      R   R  EEEEE  EEEEE  F      F       OOOO   R   R  M    M 
##
##
##             SSSSS  PPPPP   L      III  N    N  EEEEE   SSSSS    
##            S       P    P  L       I   NN   N  E      S
##             SSSS   PPPP    L       I   N N  N  EEE     SSSS
##                 S  P       L       I   N  N N  E           S
##                 S  P       L       I   N   NN  E           S
##            SSSSS   P       LLLLL  III  N    N  EEEEE  SSSSS 
##
## ==========================================================================
##  
##   Project:     "Freeform splines software package" of 
##
##                     University of Karlsruhe (TH)
##                     Institute for Operating and Dialog Systems
##                     Research Group on Computer Aided Geometric Design
##                     Head of research group: Prof. Dr. H. Prautzsch
##                     WWW: http://i33www.ira.uka.de
##
##
##
##   Version:     1.1
##
##   Author:      Thomas Mueller, Stephan Bischoff
##  
##   Date:        July, 1997
##
##   Changes:     September, 1999
##                - compiles also the programs "subdivide.c++" and "bez2list.c++" 
##
##   Usage:       compile       (compiles all files)            or     
##                compile NAME  (compiles file NAME.c++)
##
##                Instead of the g++-compiler you can use your favourite 
##                C++-compiler. Just replace 'g++' below by the name of your 
##                compiler. You should also adapt the include- and library-paths
##                to your system-setup.
##
##   Contact:     Please let use hear from you in case you have any 
##                suggestions or problems with our software:
##                       prau@ira.uka.de
##                       umlauf@ira.uka.de
##

COMPILER="g++ -I /opt/gnu/libg++-2.7.2/lib/g++-include -L /opt/gnu/libg++-2.7.2/lib"

if [ $# = 0 ]  
then
   echo 'compiling off2invec.c++'
   $COMPILER -o off2invec off2invec.c++
   echo 'compiling fill_hole.c++'
   $COMPILER -o fill_hole fill_hole.c++
   echo 'compiling outvec2bez.c++'
   $COMPILER -o outvec2bez outvec2bez.c++
   echo 'compiling subdivide.c++'
   $COMPILER -o subdivide subdivide.c++
   echo 'compiling bez2list.c++'
   $COMPILER -o bez2list bez2list.c++
   echo 'removing .o-files'
   rm -f *.o
else
   echo 'compiling '$1'.c++'
   $COMPILER -o $1 $1.c++
fi
