11-feb-2004 NvE In script "gcclib" the option -Wno-long-long added to prevent warning...
[u/mrichter/AliRoot.git] / RALICE / scripts / gcclib
CommitLineData
6aff9852 1#!/bin/sh
84bb7c66 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=ralice.so
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 ***
6aff9852 12gccroot="-shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -o $lib"
84bb7c66 13#
14echo "lib = " $lib
15echo "gccroot = " $gccroot
16#
17### Create the dictionary files
18rootcint -f zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
19#
20### Compile and create the ROOT loadable shared library
21g++ $gccroot *.cxx
22#
23rm zzzralicedict.*
24rm *.o
25#rm so_locations
26#
27echo ' '
28echo '*** gcclib done. Result in ralice.so'