#!/bin/sh
#
###############################################################
#                                                             #
# LINKFTN_CMZ                                                 #
#                                                             #
# Comme linkzoom_cmz pour fortran et mortran                  #
#                                                             #
# written by   : Robert FRANCHISSEUR, 05/09/96, 18.02.47      #
# modified by :                                               #
###############################################################
#
#
###########################
# -- called by CMZ ONLY ! #
###########################
#
#
#         EDITION DE LIEN   avec les .bin ou les .o
#
#
CPU=lnx
#LINKER='g77 -m32'
#LINKER='gfortran'
#LINKER='g77'
LINKER='gfortran'
LINKER_OPT=' -m32 -v -static -o '
#LINKER_OPT='  -D__USE_GNU -v -static -o '
ext_bin=o
ext_lib=a
#
cernlib_cmd=`cernlib`
if [ -x cernlib ]
then
  cernlib_cmd=`./cernlib`
fi
#
               $LINKER $LINKER_OPT ${1}/${2}.exe \
               ${1}/cfs/*.${ext_bin} \
               ${cernlib_cmd} \

                                           # */ (pour a2ps)
#
# execution ?

echo " "
echo " pour l' execution "
echo " "
echo "=== > wd ou cd $1"
echo "=== > $2.exe [ < $2.data ]"
echo " "

