summaryrefslogtreecommitdiffstats
path: root/windows/hdf5build.BAT
blob: a565bd9909833f73bbd64e2b846ef86061277498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
@REM File Name: hdf5build.bat
@REM This batch file is used to build HDF5 Libraries and Tools.
@REM There are 4 options for this batch file:
@REM   1. hdf5build                -- Build HDF5 tools and c library
@REM   2. hdf5build enablecpp      -- Build HDF5 tools and c/c++ library
@REM   3. hdf5build enablefortran  -- Build HDF5 tools and c/fortran library
@REM   4. hdf5build enableall      -- Build HDF5 tools and c/c++/fortran library
@REM By Xuan Bai
@REM Created: Aug. 16, 2004
@REM Last Updated: Oct. 6, 2004

@ECHO OFF
if %1.==. GOTO BUILDC
if "%1"=="/?" GOTO HELP
if %1==enablecpp GOTO BUILDCPP
if %1==enablefortran GOTO BUILDF90
if %1==enableall GOTO BUILDALL
GOTO WRONG

:BUILDC
type nul > build_results.txt
echo ***************************************************************************** >> build_results.txt
echo                         Build H5Tinit.exe >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd windows\misc\typegen\h5tinit
msdev h5tinit.dsp  /make "h5tinit - Win32 Debug" /Rebuild /out ..\..\..\..\h5tinit.log
cd ..\..\..\..\
more h5tinit.log >> build_results.txt
del h5tinit.log

echo ***************************************************************************** >> build_results.txt
echo                         Build HDF5 C Library and Tools >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd src
h5tinit.exe > h5tinit.c

cd ..\windows\proj\all
msdev all.dsw /make "all - ALL" /Rebuild /out ..\..\..\all.log
cd ..\..\..\
more all.log >> build_results.txt
del all.log
GOTO END

:BUILDCPP
type nul > build_results.txt
echo ***************************************************************************** >> build_results.txt
echo                         Build H5Tinit.exe >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd windows\misc\typegen\h5tinit
msdev h5tinit.dsp  /make "h5tinit - Win32 Debug" /Rebuild /out ..\..\..\..\h5tinit.log
cd ..\..\..\..\
more h5tinit.log >> build_results.txt
del h5tinit.log

echo ***************************************************************************** >> build_results.txt
echo                         Build HDF5 C/C++ Libraries and Tools >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd src
h5tinit.exe > h5tinit.c

cd ..\windows\proj\all
msdev all.dsw /make "hl_test_table_cpp - ALL" "testhdf5_cppdll - ALL" "testhdf5_cpp - ALL" "dsets_cppdll - ALL" "dsets_cpp - ALL" "all - ALL" /Rebuild /out ..\..\..\all.log
cd ..\..\..\
more all.log >> build_results.txt
del all.log
GOTO END

:BUILDF90
type nul > build_results.txt
echo ***************************************************************************** >> build_results.txt
echo                         Build H5Tinit.exe >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd windows\misc\typegen\h5tinit
msdev h5tinit.dsp  /make "h5tinit - Win32 Debug" /Rebuild /out ..\..\..\..\h5tinit.log
cd ..\..\..\..\
more h5tinit.log >> build_results.txt
del h5tinit.log

echo ***************************************************************************** >> build_results.txt
echo                         Generate H5f90i_gen.h and H5fortran_types.f90
echo ***************************************************************************** >> build_results.txt

REM Generate H5fortran_detect.f90
cd windows\misc\H5fortran_detect_gen
dfdev H5fortran_detect_gen.dsp /make "H5fortran_detect_gen - Win32 Debug" /Rebuild /out ..\..\..\H5fortran_detect_gen.log
cd ..\..\..\fortran\src
H5fortran_detect_gen.exe > H5fortran_detect.f90
del H5fortran_detect_gen.exe
cd ..\..\
more H5fortran_detect_gen.log >> build_results.txt
del H5fortran_detect_gen.log

REM Generate H5fort_type_defines.h
cd windows\misc\fortrantypegen
dfdev H5fortran_detect.dsp /make "H5fortran_detect - Win32 Debug" /Rebuild /out ..\..\..\H5fortran_detect.log
cd ..\..\..\fortran\src
H5fortran_detect.exe > H5fort_type_defines.h
del H5fortran_detect.exe
cd ..\..\
more H5fortran_detect.log >> build_results.txt
del H5fortran_detect.log

