33 lines
488 B
Plaintext
Executable File
33 lines
488 B
Plaintext
Executable File
#
|
|
# @(#) Script to build a Batch geant executable
|
|
#
|
|
set name=testem2
|
|
|
|
set extnam=" "
|
|
if ($G4SYSTEM == AIX-AFS) set extnam=-qextname
|
|
#
|
|
mkdir $G4SYSTEM
|
|
cd $G4SYSTEM
|
|
#
|
|
# fortran compilation
|
|
#
|
|
hepf77 $extnam -c -g -Dbatch -I/cern/pro/include -I../include ../src/*.F
|
|
|
|
#
|
|
# Link
|
|
#
|
|
echo 'linking geant3+cernlib libraries ...'
|
|
#
|
|
hepf77 $extnam -g -o $name.xb *.o \
|
|
`cernlib geant321 pawlib graflib packlib mathlib kernlib`
|
|
#
|
|
#
|
|
chmod +x $name.xb
|
|
#
|
|
# cleanup
|
|
#
|
|
rm *.o
|
|
echo 'done'
|
|
exit
|
|
|