2 ### Shell script to create a ROOT loadable GCC shared lib out of .cxx source code
4 ### NvE 23-may-2000 UU-SAP Utrecht
6 ### Name of the produced shared library
9 ### The option string for GCC compilation of the .c code ***
10 ### For the GCC ROOT loadable shared lib the strict requirements are ***
11 ### dropped to avoid many warnings from the rootcint generated code ***
12 gcccomp="-fPIC -c -g0 -Wall -Wno-long-long -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack"
14 ### The option string for GCC shared lib compilation and linking ***
15 ### For the GCC ROOT loadable shared lib the strict requirements are ***
16 ### dropped to avoid many warnings from the rootcint generated code ***
17 gccroot="-fPIC -shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack -o $lib"
20 echo "gcccomp = " $gcccomp
21 echo "gccroot = " $gccroot
23 ### Go to the directory with the source files
24 cd $ALIROOT/RALICE/icepack/iceconvert
26 ### Create the dictionary files
27 rootcint -f zzziceconvertdict.cxx -c -p -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack ICEConvHeaders.h ICEConvLinkDef.h
29 ### Compile and create the ROOT loadable shared library
31 g++ $gccroot *.cxx *.o
33 rm zzziceconvertdict.*
36 ### Move the created lib to the scripts directory and go there
41 echo '*** gcclib done. Result in ' $lib