6aff9852 |
1 | #!/bin/sh |
84bb7c66 |
2 | ### Shell script to create a ROOT loadable GCC shared lib out of .cxx source code |
3 | ### |
4 | ### NvE 23-may-2000 UU-SAP Utrecht |
5 | # |
6 | ### Name of the produced shared library |
7 | lib=ralice.so |
8 | # |
9 | ### The option string for GCC shared lib compilation and linking *** |
10 | ### For the GCC ROOT loadable shared lib the strict requirements are *** |
11 | ### dropped to avoid many warnings from the rootcint generated code *** |
6aff9852 |
12 | gccroot="-shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -o $lib" |
84bb7c66 |
13 | # |
14 | echo "lib = " $lib |
15 | echo "gccroot = " $gccroot |
16 | # |
17 | ### Create the dictionary files |
18 | rootcint -f zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h |
19 | # |
20 | ### Compile and create the ROOT loadable shared library |
21 | g++ $gccroot *.cxx |
22 | # |
23 | rm zzzralicedict.* |
24 | rm *.o |
25 | #rm so_locations |
26 | # |
27 | echo ' ' |
28 | echo '*** gcclib done. Result in ralice.so' |