To link a Fortran program "Nom.f", with Aires, CERNLib, Mathlib on HP machines (CCAHP), used the following script named "f77_link":

 

cc -E -Drndm=rndm_ -Drannor=rannor_ -Dciorshutdown=ciorshutdown_ -Dopencrofile=opencrofile_ -Dciorinit=ciorinit_ -Dinpsry=inpsry_ -Dgetcrorecord=getcrorecord_ -Dhlimit=hlimit_ -Dranf=ranf_ -Dhfill=hfill_ -Dhrput=hrput_ -Dhbook1=hbook1_ -Dpoiset=poiset_ $1.f > $1.F

 

fort77 -o $1 $1.F -L/afs/in2p3.fr/group/pauger/aeaires/HP-UX/2-2-1/aires/lib -lAires -L/cern/pro/lib -lpacklib -lmathlib -lU77 -lm

 

For link type : f77_link Nom

Notice than the name of the Fortran program is notified without .f extension

If difficulties mail to : Alain Cordier