01-dev-2004 NvE Installation scripts modified to make use of environment variable...
[u/mrichter/AliRoot.git] / RALICE / wa98 / scripts / gcclib.sh
CommitLineData
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
7lib=rwa98.so
7b3b6b55 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 ***
6c5f9a1b 12gccroot="-shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -I$ALIROOT/RALICE -o $lib"
7b3b6b55 13#
14echo "lib = " $lib
7b3b6b55 15echo "gccroot = " $gccroot
16#
6c5f9a1b 17### Go to the directory with the source files
18cd $ALIROOT/RALICE/wa98
19#
7b3b6b55 20### Create the dictionary files
6c5f9a1b 21rootcint -f zzzrwa98dict.cxx -c -I$ALIROOT/RALICE RWA98Headers.h RWA98LinkDef.h
7b3b6b55 22#
23### Compile and create the ROOT loadable shared library
24g++ $gccroot *.cxx
25#
6c5f9a1b 26rm zzzrwa98dict.*
7b3b6b55 27rm *.o
28#
6c5f9a1b 29### Move the created lib to the scripts directory and go there
30mv $lib scripts
31cd scripts
32#
7b3b6b55 33echo ' '
6c5f9a1b 34echo '*** gcclib done. Result in ' $lib