10-may-2006 NvE Distance determination between tracks and/or jets introduced in
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / scripts / amdgcclib.sh
CommitLineData
f60271ca 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
7lib=iceconvert.so
8#
9### The option string for GCC compilation of the .c code ***
10### For the GCC ROOT loadable shared lib the strict requirements are ***
11### dropped to avoid many warnings from the rootcint generated code ***
a0f305cd 12gcccomp="-fPIC -c -g0 -Wall -Wno-long-long -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack"
f60271ca 13#
14### The option string for GCC shared lib compilation and linking ***
15### For the GCC ROOT loadable shared lib the strict requirements are ***
16### dropped to avoid many warnings from the rootcint generated code ***
9427ac75 17gccroot="-fPIC -shared -g0 -ansi -pedantic -Wall -Wno-long-long -Woverloaded-virtual -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack -o $lib"
f60271ca 18#
19echo "lib = " $lib
20echo "gcccomp = " $gcccomp
21echo "gccroot = " $gccroot
22#
23### Go to the directory with the source files
24cd $ALIROOT/RALICE/icepack/iceconvert
25#
26### Create the dictionary files
27rootcint -f zzziceconvertdict.cxx -c -p -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack ICEConvHeaders.h ICEConvLinkDef.h
28#
29### Compile and create the ROOT loadable shared library
30gcc $gcccomp *.c
a0f305cd 31g++ $gccroot *.cxx *.o
f60271ca 32#
33rm zzziceconvertdict.*
34rm *.o
35#
36### Move the created lib to the scripts directory and go there
37mv $lib scripts
38cd scripts
39#
40echo ' '
41echo '*** gcclib done. Result in ' $lib