21-jun-2005 NvE Install scripts for gcc corrected to also include the rdmc stuff
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / scripts / alphacxxlib.sh
CommitLineData
f60271ca 1#!/bin/sh
2### Shell script to create a ROOT loadable ALPHA-CXX shared lib out of .cxx source code
3###
4### NvE 05-jul-2000 UU-SAP Utrecht
5
6### Name of the produced shared library
7lib=iceconvert.so
8
9### The option string for ALPHA-CXX compilation of the .c code ***
10### For the ALPHA-CXX ROOT loadable shared lib the strict requirements are ***
11### dropped to avoid many warnings from the rootcint generated code ***
12alphacomp="-c -g0 -w1 -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack"
13
14### The option string for ALPHA-CXX shared lib compilation and linking ***
15### For the ALPHA-CXX ROOT loadable shared lib the strict requirements are ***
16### dropped to avoid many warnings from the rootcint generated code ***
17alpharoot="-x cxx -g0 -shared -w1 -I$ROOTSYS/include -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack -o $lib"
18
19### Go to the directory with the source files
20cd $ALIROOT/RALICE/icepack/iceconvert
21
22### Create the dictionary files
23rootcint zzziceconvertdict.cxx -c -p -I$ALIROOT/RALICE -I$ALIROOT/RALICE/icepack ICEConvHeaders.h ICEConvLinkDef.h
24
25### Compile and create the ROOT loadable shared library
26cxx $alphacomp *.c
a0f305cd 27cxx $alpharoot *.cxx *.o
f60271ca 28
29rm zzziceconvertdict.*
30rm *.o
31rm so_locations
32
33### Move the created lib to the scripts directory and go there
34mv $lib scripts
35cd scripts
36
37echo ' '
38echo '*** alphacxxlib done. Result in ' $lib