]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/wa98/scripts/mklibs.bat
New classes to facilitate features extraction (M.Ivanov)
[u/mrichter/AliRoot.git] / RALICE / wa98 / scripts / mklibs.bat
CommitLineData
7b3b6b55 1@echo off
2rem ****************************************************************************
3rem * Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
4rem *
5rem * Usage :
6rem * -------
7rem * mklibs export : ROOT loadable DLL and export LIB are created
8rem * mklibs full : ROOT loadable DLL and full LIB version are created
9rem *
10rem * Notes :
11rem * -------
12rem * 1) "mklibs export" is the default, enabling ROOT loadable library creation
13rem * via 'double clicking'.
14rem *
15rem * 2) Providing unsupported options results in displaying the help info.
16rem *
17rem * This script creates rwa98.lib and rwa98.dll from all .h and .cxx files
18rem * in the current directory.
19rem *
20rem * In view of the ROOTCINT processing, the following two standard files
21rem * are always required :
22rem *
23rem * RWA98Headers.h : containing an include of all .h files
24rem * RWA98LinkDef.h : containing the #pragma's to define all classes
25rem *
26rem * --- NvE 04-apr-2000 UU-SAP Utrecht
27rem ****************************************************************************
28
29echo .
30echo === Automatic ROOT library production of files rwa98.lib and rwa98.dll ===
31echo .
32
33set alice=c:\nick\cxx\source\alice\AliRoot\RALICE
34
35rem --- The option strings for MSVC++ DLL compilation and linking ---
36set mscomp=/nologo /c /TP /Ze /MD /GR /GX /I%ROOTSYS%\include /I%alice%
37set msdll=/nologo /TP /Ze /MD /LD /GD /GR /GX /I%ROOTSYS%\include /I%alice%
38set mslink=/ENTRY:_DllMainCRTStartup@12 %ROOTSYS%\lib\*.lib %MYLIBS%\*.lib
39
40if "%1" == "" goto export
41if "%1" == "export" goto export
42if "%1" == "full" goto full
43
44rem --- Displaying of the help info ---
45echo ****************************************************************************
46echo * Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
47echo *
48echo * Usage :
49echo * -------
50echo * mklibs export : ROOT loadable DLL and export LIB are created
51echo * mklibs full : ROOT loadable DLL and full LIB version are created
52echo *
53echo * Notes :
54echo * -------
55echo * 1) "mklibs export" is the default, enabling ROOT loadable library creation
56echo * via 'double clicking'.
57echo * 2) Providing unsupported options results in displaying the help info.
58echo *
59echo * This script creates rwa98.lib and rwa98.dll from all .h and .cxx files
60echo * in the current directory.
61echo *
62echo * In view of the ROOTCINT processing, the following two standard files
63echo * are always required :
64echo *
65echo * RWA98Headers.h : containing an include of all .h files
66echo * RWA98LinkDef.h : containing the #pragma's to define all classes
67echo ****************************************************************************
68goto end
69
70:export
71echo *** Creation of ROOT loadable export libraries
72echo.
73rem --- Creation of ROOT dictionary ---
74rootcint zzzrwa98dict.cxx -c -Ic:/nick/cxx/source/alice/AliRoot/RALICE RWA98Headers.h RWA98LinkDef.h
75rem --- Compilation step ---
76cl %mscomp% *.cxx
77rem --- Creation of the export LIB ---
78bindexplib rwa98 *.obj > rwa98.def
79lib /nologo /machine:IX86 *.obj /def:rwa98.def /out:rwa98.lib
80rem --- Creation of the DLL ---
81link /nologo /machine:IX86 /DLL *.obj rwa98.exp %mslink% /OUT:rwa98.dll
82del rwa98.def
83del rwa98.exp
84goto root_clean
85
86:full
87echo *** Creation of ROOT loadable full version libraries
88echo.
89rem --- Creation of ROOT dictionary ---
90rootcint zzzrwa98dict.cxx -c -Ic:/nick/cxx/source/alice/AliRoot/RALICE RWA98Headers.h RWA98LinkDef.h
91rem --- Creation of the DLL ---
92cl %msdll% *.cxx /link %mslink% /OUT:rwa98.dll
93rem --- Creation of the full version LIB ---
94lib /nologo /machine:IX86 *.obj /out:rwa98.lib
95goto root_clean
96
97:root_clean
98rem --- Delete all intermediate files ---
99del .def
100del zzzrwa98dict.h
101del zzzrwa98dict.cxx
102del *.obj
103echo.
104echo *** mklibs done.
105goto end
106
107:end
108rem --- End of script ---