]>
Commit | Line | Data |
---|---|---|
7b3b6b55 | 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=rwa98.so | |
8 | # | |
9 | ### The ALICE source directory | |
10 | alice=$HOME/cxx/source/alice | |
11 | # | |
12 | ### The option string for GCC shared lib compilation and linking *** | |
13 | ### For the GCC ROOT loadable shared lib the strict requirements are *** | |
14 | ### dropped to avoid many warnings from the rootcint generated code *** | |
15 | gccroot="-shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -I$alice -o $lib" | |
16 | # | |
17 | echo "lib = " $lib | |
18 | echo "alice = " $alice | |
19 | echo "gccroot = " $gccroot | |
20 | # | |
21 | ### Create the dictionary files | |
22 | rootcint -f zzzrwa98dict.cxx -c -I$alice RWA98Headers.h RWA98LinkDef.h | |
23 | # | |
24 | ### Compile and create the ROOT loadable shared library | |
25 | g++ $gccroot *.cxx | |
26 | # | |
27 | rm zzzwa98dict.* | |
28 | rm *.o | |
29 | # | |
30 | echo ' ' | |
31 | echo '*** gcclib done. Result in ralice.so' |