01-dev-2004 NvE Installation scripts modified to make use of environment variable...
[u/mrichter/AliRoot.git] / RALICE / wa98 / scripts / hpcclib.sh
CommitLineData
7b3b6b55 1#!/bin/sh
2### Shell script to create a ROOT loadable HP-CC shared lib out of .cxx source code
3###
4### NvE 28-jun-1999 UU-SAP Utrecht
5#
6### The option strings for HP-CC shared lib compilation and linking ***
7### For the HP-CC ROOT loadable shared lib the strict requirements are ***
8### dropped to avoid many warnings from the rootcint generated code ***
6c5f9a1b 9hpcomp="-c -s -z +z +a1 +w +DAportable -I$ROOTSYS/include -I$ALIROOT/RALICE"
10hproot="-c -s -z +z +a1 +DAportable -I$ROOTSYS/include -I$ALIROOT/RALICE"
7b3b6b55 11hplink="-L$ROOTSYS/lib/ -l*.sl -lm"
12
6c5f9a1b 13### Go to the directory with the source files
14cd $ALIROOT/RALICE/wa98
15
16rootcint zzzrwa98dict.cxx -c -I$ALIROOT/RALICE RWA98Headers.h RWA98LinkDef.h
7b3b6b55 17
18CC $hproot *.cxx
19
20CC -b -o rwa98.sl *.o
21
22rm zzzrwa98dict.*
23rm *.o
24
6c5f9a1b 25### Move the created lib to the scripts directory and go there
26mv rwa98.sl scripts
27cd scripts
28
29echo '*** hpcclib.sh done. Result in rwa98.sl'