]>
Commit | Line | Data |
---|---|---|
7b3b6b55 | 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=rwa98.so | |
8 | ||
7b3b6b55 | 9 | ### The option string for ALPHA-CXX shared lib compilation and linking *** |
10 | ### For the ALPHA-CXX ROOT loadable shared lib the strict requirements are *** | |
11 | ### dropped to avoid many warnings from the rootcint generated code *** | |
6c5f9a1b | 12 | alpharoot="-x cxx -g0 -shared -w1 -I$ROOTSYS/include -I$ALIROOT/RALICE -o $lib" |
13 | ||
14 | ### Go to the directory with the source files | |
15 | cd $ALIROOT/RALICE/wa98 | |
7b3b6b55 | 16 | |
17 | ### Create the dictionary files | |
6c5f9a1b | 18 | rootcint zzzrwa98dict.cxx -c -I$ALIROOT/RALICE RWA98Headers.h RWA98LinkDef.h |
7b3b6b55 | 19 | |
20 | ### Compile and create the ROOT loadable shared library | |
21 | cxx $alpharoot *.cxx | |
22 | ||
23 | rm zzzrwa98dict.* | |
24 | rm *.o | |
25 | rm so_locations | |
26 | ||
6c5f9a1b | 27 | ### Move the created lib to the scripts directory and go there |
28 | mv $lib scripts | |
29 | cd scripts | |
30 | ||
7b3b6b55 | 31 | echo ' ' |
32 | echo '*** alphacxxlib done. Result in ' $lib |