-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
617 lines (528 loc) · 15.8 KB
/
Makefile.am
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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
# Makefile.am for MINC2
#
AUTOMAKE_OPTIONS = check-news subdir-objects
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS =
AM_YFLAGS = -d --debug
SUBDIRS = . volume_io testdir doc
if MINC2
SUBDIRS += libsrc2/test
endif
# how to build man pages from POD
progs/minccomplete/minccomplete.man1: progs/minccomplete/minccomplete
$(POD2MAN) --section=1 $< > $@
progs/minchistory/minchistory.man1: progs/minchistory/minchistory
$(POD2MAN) --section=1 $< > $@
progs/mincpik/mincpik.man1: progs/mincpik/mincpik
$(POD2MAN) --section=1 $< > $@
# Add these to the include searches.
#
INCLUDES = \
-I$(top_srcdir)/libsrc \
-I$(top_builddir)/volume_io/Include \
-I$(top_srcdir)/volume_io/Include \
-I$(top_srcdir)/progs/Proglib \
-I$(top_srcdir)/conversion/Acr_nema
if MINC2
INCLUDES += -I$(top_srcdir)/libsrc2
endif
# Headers which must be installed.
#
include_HEADERS = \
libsrc/minc.h \
libsrc/ParseArgv.h \
libsrc/voxel_loop.h \
libsrc/nd_loop.h \
libsrc/time_stamp.h \
libsrc/minc_compat.h \
volume_io/Include/volume_io.h \
libsrc2/minc2.h \
libsrc/minc_simple.h
include_volume_iodir = $(includedir)/volume_io
include_volume_io_HEADERS = \
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/geom_structs.h \
volume_io/Include/volume_io/geometry.h \
volume_io/Include/internal_volume_io.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.h \
volume_io/Include/volume_io/volume_cache.h
# Header files which must be included in the distribution but which are
# not part of the installation.
#
noinst_HEADERS = \
libsrc/read_file_names.h \
libsrc/minc_basic.h \
libsrc/minc_config.h \
libsrc/minc_error.h \
libsrc/minc_private.h \
libsrc/minc_routines.h \
libsrc/minc_structures.h \
libsrc/minc_useful.h \
libsrc/minc_varlists.h \
libsrc/type_limits.h \
libsrc/hdf_convenience.h \
progs/Proglib/convert_origin_to_start.h \
progs/Proglib/minc_def.h \
progs/minccalc/errx.h \
progs/minccalc/node.h \
progs/minccalc/gram.h \
progs/mincmorph/kernel_io.h \
progs/mincmorph/kernel_ops.h \
progs/mincresample/mincresample.h \
progs/mincreshape/mincreshape.h \
progs/mincsample/mt19937ar.h \
libsrc2/minc2_private.h \
progs/mincdump/mincdump.h \
progs/mincdump/dumplib.h \
progs/mincdump/vardata.h \
progs/mincgen/generic.h \
progs/mincgen/genlib.h \
progs/mincgen/ncgen.h \
progs/mincgen/ncgentab.h \
conversion/ecattominc/ecat_file.h \
conversion/ecattominc/machine_indep.h \
conversion/ecattominc/ecat_header_definition.h \
conversion/minctoecat/ecat_write.h \
conversion/minctoecat/machine_indep.h \
conversion/nifti1/nifti1.h \
conversion/nifti1/nifti1_io.h \
conversion/nifti1/nifti1_local.h \
conversion/nifti1/znzlib.h \
conversion/nifti1/analyze75.h \
conversion/dcm2mnc/acr_element_defs.h \
conversion/dcm2mnc/dcm2mnc.h \
conversion/dcm2mnc/dicom_read.h \
conversion/dcm2mnc/dicom_to_minc.h \
conversion/dcm2mnc/ext_element_defs.h \
conversion/dcm2mnc/minc_file.h \
conversion/dcm2mnc/progress.h \
conversion/dcm2mnc/siemens_to_dicom.h \
conversion/dcm2mnc/siemens_header_defs.h \
conversion/dcm2mnc/siemens_header_table.h \
conversion/dcm2mnc/spi_element_defs.h \
conversion/dcm2mnc/string_to_filename.h \
conversion/dcm2mnc/pms_element_defs.h \
conversion/dcm2mnc/gems_element_defs.h \
conversion/vff2mnc/vff2mnc.h
if ACR_NEMA_TOOLS
include_HEADERS += conversion/Acr_nema/acr_nema.h
include_acr_nemadir = $(includedir)/acr_nema
include_acr_nema_HEADERS = \
conversion/Acr_nema/acr_nema/acr_io.h \
conversion/Acr_nema/acr_nema/dicom_client_routines.h \
conversion/Acr_nema/acr_nema/dicom_network.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
else
#
# If not installing the full ACR/NEMA package, just add these headers to
# list of headers not to be installed.
#
noinst_HEADERS += \
conversion/Acr_nema/acr_nema.h \
conversion/Acr_nema/acr_nema/acr_io.h \
conversion/Acr_nema/acr_nema/dicom_client_routines.h \
conversion/Acr_nema/acr_nema/dicom_network.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
endif
# Libraries which must be built and installed.
#
lib_LTLIBRARIES = libminc2.la libvolume_io2.la
# Conditionally install the libacr_nema.la library. It must always be
# built even if it is not installed.
#
if ACR_NEMA_TOOLS
lib_LTLIBRARIES += libacr_nema.la
else
noinst_LTLIBRARIES = libacr_nema.la
endif
# Scripts we install: sh or perl.
#
dist_bin_SCRIPTS = \
progs/mincdiff/mincdiff \
progs/mincedit/mincedit \
progs/mincheader/mincheader \
progs/mincview/mincview
# Scripts that we process (to add version #s) before install
bin_SCRIPTS = \
progs/minccomplete/minccomplete \
progs/minchistory/minchistory \
progs/mincpik/mincpik \
progs/xfm/xfmflip
# Programs we build and install.
#
bin_PROGRAMS = \
voxeltoworld \
worldtovoxel \
minc_modify_header \
mincaverage \
mincblob \
minccalc \
minccmp \
mincconcat \
minccopy \
mincexpand \
mincextract \
mincgen \
mincinfo \
minclookup \
mincmakescalar \
mincmakevector \
mincmath \
mincmorph \
mincresample \
mincreshape \
mincsample \
mincstats \
minctoraw \
invert_raw_image \
mincwindow \
rawtominc \
transformtags \
xfm2def \
xfmconcat \
xfminvert \
mincconvert \
mincdump \
ecattominc \
minctoecat \
mnc2nii \
nii2mnc \
upet2mnc \
dcm2mnc \
vff2mnc
if ACR_NEMA_TOOLS
bin_PROGRAMS += \
acr_test \
dump_acr_nema \
extract_acr_nema \
read_acr_nema \
dicom_test \
copy_acr_nema \
byte_swap \
extract
endif
noinst_PROGRAMS = \
mincexample1 \
mincexample2
LDADD = libvolume_io2.la libminc2.la
EXTRA_DIST = \
$(m4_files) \
$(ezMINC_files) \
progs/minccomplete/minccomplete.in \
progs/minchistory/minchistory.in \
progs/mincpik/mincpik.in \
progs/xfm/xfmflip.in \
libsrc/strdup.c \
epm-header.in \
libsrc/config.h.msvc-win32 \
Makefile.msvc-win32 \
conversion/Acr_nema/dicom.txt \
INSTALL.minc \
CMakeLists.txt \
config.h.cmake \
UseMINC2.cmake.in \
MINC2Config.cmake.in \
progs/CMakeLists.txt \
conversion/CMakeLists.txt \
cmake-modules/FindHDF5.cmake \
cmake-modules/FindNETCDF.cmake
m4_files = \
m4/mni_REQUIRE_LIB.m4 \
m4/smr_WITH_BUILD_PATH.m4
ezMINC_files = \
ezminc/examples/volume_msq_dist.cpp
ezminc/examples/CMakeLists.txt
ezminc/examples/fuzzy_volume_similarity.cpp
ezminc/examples/trilinear_resample.cpp
ezminc/examples/volume_avg.cpp
ezminc/examples/volume_gtc_similarity.cpp
ezminc/examples/volume_similarity.cpp
ezminc/minc_1_simple_rw.cpp
ezminc/minc_1_simple_rw.h
ezminc/minc_io_4d_volume.h
ezminc/minc_io_fixed_vector.h
ezminc/minc_io_simple_volume.h
ezminc/tests/minc_rw_test2.cpp
ezminc/tests/minc_rw_test_4d.cpp
ezminc/tests/minc_rw_test_simple.cpp
ezminc/tests/CMakeLists.txt
ezminc/tests/ezminc_rw_test.cpp
ezminc/tests/ezminc_stats.cpp
ezminc/minc_1_simple.h
ezminc/CMakeLists.txt
ezminc/minc_1_rw.cpp
ezminc/minc_1_rw.h
ezminc/minc_io_exceptions.h
voxeltoworld_SOURCES = progs/coordinates/voxeltoworld.c
worldtovoxel_SOURCES = progs/coordinates/worldtovoxel.c
minc_modify_header_SOURCES = progs/minc_modify_header/minc_modify_header.c
mincaverage_SOURCES = progs/mincaverage/mincaverage.c
mincblob_SOURCES = progs/mincblob/mincblob.c
minccalc_CFLAGS = -Iprogs/minccalc -I$(srcdir)/progs/minccalc
minccalc_SOURCES = \
progs/minccalc/minccalc.c \
progs/minccalc/gram.y \
progs/minccalc/eval.c \
progs/minccalc/ident.c \
progs/minccalc/lex.l \
progs/minccalc/node.c \
progs/minccalc/optim.c \
progs/minccalc/scalar.c \
progs/minccalc/sym.c \
progs/minccalc/vector.c
mincconcat_SOURCES = progs/mincconcat/mincconcat.c
minccopy_SOURCES = progs/minccopy/minccopy.c
minccmp_SOURCES = progs/minccmp/minccmp.c
mincexample1_SOURCES = progs/mincexample/mincexample1.c
mincexample2_SOURCES = progs/mincexample/mincexample2.c
mincexpand_SOURCES = progs/mincexpand/mincexpand.c
mincextract_SOURCES = progs/mincextract/mincextract.c
mincgen_SOURCES = \
progs/mincgen/escapes.c \
progs/mincgen/genlib.c \
progs/mincgen/getfill.c \
progs/mincgen/init.c \
progs/mincgen/load.c \
progs/mincgen/main.c \
progs/mincgen/ncgentab.y \
progs/mincgen/ncgenyy.l
mincinfo_SOURCES = progs/mincinfo/mincinfo.c
minclookup_SOURCES = progs/minclookup/minclookup.c
mincmakescalar_SOURCES = progs/mincmakescalar/mincmakescalar.c
mincmakevector_SOURCES = progs/mincmakevector/mincmakevector.c
mincmath_SOURCES = progs/mincmath/mincmath.c
mincmorph_CFLAGS = -Iprogs/mincmorph -I$(srcdir)/progs/mincmorph
mincmorph_SOURCES = \
progs/mincmorph/mincmorph.c \
progs/mincmorph/kernel_io.c \
progs/mincmorph/kernel_ops.c
mincsample_CFLAGS = -Iprogs/mincsample -I$(srcdir)/progs/mincsample
mincresample_SOURCES = \
progs/mincresample/mincresample.c \
progs/mincresample/resample_volumes.c \
progs/Proglib/convert_origin_to_start.c
mincreshape_SOURCES = \
progs/mincreshape/mincreshape.c \
progs/mincreshape/copy_data.c
mincsample_SOURCES = \
progs/mincsample/mincsample.c \
progs/mincsample/mt19937ar.c
mincstats_SOURCES = progs/mincstats/mincstats.c
minctoraw_SOURCES = progs/minctoraw/minctoraw.c
invert_raw_image_SOURCES = progs/mincview/invert_raw_image.c
mincwindow_SOURCES = progs/mincwindow/mincwindow.c
rawtominc_SOURCES = \
progs/rawtominc/rawtominc.c \
progs/Proglib/convert_origin_to_start.c
transformtags_SOURCES = progs/xfm/transformtags.c
xfm2def_SOURCES = progs/xfm/xfm2def.c
xfmconcat_SOURCES = progs/xfm/xfmconcat.c
xfminvert_SOURCES = progs/xfm/xfminvert.c
mincconvert_SOURCES = progs/mincconvert/mincconvert.c
mincdump_SOURCES = \
progs/mincdump/mincdump.c \
progs/mincdump/vardata.c \
progs/mincdump/dumplib.c
ecattominc_SOURCES = \
conversion/ecattominc/ecattominc.c \
conversion/ecattominc/insertblood.c \
conversion/ecattominc/ecat_file.c \
conversion/ecattominc/machine_indep.c
minctoecat_SOURCES = \
conversion/minctoecat/minctoecat.c \
conversion/minctoecat/ecat_write.c \
conversion/minctoecat/machine_indep.c
nii2mnc_SOURCES = \
conversion/nifti1/nii2mnc.c \
conversion/nifti1/nifti1_io.c \
conversion/nifti1/znzlib.c
mnc2nii_SOURCES = \
conversion/nifti1/mnc2nii.c \
conversion/nifti1/nifti1_io.c \
conversion/nifti1/znzlib.c
upet2mnc_SOURCES = \
conversion/micropet/upet2mnc.c
dcm2mnc_LDADD = libacr_nema.la $(LDADD)
dcm2mnc_SOURCES = \
conversion/dcm2mnc/dcm2mnc.c \
conversion/dcm2mnc/dicom_to_minc.c \
conversion/dcm2mnc/siemens_to_dicom.c \
conversion/dcm2mnc/dicom_read.c \
conversion/dcm2mnc/minc_file.c \
conversion/dcm2mnc/progress.c \
conversion/dcm2mnc/string_to_filename.c
vff2mnc_SOURCES = \
conversion/vff2mnc/vff2mnc.c
acr_test_LDADD = libacr_nema.la
acr_test_SOURCES = conversion/Acr_nema/acr_test.c
dump_acr_nema_LDADD = libacr_nema.la
dump_acr_nema_SOURCES = conversion/Acr_nema/dump_acr_nema.c
extract_acr_nema_LDADD = libacr_nema.la
extract_acr_nema_SOURCES = conversion/Acr_nema/extract_acr_nema.c
read_acr_nema_LDADD = libacr_nema.la
read_acr_nema_SOURCES = conversion/Acr_nema/read_acr_nema.c
dicom_test_LDADD = libacr_nema.la
dicom_test_SOURCES = conversion/Acr_nema/dicom_test.c
copy_acr_nema_LDADD = libacr_nema.la
copy_acr_nema_SOURCES = conversion/Acr_nema/copy_acr_nema.c
extract_SOURCES = conversion/image_filters/extract.c
byte_swap_SOURCES = conversion/image_filters/byte_swap.c
libminc2_la_LDFLAGS = -version-info 3:0:0
libminc2_la_SOURCES = \
libsrc/ParseArgv.c \
libsrc/read_file_names.c \
libsrc/dim_conversion.c \
libsrc/image_conversion.c \
libsrc/minc_convenience.c \
libsrc/minc_error.c \
libsrc/nd_loop.c \
libsrc/netcdf_convenience.c \
libsrc/time_stamp.c \
libsrc/value_conversion.c \
libsrc/voxel_loop.c \
libsrc/hdf_convenience.c \
libsrc/minc_compat.c \
libsrc/minc_simple.c
if MINC2
libminc2_la_SOURCES += \
libsrc2/convert.c \
libsrc2/datatype.c \
libsrc2/dimension.c \
libsrc2/free.c \
libsrc2/grpattr.c \
libsrc2/hyper.c \
libsrc2/label.c \
libsrc2/m2util.c \
libsrc2/record.c \
libsrc2/slice.c \
libsrc2/valid.c \
libsrc2/volprops.c \
libsrc2/volume.c
else
EXTRA_DIST += \
libsrc2/convert.c \
libsrc2/datatype.c \
libsrc2/dimension.c \
libsrc2/free.c \
libsrc2/grpattr.c \
libsrc2/hyper.c \
libsrc2/label.c \
libsrc2/m2util.c \
libsrc2/record.c \
libsrc2/slice.c \
libsrc2/valid.c \
libsrc2/volprops.c \
libsrc2/volume.c
endif
libvolume_io2_la_LDFLAGS = -version-info 3:0:0
libvolume_io2_la_SOURCES = \
volume_io/Geometry/colour.c \
volume_io/Geometry/colour_def.c \
volume_io/Geometry/gaussian.c \
volume_io/Geometry/inverse.c \
volume_io/Geometry/newton.c \
volume_io/Geometry/points.c \
volume_io/Geometry/splines.c \
volume_io/Geometry/tensors.c \
volume_io/Geometry/transforms.c \
volume_io/MNI_formats/gen_xf_io.c \
volume_io/MNI_formats/gen_xfs.c \
volume_io/MNI_formats/grid_transforms.c \
volume_io/MNI_formats/mni_io.c \
volume_io/MNI_formats/tag_points.c \
volume_io/MNI_formats/thin_plate_spline.c \
volume_io/Prog_utils/alloc.c \
volume_io/Prog_utils/alloc_check.c \
volume_io/Prog_utils/arrays.c \
volume_io/Prog_utils/files.c \
volume_io/Prog_utils/print.c \
volume_io/Prog_utils/progress.c \
volume_io/Prog_utils/string.c \
volume_io/Prog_utils/time.c \
volume_io/Volumes/evaluate.c \
volume_io/Volumes/get_hyperslab.c \
volume_io/Volumes/input_free.c \
volume_io/Volumes/input_mnc.c \
volume_io/Volumes/input_volume.c \
volume_io/Volumes/multidim_arrays.c \
volume_io/Volumes/output_mnc.c \
volume_io/Volumes/output_volume.c \
volume_io/Volumes/set_hyperslab.c \
volume_io/Volumes/volume_cache.c \
volume_io/Volumes/volumes.c
libacr_nema_la_SOURCES = \
conversion/Acr_nema/acr_io.c \
conversion/Acr_nema/dicom_client_routines.c \
conversion/Acr_nema/dicom_network.c \
conversion/Acr_nema/element.c \
conversion/Acr_nema/file_io.c \
conversion/Acr_nema/globals.c \
conversion/Acr_nema/group.c \
conversion/Acr_nema/message.c \
conversion/Acr_nema/value_repr.c
# MAN pages go here. The "dist_" prefix signals that they
# are to be included in source distribution.
#
dist_man1_MANS = \
progs/coordinates/voxeltoworld.man1 \
progs/minc_modify_header/minc_modify_header.man1 \
progs/mincaverage/mincaverage.man1 \
progs/mincblob/mincblob.man1 \
progs/minccalc/minccalc.man1 \
progs/minccomplete/minccomplete.man1 \
progs/mincconcat/mincconcat.man1 \
progs/minccmp/minccmp.man1 \
progs/minccopy/minccopy.man1 \
progs/mincdiff/mincdiff.man1 \
progs/mincedit/mincedit.man1 \
progs/mincexpand/mincexpand.man1 \
progs/mincextract/mincextract.man1 \
progs/mincgen/mincgen.man1 \
progs/mincheader/mincheader.man1 \
progs/minchistory/minchistory.man1 \
progs/mincinfo/mincinfo.man1 \
progs/minclookup/minclookup.man1 \
progs/mincmakescalar/mincmakescalar.man1 \
progs/mincmakevector/mincmakevector.man1 \
progs/mincmath/mincmath.man1 \
progs/mincpik/mincpik.man1 \
progs/mincresample/mincresample.man1 \
progs/mincreshape/mincreshape.man1 \
progs/mincstats/mincstats.man1 \
progs/minctoraw/minctoraw.man1 \
progs/mincview/invert_raw_image.man1 \
progs/mincview/mincview.man1 \
progs/mincwindow/mincwindow.man1 \
progs/rawtominc/rawtominc.man1 \
progs/xfm/transformtags.man1 \
progs/xfm/xfm2def.man1 \
progs/xfm/xfmconcat.man1 \
progs/xfm/xfminvert.man1 \
progs/xfm/xfmflip.man1 \
progs/mincconvert/mincconvert.man1 \
conversion/ecattominc/ecattominc.man1 \
conversion/minctoecat/minctoecat.man1 \
conversion/nifti1/nii2mnc.man1 \
conversion/nifti1/mnc2nii.man1 \
conversion/micropet/upet2mnc.man1 \
conversion/dcm2mnc/dcm2mnc.man1 \
conversion/vff2mnc/vff2mnc.man1
dist_man3_MANS = libsrc/ParseArgv.man3