f60271ca |
1 | #!/bin/sh |
2 | ### Shell script to create a ROOT loadable ALPHA-CXX shared lib out of .cxx source code |
3 | ### |
4 | ### NvE 05-jul-2000 UU-SAP Utrecht |
5 | |
6 | ### Name of the produced shared library |
7 | lib=iceconvert.so |
8 | |
9 | ### The option string for ALPHA-CXX compilation of the .c code *** |
10 | ### For the ALPHA-CXX ROOT loadable shared lib the strict requirements are *** |
11 | ### dropped to avoid many warnings from the rootcint generated code *** |
12 | alphacomp="-c -g0 -w1 -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack" |
13 | |
14 | ### The option string for ALPHA-CXX shared lib compilation and linking *** |
15 | ### For the ALPHA-CXX ROOT loadable shared lib the strict requirements are *** |
16 | ### dropped to avoid many warnings from the rootcint generated code *** |
17 | alpharoot="-x cxx -g0 -shared -w1 -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack -o $lib" |
18 | |
19 | ### Go to the directory with the source files |
20 | cd $ALIROOT/RALICE/icepack/iceconvert |
21 | |
22 | ### Create the dictionary files |
23 | rootcint zzziceconvertdict.cxx -c -p -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack ICEConvHeaders.h ICEConvLinkDef.h |
24 | |
25 | ### Compile and create the ROOT loadable shared library |
26 | cxx $alphacomp *.c |
a0f305cd |
27 | cxx $alpharoot *.cxx *.o |
f60271ca |
28 | |
29 | rm zzziceconvertdict.* |
30 | rm *.o |
31 | rm so_locations |
32 | |
33 | ### Move the created lib to the scripts directory and go there |
34 | mv $lib scripts |
35 | cd scripts |
36 | |
37 | echo ' ' |
38 | echo '*** alphacxxlib done. Result in ' $lib |