]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Installation scripts for various platforms introduced in the /scripts directory.
authornick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Nov 2004 07:53:01 +0000 (07:53 +0000)
committernick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Nov 2004 07:53:01 +0000 (07:53 +0000)
RALICE/wa98/scripts/alphacxxlib.sh [new file with mode: 0644]
RALICE/wa98/scripts/gcclib.sh [new file with mode: 0644]
RALICE/wa98/scripts/hpcclib.sh [new file with mode: 0644]
RALICE/wa98/scripts/mklibs.bat [new file with mode: 0755]

diff --git a/RALICE/wa98/scripts/alphacxxlib.sh b/RALICE/wa98/scripts/alphacxxlib.sh
new file mode 100644 (file)
index 0000000..5aef828
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+### Shell script to create a ROOT loadable ALPHA-CXX shared lib out of .cxx source code
+###
+### NvE 05-jul-2000 UU-SAP Utrecht
+
+### Name of the produced shared library
+lib=rwa98.so
+
+### The ALICE source directory
+alice=$HOME/cxx/source/alice
+
+### The option string for ALPHA-CXX shared lib compilation and linking ***
+### For the ALPHA-CXX ROOT loadable shared lib the strict requirements are ***
+### dropped to avoid many warnings from the rootcint generated code ***
+alpharoot="-x cxx -g0 -shared -w1 -I$ROOTSYS/include -I$alice -o $lib"
+
+### Create the dictionary files
+rootcint zzzrwa98dict.cxx -c -I$alice RWA98Headers.h RWA98LinkDef.h
+
+### Compile and create the ROOT loadable shared library
+cxx $alpharoot *.cxx   
+
+rm zzzrwa98dict.*
+rm *.o
+rm so_locations
+
+echo ' '
+echo '*** alphacxxlib done. Result in ' $lib
diff --git a/RALICE/wa98/scripts/gcclib.sh b/RALICE/wa98/scripts/gcclib.sh
new file mode 100644 (file)
index 0000000..c7cf628
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+### Shell script to create a ROOT loadable GCC shared lib out of .cxx source code
+###
+### NvE 23-may-2000 UU-SAP Utrecht
+# 
+### Name of the produced shared library
+lib=rwa98.so
+#
+### The ALICE source directory
+alice=$HOME/cxx/source/alice
+# 
+### The option string for GCC shared lib compilation and linking ***
+### For the GCC ROOT loadable shared lib the strict requirements are ***
+### dropped to avoid many warnings from the rootcint generated code ***
+gccroot="-shared -g0 -ansi -pedantic -Wall -Wno-long-long -I$ROOTSYS/include -I$alice -o $lib"
+#
+echo "lib = " $lib
+echo "alice = " $alice
+echo "gccroot = " $gccroot 
+#
+### Create the dictionary files
+rootcint -f zzzrwa98dict.cxx -c -I$alice RWA98Headers.h RWA98LinkDef.h
+# 
+### Compile and create the ROOT loadable shared library
+g++ $gccroot *.cxx   
+# 
+rm zzzwa98dict.*
+rm *.o
+# 
+echo ' ' 
+echo '*** gcclib done. Result in ralice.so' 
diff --git a/RALICE/wa98/scripts/hpcclib.sh b/RALICE/wa98/scripts/hpcclib.sh
new file mode 100644 (file)
index 0000000..42eccbe
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+### Shell script to create a ROOT loadable HP-CC shared lib out of .cxx source code
+###
+### NvE 28-jun-1999 UU-SAP Utrecht
+#
+### The option strings for HP-CC shared lib compilation and linking ***
+### For the HP-CC ROOT loadable shared lib the strict requirements are ***
+### dropped to avoid many warnings from the rootcint generated code ***
+
+hpcomp="-c -s -z +z +a1 +w +DAportable -I$ROOTSYS/include"
+hproot="-c -s -z +z +a1 +DAportable -I$ROOTSYS/include"
+hplink="-L$ROOTSYS/lib/ -l*.sl -lm"
+
+rootcint zzzrwa98dict.cxx -c RWA98Headers.h RWA98LinkDef.h
+
+CC $hproot *.cxx   
+
+CC -b -o rwa98.sl *.o
+
+rm zzzrwa98dict.*
+rm *.o
+
+echo '*** hpcclib done. Result in rwa98.sl'
diff --git a/RALICE/wa98/scripts/mklibs.bat b/RALICE/wa98/scripts/mklibs.bat
new file mode 100755 (executable)
index 0000000..c73033d
--- /dev/null
@@ -0,0 +1,108 @@
+@echo off
+rem ****************************************************************************
+rem *   Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
+rem *
+rem * Usage :
+rem * -------
+rem * mklibs export : ROOT loadable DLL and export LIB are created
+rem * mklibs full   : ROOT loadable DLL and full LIB version are created
+rem * 
+rem * Notes :
+rem * -------
+rem * 1) "mklibs export" is the default, enabling ROOT loadable library creation
+rem *    via 'double clicking'.
+rem *
+rem * 2) Providing unsupported options results in displaying the help info.  
+rem *
+rem * This script creates rwa98.lib and rwa98.dll from all .h and .cxx files
+rem * in the current directory.
+rem *
+rem * In view of the ROOTCINT processing, the following two standard files
+rem * are always required :
+rem *
+rem * RWA98Headers.h : containing an include of all .h files
+rem * RWA98LinkDef.h : containing the #pragma's to define all classes
+rem *
+rem * --- NvE 04-apr-2000 UU-SAP Utrecht
+rem ****************************************************************************
+
+echo .
+echo === Automatic ROOT library production of files rwa98.lib and rwa98.dll ===
+echo .
+
+set alice=c:\nick\cxx\source\alice\AliRoot\RALICE
+
+rem --- The option strings for MSVC++ DLL compilation and linking ---
+set mscomp=/nologo /c /TP /Ze /MD /GR /GX /I%ROOTSYS%\include /I%alice%
+set msdll=/nologo /TP /Ze /MD /LD /GD /GR /GX /I%ROOTSYS%\include /I%alice%
+set mslink=/ENTRY:_DllMainCRTStartup@12 %ROOTSYS%\lib\*.lib %MYLIBS%\*.lib
+
+if "%1" == "" goto export
+if "%1" == "export" goto export
+if "%1" == "full" goto full
+
+rem --- Displaying of the help info ---
+echo ****************************************************************************
+echo *   Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
+echo *
+echo * Usage :
+echo * -------
+echo * mklibs export : ROOT loadable DLL and export LIB are created
+echo * mklibs full   : ROOT loadable DLL and full LIB version are created
+echo * 
+echo * Notes :
+echo * -------
+echo * 1) "mklibs export" is the default, enabling ROOT loadable library creation
+echo *    via 'double clicking'.
+echo * 2) Providing unsupported options results in displaying the help info.  
+echo *
+echo * This script creates rwa98.lib and rwa98.dll from all .h and .cxx files
+echo * in the current directory.
+echo *
+echo * In view of the ROOTCINT processing, the following two standard files
+echo * are always required :
+echo *
+echo * RWA98Headers.h : containing an include of all .h files
+echo * RWA98LinkDef.h : containing the #pragma's to define all classes
+echo ****************************************************************************
+goto end
+
+:export
+echo *** Creation of ROOT loadable export libraries
+echo.
+rem --- Creation of ROOT dictionary ---
+rootcint zzzrwa98dict.cxx -c -Ic:/nick/cxx/source/alice/AliRoot/RALICE RWA98Headers.h RWA98LinkDef.h
+rem --- Compilation step ---
+cl %mscomp% *.cxx
+rem --- Creation of the export LIB ---
+bindexplib rwa98 *.obj > rwa98.def
+lib /nologo /machine:IX86 *.obj /def:rwa98.def /out:rwa98.lib
+rem --- Creation of the DLL ---
+link /nologo /machine:IX86 /DLL *.obj rwa98.exp %mslink% /OUT:rwa98.dll
+del rwa98.def
+del rwa98.exp
+goto root_clean
+
+:full
+echo *** Creation of ROOT loadable full version libraries
+echo.
+rem --- Creation of ROOT dictionary ---
+rootcint zzzrwa98dict.cxx -c -Ic:/nick/cxx/source/alice/AliRoot/RALICE RWA98Headers.h RWA98LinkDef.h
+rem --- Creation of the DLL ---
+cl %msdll% *.cxx /link %mslink% /OUT:rwa98.dll
+rem --- Creation of the full version LIB ---
+lib /nologo /machine:IX86 *.obj /out:rwa98.lib
+goto root_clean
+
+:root_clean
+rem --- Delete all intermediate files --- 
+del .def
+del zzzrwa98dict.h
+del zzzrwa98dict.cxx
+del *.obj
+echo.
+echo *** mklibs done.
+goto end
+
+:end
+rem --- End of script ---