-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.msvc-win32
415 lines (343 loc) · 11.7 KB
/
Makefile.msvc-win32
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
#
# Makefile for MINC using Microsoft Visual C/C++ (on Windows, natch).
#
# Written for Microsoft's NMAKE utility, but appears to work
# more-or-less correctly with GNU Make for Windows (as in Cygwin).
#
# Builds all of the MINC command-line utilities, along with the
# MINC libraries MINC2.DLL and VOLUME_IO2.DLL
#
# Assumes that the environment variable NETCDF_ROOT points to
# the location of netcdf.lib and netcdf.h. This could be made
# more flexible to allow the library and header to reside in
# different directories.
#
# $Header: /private-cvsroot/minc/Makefile.msvc-win32,v 6.6 2008-04-11 05:19:26 rotor Exp $
#
PROGS = worldtovoxel.exe \
voxeltoworld.exe \
minc_modify_header.exe \
mincaverage.exe \
minccalc.exe \
mincconcat.exe \
mincconvert.exe \
minccopy.exe \
mincdump.exe \
mincexpand.exe \
mincextract.exe \
mincgen.exe \
mincinfo.exe \
minclookup.exe \
mincmakescalar.exe \
mincmakevector.exe \
mincmath.exe \
mincresample.exe \
mincreshape.exe \
mincstats.exe \
minctoraw.exe \
invert_raw_image.exe \
mincwindow.exe \
rawtominc.exe \
xfmconcat.exe \
xfminvert.exe \
ecattominc.exe \
minctoecat.exe \
mnc2nii.exe \
nii2mnc.exe \
upet2mnc.exe \
dcm2mnc.exe
MINC_HDRS = \
libsrc\minc.h \
libsrc\minc_basic.h \
libsrc\minc_private.h \
libsrc\minc_routines.h \
libsrc\minc_structures.h \
libsrc\minc_useful.h \
libsrc\minc_varlists.h \
libsrc\nd_loop.h \
libsrc\ParseArgv.h \
libsrc\time_stamp.h \
libsrc\type_limits.h \
libsrc\voxel_loop.h \
libsrc\minc_error.h \
libsrc\minc_config.h \
libsrc\minc_compat.h
MINC_OBJS = \
libsrc\ParseArgv.obj \
libsrc\dim_conversion.obj \
libsrc\image_conversion.obj \
libsrc\minc_convenience.obj \
libsrc\minc_error.obj \
libsrc\nd_loop.obj \
libsrc\netcdf_convenience.obj \
libsrc\time_stamp.obj \
libsrc\value_conversion.obj \
libsrc\voxel_loop.obj \
libsrc\hdf_convenience.obj \
libsrc\minc_compat.obj
MINC2_OBJS = \
libsrc2\convert.obj \
libsrc2\datatype.obj \
libsrc2\dimension.obj \
libsrc2\free.obj \
libsrc2\grpattr.obj \
libsrc2\hyper.obj \
libsrc2\label.obj \
libsrc2\m2util.obj \
libsrc2\record.obj \
libsrc2\slice.obj \
libsrc2\valid.obj \
libsrc2\volprops.obj \
libsrc2\volume.obj
VOLIO_OBJS = \
volume_io/Geometry/colour.obj \
volume_io/Geometry/colour_def.obj \
volume_io/Geometry/gaussian.obj \
volume_io/Geometry/inverse.obj \
volume_io/Geometry/newton.obj \
volume_io/Geometry/points.obj \
volume_io/Geometry/splines.obj \
volume_io/Geometry/tensors.obj \
volume_io/Geometry/transforms.obj \
volume_io/MNI_formats/gen_xf_io.obj \
volume_io/MNI_formats/gen_xfs.obj \
volume_io/MNI_formats/grid_transforms.obj \
volume_io/MNI_formats/mni_io.obj \
volume_io/MNI_formats/tag_points.obj \
volume_io/MNI_formats/thin_plate_spline.obj \
volume_io/Prog_utils/alloc.obj \
volume_io/Prog_utils/alloc_check.obj \
volume_io/Prog_utils/arrays.obj \
volume_io/Prog_utils/files.obj \
volume_io/Prog_utils/print.obj \
volume_io/Prog_utils/progress.obj \
volume_io/Prog_utils/string.obj \
volume_io/Prog_utils/time.obj \
volume_io/Volumes/evaluate.obj \
volume_io/Volumes/get_hyperslab.obj \
volume_io/Volumes/input_free.obj \
volume_io/Volumes/input_mnc.obj \
volume_io/Volumes/input_volume.obj \
volume_io/Volumes/multidim_arrays.obj \
volume_io/Volumes/output_mnc.obj \
volume_io/Volumes/output_volume.obj \
volume_io/Volumes/set_hyperslab.obj \
volume_io/Volumes/volume_cache.obj \
volume_io/Volumes/volumes.obj
# Unfortunately the CVS tree does not reflect the desired file organization
# of the software, so we have to fix that up here:
VOLIO_HDRS = \
volume_io\Include\volume_io\alloc.h \
volume_io\Include\volume_io\arrays.h \
volume_io\Include\volume_io\basic.h \
volume_io\Include\volume_io\def_math.h \
volume_io\Include\volume_io\files.h \
volume_io\Include\volume_io\geometry.h \
volume_io\Include\volume_io\geom_structs.h \
volume_io\Include\volume_io\multidim.h \
volume_io\Include\volume_io\progress.h \
volume_io\Include\volume_io\string_funcs.h \
volume_io\Include\volume_io\system_dependent.h \
volume_io\Include\volume_io\transforms.h \
volume_io\Include\volume_io\vol_io_prototypes.h \
volume_io\Include\volume_io\volume_cache.h \
volume_io\Include\volume_io\volume.h
ACR_NEMA_OBJS = \
conversion\Acr_nema\acr_io.obj \
conversion\Acr_nema\element.obj \
conversion\Acr_nema\file_io.obj \
conversion\Acr_nema\group.obj \
conversion\Acr_nema\message.obj \
conversion\Acr_nema\value_repr.obj
ACR_NEMA_HDRS = \
conversion\Acr_nema\acr_nema.h \
conversion\Acr_nema\acr_nema\acr_io.h \
conversion\Acr_nema\acr_nema\element.h \
conversion\Acr_nema\acr_nema\file_io.h \
conversion\Acr_nema\acr_nema\group.h \
conversion\Acr_nema\acr_nema\message.h \
conversion\Acr_nema\acr_nema\value_repr.h
INCLUDES = -I$(NETCDF_ROOT) -I$(HDF5_ROOT)/include -Ilibsrc \
-Iprogs/Proglib -Ivolume_io/Include -Iconversion/Acr_nema
DEFINES = -DDLL_NETCDF -D_POSIX_ -DMINC2 -DWIN32 -D_HDF5USEDLL_ \
-DHAVE_CONFIG_H -D_USE_MATH_DEFINES
NETCDF_LIB = $(NETCDF_ROOT)/netcdf.lib
HDF5_LIB = $(HDF5_ROOT)/dll/hdf5dll.lib
LIBS = minc2.lib volume_io2.lib $(NETCDF_LIB) $(HDF5_LIB)
CFLAGS = $(INCLUDES) $(DEFINES)
.SUFFIXES: .obj
.c.obj:
cl /nologo $(CFLAGS) -c -Fo$*.obj $<
all: $(PROGS) minc2.dll volume_io2.dll
clean:
-del /s *.obj
-del *.exp
-del *.lib
-del *.dll
-del *.exe
-del *.map
LINK = link
$(PROGS): minc2.dll volume_io2.dll
$(MINC_OBJS): libsrc\config.h $(MINC_HDRS)
$(MINC2_OBJS): libsrc2\minc2.h libsrc2\minc2_private.h
minc2.dll: $(MINC_OBJS) $(MINC2_OBJS)
link /dll /nologo /map:minc2.map /out:minc2.dll $(MINC_OBJS) $(MINC2_OBJS) $(NETCDF_LIB) $(HDF5_LIB) ws2_32.lib
volume_io2.dll: $(VOLIO_OBJS) minc2.dll
link /dll /nologo /map:volume_io2.map /out:volume_io2.dll $(VOLIO_OBJS) minc2.lib $(NETCDF_LIB) $(HDF5_LIB)
$(VOLIO_OBJS): $(VOLIO_HDRS)
libsrc\config.h: libsrc\config.h.msvc-win32
copy libsrc\config.h.msvc-win32 libsrc\config.h
WORLDTOVOXEL_OBJS = progs/coordinates/worldtovoxel.obj
worldtovoxel.exe: $(WORLDTOVOXEL_OBJS)
$(LINK) $(WORLDTOVOXEL_OBJS) $(LIBS)
VOXELTOWORLD_OBJS = progs/coordinates/voxeltoworld.obj
voxeltoworld.exe: $(VOXELTOWORLD_OBJS)
$(LINK) $(VOXELTOWORLD_OBJS) $(LIBS)
MINC_MODIFY_HEADER_OBJS = progs/minc_modify_header/minc_modify_header.obj
minc_modify_header.exe: $(MINC_MODIFY_HEADER_OBJS)
$(LINK) $(MINC_MODIFY_HEADER_OBJS) $(LIBS)
MINCAVERAGE_OBJS = progs/mincaverage/mincaverage.obj
mincaverage.exe: $(MINCAVERAGE_OBJS)
$(LINK) $(MINCAVERAGE_OBJS) $(LIBS)
MINCCALC_OBJS = \
progs/minccalc/minccalc.obj \
progs/minccalc/gram.obj \
progs/minccalc/lex.obj \
progs/minccalc/eval.obj \
progs/minccalc/ident.obj \
progs/minccalc/node.obj \
progs/minccalc/optim.obj \
progs/minccalc/scalar.obj \
progs/minccalc/sym.obj \
progs/minccalc/vector.obj
minccalc.exe: $(MINCCALC_OBJS)
$(LINK) $(MINCCALC_OBJS) $(LIBS)
MINCCONCAT_OBJS = progs/mincconcat/mincconcat.obj
mincconcat.exe: $(MINCCONCAT_OBJS)
$(LINK) $(MINCCONCAT_OBJS) $(LIBS)
MINCCONVERT_OBJS = progs/mincconvert/mincconvert.obj
mincconvert.exe: $(MINCCONVERT_OBJS)
$(LINK) $(MINCCONVERT_OBJS) $(LIBS)
MINCCOPY_OBJS = progs/minccopy/minccopy.obj
minccopy.exe: $(MINCCOPY_OBJS)
$(LINK) $(MINCCOPY_OBJS) $(LIBS)
MINCDUMP_OBJS = \
progs/mincdump/mincdump.obj \
progs/mincdump/vardata.obj \
progs/mincdump/dumplib.obj
mincdump.exe: $(MINCDUMP_OBJS)
$(LINK) $(MINCDUMP_OBJS) $(LIBS)
MINCEXPAND_OBJS = progs/mincexpand/mincexpand.obj
mincexpand.exe: $(MINCEXPAND_OBJS)
$(LINK) $(MINCEXPAND_OBJS) $(LIBS)
MINCEXTRACT_OBJS = progs/mincextract/mincextract.obj
mincextract.exe: $(MINCEXTRACT_OBJS)
$(LINK) $(MINCEXTRACT_OBJS) $(LIBS)
MINCGEN_OBJS = \
progs/mincgen/escapes.obj \
progs/mincgen/genlib.obj \
progs/mincgen/getfill.obj \
progs/mincgen/init.obj \
progs/mincgen/load.obj \
progs/mincgen/main.obj \
progs/mincgen/ncgentab.obj \
progs/mincgen/ncgenyy.obj
mincgen.exe: $(MINCGEN_OBJS)
$(LINK) $(MINCGEN_OBJS) $(LIBS)
MINCINFO_OBJS = progs/mincinfo/mincinfo.obj
mincinfo.exe: $(MINCINFO_OBJS)
$(LINK) $(MINCINFO_OBJS) $(LIBS)
MINCLOOKUP_OBJS = progs/minclookup/minclookup.obj
minclookup.exe: $(MINCLOOKUP_OBJS)
$(LINK) $(MINCLOOKUP_OBJS) $(LIBS)
MINCMAKESCALAR_OBJS = progs/mincmakescalar/mincmakescalar.obj
mincmakescalar.exe: $(MINCMAKESCALAR_OBJS)
$(LINK) $(MINCMAKESCALAR_OBJS) $(LIBS)
MINCMAKEVECTOR_OBJS = progs/mincmakevector/mincmakevector.obj
mincmakevector.exe: $(MINCMAKEVECTOR_OBJS)
$(LINK) $(MINCMAKEVECTOR_OBJS) $(LIBS)
MINCMATH_OBJS = progs/mincmath/mincmath.obj
mincmath.exe: $(MINCMATH_OBJS)
$(LINK) $(MINCMATH_OBJS) $(LIBS)
MINCRESAMPLE_OBJS = \
progs/mincresample/mincresample.obj \
progs/mincresample/resample_volumes.obj \
progs/Proglib/convert_origin_to_start.obj
mincresample.exe: $(MINCRESAMPLE_OBJS)
$(LINK) $(MINCRESAMPLE_OBJS) $(LIBS)
MINCRESHAPE_OBJS = \
progs/mincreshape/mincreshape.obj \
progs/mincreshape/copy_data.obj
mincreshape.exe: $(MINCRESHAPE_OBJS)
$(LINK) $(MINCRESHAPE_OBJS) $(LIBS)
MINCSTATS_OBJS = progs/mincstats/mincstats.obj
mincstats.exe: $(MINCSTATS_OBJS)
$(LINK) $(MINCSTATS_OBJS) $(LIBS)
MINCTORAW_OBJS = progs/minctoraw/minctoraw.obj
minctoraw.exe: $(MINCTORAW_OBJS)
$(LINK) $(MINCTORAW_OBJS) $(LIBS)
INVERT_RAW_IMAGE_OBJS = progs/mincview/invert_raw_image.obj
invert_raw_image.exe: $(INVERT_RAW_IMAGE_OBJS)
$(LINK) $(INVERT_RAW_IMAGE_OBJS) $(LIBS)
MINCWINDOW_OBJS = progs/mincwindow/mincwindow.obj
mincwindow.exe: $(MINCWINDOW_OBJS)
$(LINK) $(MINCWINDOW_OBJS) $(LIBS)
RAWTOMINC_OBJS = \
progs/rawtominc/rawtominc.obj \
progs/Proglib/convert_origin_to_start.obj
rawtominc.exe: $(RAWTOMINC_OBJS)
$(LINK) $(RAWTOMINC_OBJS) $(LIBS)
XFMCONCAT_OBJS = progs/xfm/xfmconcat.obj
xfmconcat.exe: $(XFMCONCAT_OBJS)
$(LINK) $(XFMCONCAT_OBJS) $(LIBS)
XFMINVERT_OBJS = progs/xfm/xfminvert.obj
xfminvert.exe: $(XFMINVERT_OBJS)
$(LINK) $(XFMINVERT_OBJS) $(LIBS)
ECATTOMINC_OBJS = \
conversion/ecattominc/ecat_file.obj \
conversion/ecattominc/ecattominc.obj \
conversion/ecattominc/insertblood.obj \
conversion/ecattominc/machine_indep.obj
$(ECATTOMINC_OBJS): conversion/ecattominc/ecat_file.h \
conversion/ecattominc/machine_indep.h \
conversion/ecattominc/ecat_header_definition.h
ecattominc.exe: $(ECATTOMINC_OBJS)
$(LINK) $(ECATTOMINC_OBJS) $(LIBS) WS2_32.LIB
MINCTOECAT_OBJS = \
conversion/minctoecat/ecat_write.obj \
conversion/minctoecat/minctoecat.obj \
conversion/minctoecat/machine_indep.obj
$(MINCTOECAT_OBJS): conversion/minctoecat/ecat_write.h \
conversion/minctoecat/machine_indep.h
minctoecat.exe: $(MINCTOECAT_OBJS)
$(LINK) $(MINCTOECAT_OBJS) $(LIBS)
NII2MNC_OBJS = \
conversion/nifti1/nii2mnc.obj \
conversion/nifti1/nifti1_io.obj
NII2MNC_OBJS: conversion/nifti1/nifti1.h \
conversion/nifti1/nifti1_io.h
nii2mnc.exe: $(NII2MNC_OBJS)
$(LINK) $(NII2MNC_OBJS) $(LIBS)
MNC2NII_OBJS = \
conversion/nifti1/mnc2nii.obj \
conversion/nifti1/nifti1_io.obj
MNC2NII_OBJS: conversion/nifti1/nifti1.h \
conversion/nifti1/nifti1_io.h
mnc2nii.exe: $(MNC2NII_OBJS)
$(LINK) $(MNC2NII_OBJS) $(LIBS)
UPET2MNC_OBJS = \
conversion/micropet/upet2mnc.obj
upet2mnc.exe: $(UPET2MNC_OBJS)
$(LINK) $(UPET2MNC_OBJS) $(LIBS)
$(ACR_NEMA_OBJS): $(ACR_NEMA_HDRS)
DCM2MNC_OBJS = \
conversion/dcm2mnc/dcm2mnc.obj \
conversion/dcm2mnc/dicom_to_minc.obj \
conversion/dcm2mnc/dicom_read.obj \
conversion/dcm2mnc/minc_file.obj \
conversion/dcm2mnc/progress.obj \
conversion/dcm2mnc/siemens_to_dicom.obj \
conversion/dcm2mnc/string_to_filename.obj \
$(ACR_NEMA_OBJS)
dcm2mnc.exe: $(DCM2MNC_OBJS)
$(LINK) $(DCM2MNC_OBJS) $(LIBS)