]>
Commit | Line | Data |
---|---|---|
68251d93 | 1 | #!/bin/sh |
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 *** | |
9427ac75 | 12 | gccroot="-fPIC -shared -g0 -ansi -pedantic -Wall -Wno-long-long -Woverloaded-virtual -I$ROOTSYS/include -o $lib" |
68251d93 | 13 | # |
14 | echo "lib = " $lib | |
15 | echo "gccroot = " $gccroot | |
16 | # | |
17 | ### Go to the directory with the source files | |
18 | cd .. | |
19 | # | |
20 | ### Create the dictionary files | |
21 | rootcint -f zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h | |
22 | # | |
23 | ### Compile and create the ROOT loadable shared library | |
24 | g++ $gccroot *.cxx | |
25 | # | |
26 | rm zzzralicedict.* | |
27 | rm *.o | |
28 | # | |
29 | ### Move the created lib to the scripts directory and go there | |
30 | mv $lib scripts | |
31 | cd scripts | |
32 | # | |
33 | echo ' ' | |
34 | echo '*** gcclib done. Result in ' $lib |