2 rem ****************************************************************************
3 rem * Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
7 rem * mklibs export : ROOT loadable DLL and export LIB are created
8 rem * mklibs full : ROOT loadable DLL and full LIB version are created
12 rem * 1) "mklibs export" is the default, enabling ROOT loadable library creation
13 rem * via 'double clicking'.
15 rem * 2) Providing unsupported options results in displaying the help info.
17 rem * This script creates ralice.lib and ralice.dll from all .h and .cxx files
18 rem * in the current directory.
20 rem * In view of the ROOTCINT processing, the following two standard files
21 rem * are always required :
23 rem * RALICEHeaders.h : containing an include of all .h files
24 rem * RALICELinkDef.h : containing the #pragma's to define all classes
26 rem * --- NvE 04-apr-2000 UU-SAP Utrecht
27 rem ****************************************************************************
30 echo === Automatic ROOT library production of files ralice.lib and ralice.dll ===
33 rem --- The option strings for MSVC++ DLL compilation and linking ---
34 set mscomp=/nologo /c /TP /Za /MD /I%ROOTSYS%\include
35 set msdll=/nologo /TP /Za /MD /LD /GD /I%ROOTSYS%\include
36 set mslink=/ENTRY:_DllMainCRTStartup@12 %ROOTSYS%\lib\*.lib
38 if "%1" == "" goto export
39 if "%1" == "export" goto export
40 if "%1" == "full" goto full
42 rem --- Displaying of the help info ---
43 echo ****************************************************************************
44 echo * Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
48 echo * mklibs export : ROOT loadable DLL and export LIB are created
49 echo * mklibs full : ROOT loadable DLL and full LIB version are created
53 echo * 1) "mklibs export" is the default, enabling ROOT loadable library creation
54 echo * via 'double clicking'.
55 echo * 2) Providing unsupported options results in displaying the help info.
57 echo * This script creates ralice.lib and ralice.dll from all .h and .cxx files
58 echo * in the current directory.
60 echo * In view of the ROOTCINT processing, the following two standard files
61 echo * are always required :
63 echo * RALICEHeaders.h : containing an include of all .h files
64 echo * RALICELinkDef.h : containing the #pragma's to define all classes
65 echo ****************************************************************************
69 echo *** Creation of ROOT loadable export libraries
71 rem --- Creation of ROOT dictionary ---
72 rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
73 rem --- Compilation step ---
75 rem --- Creation of the export LIB ---
76 bindexplib ralice *.obj > ralice.def
77 lib /nologo /machine:IX86 *.obj /def:ralice.def /out:ralice.lib
78 rem --- Creation of the DLL ---
79 link /nologo /machine:IX86 /DLL *.obj ralice.exp %mslink% /OUT:ralice.dll
80 rem --- Delete all intermediate files ---
92 echo *** Creation of ROOT loadable full version libraries
94 rem --- Creation of ROOT dictionary ---
95 rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
96 rem --- Creation of the DLL ---
97 cl %msdll% *.cxx /link %mslink% /OUT:ralice.dll
98 rem --- Creation of the full version LIB ---
99 lib /nologo /machine:IX86 *.obj /out:ralice.lib
100 rem --- Delete all intermediate files ---
103 del zzzralicedict.cxx
106 echo *** mklibs done.
110 rem --- End of script ---