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 --- Prevent linking of the standard ROOT library libNew.lib
34 if exist %ROOTSYS%\lib\libNew.lib rename %ROOTSYS%\lib\libNew.lib libNew.lix
36 rem --- The option strings for MSVC++ DLL compilation and linking ---
37 set mscomp=/nologo /c /Ze /TP /MD /GR /GX /I%ROOTSYS%\include
38 set msdll=/nologo /Ze /TP /MD /LD /GD /GR /GX /I%ROOTSYS%\include
39 set mslink=/ENTRY:_DllMainCRTStartup@12 %ROOTSYS%\lib\*.lib
41 if "%1" == "" goto export
42 if "%1" == "export" goto export
43 if "%1" == "full" goto full
45 rem --- Displaying of the help info ---
46 echo ****************************************************************************
47 echo * Script to create an MSVC++ LIB and relocatable DLL from *.cxx files
51 echo * mklibs export : ROOT loadable DLL and export LIB are created
52 echo * mklibs full : ROOT loadable DLL and full LIB version are created
56 echo * 1) "mklibs export" is the default, enabling ROOT loadable library creation
57 echo * via 'double clicking'.
58 echo * 2) Providing unsupported options results in displaying the help info.
60 echo * This script creates ralice.lib and ralice.dll from all .h and .cxx files
61 echo * in the current directory.
63 echo * In view of the ROOTCINT processing, the following two standard files
64 echo * are always required :
66 echo * RALICEHeaders.h : containing an include of all .h files
67 echo * RALICELinkDef.h : containing the #pragma's to define all classes
68 echo ****************************************************************************
72 echo *** Creation of ROOT loadable export libraries
74 rem --- Set the RALICE source directory as working directory
76 rem --- Creation of ROOT dictionary ---
77 rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
78 rem --- Compilation step ---
80 rem --- Creation of the export LIB ---
81 bindexplib ralice *.obj > ralice.def
82 lib /nologo /machine:IX86 *.obj /def:ralice.def /out:ralice.lib
83 rem --- Creation of the DLL ---
84 link /nologo /machine:IX86 /DLL *.obj ralice.exp %mslink% /OUT:ralice.dll
85 rem --- Move the created libs to the SCRIPTS subdirectory
86 move ralice.lib .\scripts
87 move ralice.dll .\scripts
88 rem --- Delete all intermediate files ---
100 echo *** Creation of ROOT loadable full version libraries
102 rem --- Set the RALICE source directory as working directory
104 rem --- Creation of ROOT dictionary ---
105 rootcint zzzralicedict.cxx -c RALICEHeaders.h RALICELinkDef.h
106 rem --- Creation of the DLL ---
107 cl %msdll% *.cxx /link %mslink% /OUT:ralice.dll
108 rem --- Creation of the full version LIB ---
109 lib /nologo /machine:IX86 *.obj /out:ralice.lib
110 rem --- Move the created libs to the SCRIPTS subdirectory
111 move ralice.lib .\scripts
112 move ralice.dll .\scripts
113 rem --- Delete all intermediate files ---
116 del zzzralicedict.cxx
119 echo *** mklibs done.
123 rem --- Go back to original directory
125 rem --- End of script ---