]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/wa98/scripts/gcclib.sh
New classes to facilitate features extraction (M.Ivanov)
[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
8#
9### The ALICE source directory
10alice=$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 ***
15gccroot="-shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -I$alice -o $lib"
16#
17echo "lib = " $lib
18echo "alice = " $alice
19echo "gccroot = " $gccroot
20#
21### Create the dictionary files
22rootcint -f zzzrwa98dict.cxx -c -I$alice RWA98Headers.h RWA98LinkDef.h
23#
24### Compile and create the ROOT loadable shared library
25g++ $gccroot *.cxx
26#
27rm zzzwa98dict.*
28rm *.o
29#
30echo ' '
31echo '*** gcclib done. Result in ralice.so'