29-apr-2005 Library creation scripts for Linux gcc etc... introduced.
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / scripts / hpcclib.sh
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 ***
9 hpcomp="-c -s -z +z +a1 +w +DAportable -I$ROOTSYS/include -I$ALIROOT/RALICE"
10 hproot="-c -s -z +z +a1 +DAportable -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack"
11 hplink="-L$ROOTSYS/lib/ -l*.sl -lm"
12
13 ### Go to the directory with the source files
14 cd $ALIROOT/RALICE/icepack/iceconvert
15
16 rootcint zzziceconvertdict.cxx -c -p -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack ICEConvHeaders.h ICEConvLinkDef.h
17
18 CC $hpcomp *.c   
19
20 CC $hproot *.cxx   
21
22 CC -b -o iceconvert.sl *.o
23
24 rm zzziceconvertdict.*
25 rm *.o
26
27 ### Move the created lib to the scripts directory and go there
28 mv iceconvert.sl scripts
29 cd scripts
30
31 echo '*** hpcclib.sh done. Result in iceconvert.sl'