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 --- Set the RALICE source directory as working directory
73 rem --- Creation of ROOT dictionary ---
74 rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
75 rem --- Compilation step ---
77 rem --- Creation of the export LIB ---
78 bindexplib ralice *.obj > ralice.def
79 lib /nologo /machine:IX86 *.obj /def:ralice.def /out:ralice.lib
80 rem --- Creation of the DLL ---
81 link /nologo /machine:IX86 /DLL *.obj ralice.exp %mslink% /OUT:ralice.dll
82 rem --- Move the created libs to the SCRIPTS subdirectory
83 move ralice.lib .\scripts
84 move ralice.dll .\scripts
85 rem --- Delete all intermediate files ---
97 echo *** Creation of ROOT loadable full version libraries
99 rem --- Set the RALICE source directory as working directory
101 rem --- Creation of ROOT dictionary ---
102 rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
103 rem --- Creation of the DLL ---
104 cl %msdll% *.cxx /link %mslink% /OUT:ralice.dll
105 rem --- Creation of the full version LIB ---
106 lib /nologo /machine:IX86 *.obj /out:ralice.lib
107 rem --- Move the created libs to the SCRIPTS subdirectory
108 move ralice.lib .\scripts
109 move ralice.dll .\scripts
110 rem --- Delete all intermediate files ---
113 del zzzralicedict.cxx
116 echo *** mklibs done.
120 rem --- End of script ---