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