REM Generate H5f90i_gen.h and H5fortran_types.f90
cd windows\misc\matchtypegen
dfdev H5match_types.dsp /make "H5match_types - Win32 Debug" /Rebuild /out ..\..\..\H5match_types.log
cd ..\..\..\fortran\src
H5match_types.exe
del H5match_types.exe
cd ..\..\
more H5match_types.log >> build_results.txt
del H5match_types.log

echo ***************************************************************************** >> build_results.txt
echo                         Build HDF5 C/Fortran Libraries and Tools >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd src
h5tinit.exe > h5tinit.c

cd ..\windows\proj\all
msdev all.dsw /make "hl_test_image_fortran - ALL" "hl_test_lite_fortran - ALL" "hl_test_table_fortran - ALL" "testhdf5_fortrandll - ALL" "testhdf5_fortran - ALL" "flush2_fortrandll - ALL" "flush2_fortran - ALL" "flush1_fortrandll - ALL" "flush1_fortran - ALL" "all - ALL" /Rebuild /out ..\..\..\all.log
cd ..\..\..\
more all.log >> build_results.txt
del all.log
GOTO END

:BUILDALL
type nul > build_results.txt
echo ***************************************************************************** >> build_results.txt
echo                         Build H5Tinit.exe >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd windows\misc\typegen\h5tinit
msdev h5tinit.dsp  /make "h5tinit - Win32 Debug" /Rebuild /out ..\..\..\..\h5tinit.log
cd ..\..\..\..\
more h5tinit.log >> build_results.txt
del h5tinit.log
echo ***************************************************************************** >> build_results.txt
echo                         Generate H5f90i_gen.h and H5fortran_types.f90
echo ***************************************************************************** >> build_results.txt

REM Generate H5fortran_detect.f90
cd windows\misc\H5fortran_detect_gen
dfdev H5fortran_detect_gen.dsp /make "H5fortran_detect_gen - Win32 Debug" /Rebuild /out ..\..\..\H5fortran_detect_gen.log
cd ..\..\..\fortran\src
H5fortran_detect_gen.exe > H5fortran_detect.f90
del H5fortran_detect_gen.exe
cd ..\..\
more H5fortran_detect_gen.log >> build_results.txt
del H5fortran_detect_gen.log

REM Generate H5fort_type_defines.h
cd windows\misc\fortrantypegen
dfdev H5fortran_detect.dsp /make "H5fortran_detect - Win32 Debug" /Rebuild /out ..\..\..\H5fortran_detect.log
cd ..\..\..\fortran\src
H5fortran_detect.exe > H5fort_type_defines.h
del H5fortran_detect.exe
cd ..\..\
more H5fortran_detect.log >> build_results.txt
del H5fortran_detect.log

REM Generate H5f90i_gen.h and H5fortran_types.f90
cd windows\misc\matchtypegen
dfdev H5match_types.dsp /make "H5match_types - Win32 Debug" /Rebuild /out ..\..\..\H5match_types.log
cd ..\..\..\fortran\src
H5match_types.exe
del H5match_types.exe
cd ..\..\
more H5match_types.log >> build_results.txt
del H5match_types.log

echo ***************************************************************************** >> build_results.txt
echo                         Build HDF5 C/C++/Fortran Libraries and Tools >> build_results.txt
echo ***************************************************************************** >> build_results.txt

cd src
h5tinit.exe > h5tinit.c

cd ..\windows\proj\all
msdev all.dsw /make "hl_test_image_fortran - ALL" "hl_test_lite_fortran - ALL" "hl_test_table_fortran - ALL" "testhdf5_fortrandll - ALL" "testhdf5_fortran - ALL" "flush2_fortrandll - ALL" "flush2_fortran - ALL" "flush1_fortrandll - ALL" "flush1_fortran - ALL" "testhdf5_cppdll - ALL" "testhdf5_cpp - ALL" "dsets_cppdll - ALL" "dsets_cpp - ALL" "hl_test_table_cpp - ALL" "all - ALL" /Rebuild /out ..\..\..\all.log
cd ..\..\..\
more all.log >> build_results.txt
del all.log
GOTO END

:WRONG
echo The syntax of the command is incorrect.
echo.

:HELP
echo Builds HDF5 Libraries and Tools.
echo.
echo hdf5build [OPTION]
echo.
echo Please use one of the following options!
echo.
echo    hdf5build                   Build HDF5 C Library and Tools
echo    hdf5build enablecpp         Build HDF5 C/C++ Libraries and Tools
echo    hdf5build enablefortran     Build HDF5 C/Fortran Libraries and Tools
echo    hdf5build enableall         Build HDF5 C/C++/Fortran Libraries and Tools
echo    hdf5build /?                Help information

:END