]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/scripts/mklibs.bat
Updated misalignment macros (Raffaele)
[u/mrichter/AliRoot.git] / RALICE / scripts / mklibs.bat
CommitLineData
5486ca8d 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 ralice.lib and ralice.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 * RALICEHeaders.h : containing an include of all .h files
24rem * RALICELinkDef.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 ralice.lib and ralice.dll ===
31echo .
32
a80c27d9 33rem --- Prevent linking of the standard ROOT library libNew.lib
34if exist %ROOTSYS%\lib\libNew.lib rename %ROOTSYS%\lib\libNew.lib libNew.lix
35
5486ca8d 36rem --- The option strings for MSVC++ DLL compilation and linking ---
c72198f1 37set mscomp=/nologo /c /Ze /TP /MD /GR /GX /I%ROOTSYS%\include
38set msdll=/nologo /Ze /TP /MD /LD /GD /GR /GX /I%ROOTSYS%\include
5486ca8d 39set mslink=/ENTRY:_DllMainCRTStartup@12 %ROOTSYS%\lib\*.lib
40
41if "%1" == "" goto export
42if "%1" == "export" goto export
43if "%1" == "full" goto full
44
45rem --- Displaying of the help info ---
46echo ****************************************************************************
47echo * Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
48echo *
49echo * Usage :
50echo * -------
51echo * mklibs export : ROOT loadable DLL and export LIB are created
52echo * mklibs full : ROOT loadable DLL and full LIB version are created
53echo *
54echo * Notes :
55echo * -------
56echo * 1) "mklibs export" is the default, enabling ROOT loadable library creation
57echo * via 'double clicking'.
58echo * 2) Providing unsupported options results in displaying the help info.
59echo *
60echo * This script creates ralice.lib and ralice.dll from all .h and .cxx files
61echo * in the current directory.
62echo *
63echo * In view of the ROOTCINT processing, the following two standard files
64echo * are always required :
65echo *
66echo * RALICEHeaders.h : containing an include of all .h files
67echo * RALICELinkDef.h : containing the #pragma's to define all classes
68echo ****************************************************************************
69goto end
70
71:export
72echo *** Creation of ROOT loadable export libraries
73echo.
e0a93fae 74rem --- Set the RALICE source directory as working directory
75cd ..
5486ca8d 76rem --- Creation of ROOT dictionary ---
77rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
78rem --- Compilation step ---
79cl %mscomp% *.cxx
80rem --- Creation of the export LIB ---
81bindexplib ralice *.obj > ralice.def
82lib /nologo /machine:IX86 *.obj /def:ralice.def /out:ralice.lib
83rem --- Creation of the DLL ---
84link /nologo /machine:IX86 /DLL *.obj ralice.exp %mslink% /OUT:ralice.dll
e0a93fae 85rem --- Move the created libs to the SCRIPTS subdirectory
86move ralice.lib .\scripts
87move ralice.dll .\scripts
5486ca8d 88rem --- Delete all intermediate files ---
89del .def
90del ralice.def
91del ralice.exp
92del zzzralicedict.h
93del zzzralicedict.cxx
94del *.obj
95echo.
96echo *** mklibs done.
97goto end
98
99:full
100echo *** Creation of ROOT loadable full version libraries
101echo.
e0a93fae 102rem --- Set the RALICE source directory as working directory
103cd ..
5486ca8d 104rem --- Creation of ROOT dictionary ---
105rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
106rem --- Creation of the DLL ---
107cl %msdll% *.cxx /link %mslink% /OUT:ralice.dll
108rem --- Creation of the full version LIB ---
109lib /nologo /machine:IX86 *.obj /out:ralice.lib
e0a93fae 110rem --- Move the created libs to the SCRIPTS subdirectory
111move ralice.lib .\scripts
112move ralice.dll .\scripts
5486ca8d 113rem --- Delete all intermediate files ---
114del .def
115del zzzralicedict.h
116del zzzralicedict.cxx
117del *.obj
118echo.
119echo *** mklibs done.
120goto end
121
122:end
965bd237 123rem --- Go back to original directory
124cd scripts
5486ca8d 125rem --- End of script ---