| 1 |
|
| 2 |
###################################################################### |
| 3 |
# Makefile - command file for make to create CBFlib # |
| 4 |
# # |
| 5 |
# Version 0.9.7 28 June 2021 # |
| 6 |
# # |
| 7 |
# Paul Ellis and # |
| 8 |
# Herbert J. Bernstein ([email protected]) # |
| 9 |
# # |
| 10 |
# (C) Copyright 2006 - 2021 Herbert J. Bernstein # |
| 11 |
# # |
| 12 |
###################################################################### |
| 13 |
|
| 14 |
###################################################################### |
| 15 |
# # |
| 16 |
# YOU MAY REDISTRIBUTE THE CBFLIB PACKAGE UNDER THE TERMS OF THE GPL # |
| 17 |
# # |
| 18 |
# ALTERNATIVELY YOU MAY REDISTRIBUTE THE CBFLIB API UNDER THE TERMS # |
| 19 |
# OF THE LGPL # |
| 20 |
# # |
| 21 |
###################################################################### |
| 22 |
|
| 23 |
########################### GPL NOTICES ############################## |
| 24 |
# # |
| 25 |
# This program is free software; you can redistribute it and/or # |
| 26 |
# modify it under the terms of the GNU General Public License as # |
| 27 |
# published by the Free Software Foundation; either version 2 of # |
| 28 |
# (the License, or (at your option) any later version. # |
| 29 |
# # |
| 30 |
# This program is distributed in the hope that it will be useful, # |
| 31 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 32 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
| 33 |
# GNU General Public License for more details. # |
| 34 |
# # |
| 35 |
# You should have received a copy of the GNU General Public License # |
| 36 |
# along with this program; if not, write to the Free Software # |
| 37 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # |
| 38 |
# 02111-1307 USA # |
| 39 |
# # |
| 40 |
###################################################################### |
| 41 |
|
| 42 |
######################### LGPL NOTICES ############################### |
| 43 |
# # |
| 44 |
# This library is free software; you can redistribute it and/or # |
| 45 |
# modify it under the terms of the GNU Lesser General Public # |
| 46 |
# License as published by the Free Software Foundation; either # |
| 47 |
# version 2.1 of the License, or (at your option) any later version. # |
| 48 |
# # |
| 49 |
# This library is distributed in the hope that it will be useful, # |
| 50 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 51 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # |
| 52 |
# Lesser General Public License for more details. # |
| 53 |
# # |
| 54 |
# You should have received a copy of the GNU Lesser General Public # |
| 55 |
# License along with this library; if not, write to the Free # |
| 56 |
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # |
| 57 |
# MA 02110-1301 USA # |
| 58 |
# # |
| 59 |
###################################################################### |
| 60 |
|
| 61 |
###################################################################### |
| 62 |
# # |
| 63 |
# Stanford University Notices # |
| 64 |
# for the CBFlib software package that incorporates SLAC software # |
| 65 |
# on which copyright is disclaimed # |
| 66 |
# # |
| 67 |
# This software # |
| 68 |
# ------------- # |
| 69 |
# The term "this software", as used in these Notices, refers to # |
| 70 |
# those portions of the software package CBFlib that were created by # |
| 71 |
# employees of the Stanford Linear Accelerator Center, Stanford # |
| 72 |
# University. # |
| 73 |
# # |
| 74 |
# Stanford disclaimer of copyright # |
| 75 |
# -------------------------------- # |
| 76 |
# Stanford University, owner of the copyright, hereby disclaims its # |
| 77 |
# copyright and all other rights in this software. Hence, anyone # |
| 78 |
# may freely use it for any purpose without restriction. # |
| 79 |
# # |
| 80 |
# Acknowledgement of sponsorship # |
| 81 |
# ------------------------------ # |
| 82 |
# This software was produced by the Stanford Linear Accelerator # |
| 83 |
# Center, Stanford University, under Contract DE-AC03-76SFO0515 with # |
| 84 |
# the Department of Energy. # |
| 85 |
# # |
| 86 |
# Government disclaimer of liability # |
| 87 |
# ---------------------------------- # |
| 88 |
# Neither the United States nor the United States Department of # |
| 89 |
# Energy, nor any of their employees, makes any warranty, express or # |
| 90 |
# implied, or assumes any legal liability or responsibility for the # |
| 91 |
# accuracy, completeness, or usefulness of any data, apparatus, # |
| 92 |
# product, or process disclosed, or represents that its use would # |
| 93 |
# not infringe privately owned rights. # |
| 94 |
# # |
| 95 |
# Stanford disclaimer of liability # |
| 96 |
# -------------------------------- # |
| 97 |
# Stanford University makes no representations or warranties, # |
| 98 |
# express or implied, nor assumes any liability for the use of this # |
| 99 |
# software. # |
| 100 |
# # |
| 101 |
# Maintenance of notices # |
| 102 |
# ---------------------- # |
| 103 |
# In the interest of clarity regarding the origin and status of this # |
| 104 |
# software, this and all the preceding Stanford University notices # |
| 105 |
# are to remain affixed to any copy or derivative of this software # |
| 106 |
# made or distributed by the recipient and are to be affixed to any # |
| 107 |
# copy of software made or distributed by the recipient that # |
| 108 |
# contains a copy or derivative of this software. # |
| 109 |
# # |
| 110 |
# Based on SLAC Software Notices, Set 4 # |
| 111 |
# OTT.002a, 2004 FEB 03 # |
| 112 |
###################################################################### |
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
###################################################################### |
| 117 |
# NOTICE # |
| 118 |
# Creative endeavors depend on the lively exchange of ideas. There # |
| 119 |
# are laws and customs which establish rights and responsibilities # |
| 120 |
# for authors and the users of what authors create. This notice # |
| 121 |
# is not intended to prevent you from using the software and # |
| 122 |
# documents in this package, but to ensure that there are no # |
| 123 |
# misunderstandings about terms and conditions of such use. # |
| 124 |
# # |
| 125 |
# Please read the following notice carefully. If you do not # |
| 126 |
# understand any portion of this notice, please seek appropriate # |
| 127 |
# professional legal advice before making use of the software and # |
| 128 |
# documents included in this software package. In addition to # |
| 129 |
# whatever other steps you may be obliged to take to respect the # |
| 130 |
# intellectual property rights of the various parties involved, if # |
| 131 |
# you do make use of the software and documents in this package, # |
| 132 |
# please give credit where credit is due by citing this package, # |
| 133 |
# its authors and the URL or other source from which you obtained # |
| 134 |
# it, or equivalent primary references in the literature with the # |
| 135 |
# same authors. # |
| 136 |
# # |
| 137 |
# Some of the software and documents included within this software # |
| 138 |
# package are the intellectual property of various parties, and # |
| 139 |
# placement in this package does not in any way imply that any # |
| 140 |
# such rights have in any way been waived or diminished. # |
| 141 |
# # |
| 142 |
# With respect to any software or documents for which a copyright # |
| 143 |
# exists, ALL RIGHTS ARE RESERVED TO THE OWNERS OF SUCH COPYRIGHT. # |
| 144 |
# # |
| 145 |
# Even though the authors of the various documents and software # |
| 146 |
# found here have made a good faith effort to ensure that the # |
| 147 |
# documents are correct and that the software performs according # |
| 148 |
# to its documentation, and we would greatly appreciate hearing of # |
| 149 |
# any problems you may encounter, the programs and documents any # |
| 150 |
# files created by the programs are provided **AS IS** without any * |
| 151 |
# warranty as to correctness, merchantability or fitness for any # |
| 152 |
# particular or general use. # |
| 153 |
# # |
| 154 |
# THE RESPONSIBILITY FOR ANY ADVERSE CONSEQUENCES FROM THE USE OF # |
| 155 |
# PROGRAMS OR DOCUMENTS OR ANY FILE OR FILES CREATED BY USE OF THE # |
| 156 |
# PROGRAMS OR DOCUMENTS LIES SOLELY WITH THE USERS OF THE PROGRAMS # |
| 157 |
# OR DOCUMENTS OR FILE OR FILES AND NOT WITH AUTHORS OF THE # |
| 158 |
# PROGRAMS OR DOCUMENTS. # |
| 159 |
###################################################################### |
| 160 |
|
| 161 |
###################################################################### |
| 162 |
# # |
| 163 |
# The IUCr Policy # |
| 164 |
# for the Protection and the Promotion of the STAR File and # |
| 165 |
# CIF Standards for Exchanging and Archiving Electronic Data # |
| 166 |
# # |
| 167 |
# Overview # |
| 168 |
# # |
| 169 |
# The Crystallographic Information File (CIF)[1] is a standard for # |
| 170 |
# information interchange promulgated by the International Union of # |
| 171 |
# Crystallography (IUCr). CIF (Hall, Allen & Brown, 1991) is the # |
| 172 |
# recommended method for submitting publications to Acta # |
| 173 |
# Crystallographica Section C and reports of crystal structure # |
| 174 |
# determinations to other sections of Acta Crystallographica # |
| 175 |
# and many other journals. The syntax of a CIF is a subset of the # |
| 176 |
# more general STAR File[2] format. The CIF and STAR File approaches # |
| 177 |
# are used increasingly in the structural sciences for data exchange # |
| 178 |
# and archiving, and are having a significant influence on these # |
| 179 |
# activities in other fields. # |
| 180 |
# # |
| 181 |
# Statement of intent # |
| 182 |
# # |
| 183 |
# The IUCr's interest in the STAR File is as a general data # |
| 184 |
# interchange standard for science, and its interest in the CIF, # |
| 185 |
# a conformant derivative of the STAR File, is as a concise data # |
| 186 |
# exchange and archival standard for crystallography and structural # |
| 187 |
# science. # |
| 188 |
# # |
| 189 |
# Protection of the standards # |
| 190 |
# # |
| 191 |
# To protect the STAR File and the CIF as standards for # |
| 192 |
# interchanging and archiving electronic data, the IUCr, on behalf # |
| 193 |
# of the scientific community, # |
| 194 |
# # |
| 195 |
# # holds the copyrights on the standards themselves, * |
| 196 |
# # |
| 197 |
# # owns the associated trademarks and service marks, and * |
| 198 |
# # |
| 199 |
# # holds a patent on the STAR File. * |
| 200 |
# # |
| 201 |
# These intellectual property rights relate solely to the # |
| 202 |
# interchange formats, not to the data contained therein, nor to # |
| 203 |
# the software used in the generation, access or manipulation of # |
| 204 |
# the data. # |
| 205 |
# # |
| 206 |
# Promotion of the standards # |
| 207 |
# # |
| 208 |
# The sole requirement that the IUCr, in its protective role, # |
| 209 |
# imposes on software purporting to process STAR File or CIF data # |
| 210 |
# is that the following conditions be met prior to sale or # |
| 211 |
# distribution. # |
| 212 |
# # |
| 213 |
# # Software claiming to read files written to either the STAR * |
| 214 |
# File or the CIF standard must be able to extract the pertinent # |
| 215 |
# data from a file conformant to the STAR File syntax, or the CIF # |
| 216 |
# syntax, respectively. # |
| 217 |
# # |
| 218 |
# # Software claiming to write files in either the STAR File, or * |
| 219 |
# the CIF, standard must produce files that are conformant to the # |
| 220 |
# STAR File syntax, or the CIF syntax, respectively. # |
| 221 |
# # |
| 222 |
# # Software claiming to read definitions from a specific data * |
| 223 |
# dictionary approved by the IUCr must be able to extract any # |
| 224 |
# pertinent definition which is conformant to the dictionary # |
| 225 |
# definition language (DDL)[3] associated with that dictionary. # |
| 226 |
# # |
| 227 |
# The IUCr, through its Committee on CIF Standards, will assist # |
| 228 |
# any developer to verify that software meets these conformance # |
| 229 |
# conditions. # |
| 230 |
# # |
| 231 |
# Glossary of terms # |
| 232 |
# # |
| 233 |
# [1] CIF: is a data file conformant to the file syntax defined # |
| 234 |
# at http://www.iucr.org/iucr-top/cif/spec/index.html # |
| 235 |
# # |
| 236 |
# [2] STAR File: is a data file conformant to the file syntax # |
| 237 |
# defined at http://www.iucr.org/iucr-top/cif/spec/star/index.html # |
| 238 |
# # |
| 239 |
# [3] DDL: is a language used in a data dictionary to define data # |
| 240 |
# items in terms of "attributes". Dictionaries currently approved # |
| 241 |
# by the IUCr, and the DDL versions used to construct these # |
| 242 |
# dictionaries, are listed at # |
| 243 |
# http://www.iucr.org/iucr-top/cif/spec/ddl/index.html # |
| 244 |
# # |
| 245 |
# Last modified: 30 September 2000 # |
| 246 |
# # |
| 247 |
# IUCr Policy Copyright (C) 2000 International Union of # |
| 248 |
# Crystallography # |
| 249 |
###################################################################### |
| 250 |
|
| 251 |
.DELETE_ON_ERROR: |
| 252 |
|
| 253 |
# Version string |
| 254 |
VERSION = 0.9.7 |
| 255 |
|
| 256 |
# |
| 257 |
# Directories |
| 258 |
# |
| 259 |
ROOT = $(PWD) |
| 260 |
LIB = $(ROOT)/lib |
| 261 |
SOLIB = $(ROOT)/solib |
| 262 |
JCBF = $(ROOT)/jcbf |
| 263 |
JAVADIR = $(ROOT)/java |
| 264 |
BIN = $(ROOT)/bin |
| 265 |
SRC = $(ROOT)/src |
| 266 |
INCLUDE = $(ROOT)/include |
| 267 |
M4 = $(ROOT)/m4 |
| 268 |
PY2CBF = $(ROOT)/py2cbf |
| 269 |
PY3CBF = $(ROOT)/pycbf |
| 270 |
EXAMPLES = $(ROOT)/examples |
| 271 |
TEMPLATES= $(ROOT)/templates |
| 272 |
DECTRIS_EXAMPLES = $(EXAMPLES)/dectris_cbf_template_test |
| 273 |
DOC = $(ROOT)/doc |
| 274 |
MINICBF_TEST = $(ROOT)/minicbf_test |
| 275 |
GRAPHICS = $(ROOT)/html_graphics |
| 276 |
DATADIRI = $(ROOT)/../CBFlib_$(VERSION)_Data_Files_Input |
| 277 |
DATADIRO = $(ROOT)/../CBFlib_$(VERSION)_Data_Files_Output |
| 278 |
CBF_PREFIX ?= $(HOME) |
| 279 |
|
| 280 |
# |
| 281 |
# Comment out the next line if scratch test files should be retained |
| 282 |
# |
| 283 |
CLEANTESTS = yes |
| 284 |
|
| 285 |
|
| 286 |
MSYS2=no |
| 287 |
CBFLIB_DONT_USE_LOCAL_HDF5?=no |
| 288 |
CBFLIB_DONT_USE_LZ4?=no |
| 289 |
CBFLIB_DONT_USE_BSHUF?=no |
| 290 |
|
| 291 |
|
| 292 |
CBFLIB_DONT_USE_LOCAL_NUWEB ?= no |
| 293 |
ifeq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes) |
| 294 |
NUWEB=nuweb |
| 295 |
NUWEB_DEP= |
| 296 |
NUWEB_DEP2= |
| 297 |
else |
| 298 |
NUWEB=$(BIN)/nuweb |
| 299 |
NUWEB_DEP=nuweb-1.60 |
| 300 |
NUWEB_DEP2=$(BIN)/nuweb |
| 301 |
endif |
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
CBFLIB_DONT_HAVE_FGETLN ?= yes |
| 306 |
ifeq ($(CBFLIB_DONT_HAVE_FGETLN),yes) |
| 307 |
SRC_FGETLN = $(SRC)/fgetln.c |
| 308 |
else |
| 309 |
SRC_FGETLN = |
| 310 |
endif |
| 311 |
|
| 312 |
|
| 313 |
CBFLIB_DONT_USE_PY2CIFRW ?= no |
| 314 |
ifneq ($(CBFLIB_DONT_USE_PY2CIFRW),yes) |
| 315 |
# |
| 316 |
# Definitions to get versions of python2 PyCifRW and PLY |
| 317 |
# |
| 318 |
PY2CIFRW ?= PyCifRW-4.1 |
| 319 |
PY2PLY = ply-3.2 |
| 320 |
PY2CIFRWFLAG = -DCBF_USE_PYCIFRW |
| 321 |
PY2CIFRW_PREFIX ?= $(HOME)/.local |
| 322 |
endif |
| 323 |
|
| 324 |
CBFLIB_DONT_USE_PY3CIFRW ?= no |
| 325 |
ifneq ($(CBFLIB_DONT_USE_PY3CIFRW),yes) |
| 326 |
# |
| 327 |
# Definitions to get versions of python3 PyCifRW and PLY |
| 328 |
# |
| 329 |
PY3CIFRW ?= PyCifRW-4.3_rev_19Jun21 |
| 330 |
PY3PLY = ply-3.11 |
| 331 |
PY3CIFRWFLAG = -DCBF_USE_PYCIFRW |
| 332 |
PY3CIFRW_PREFIX ?= $(HOME)/.local |
| 333 |
endif |
| 334 |
|
| 335 |
# |
| 336 |
# Definition to get a version of tifflib to support tiff2cbf |
| 337 |
# |
| 338 |
TIFF ?= tiff-4.0.6_rev_3Nov16 |
| 339 |
TIFF_PREFIX ?= $(PWD) |
| 340 |
TIFF_INSTALL = $(TIFF)_INSTALL |
| 341 |
|
| 342 |
|
| 343 |
# |
| 344 |
# Definitions to get a version of HDF5 |
| 345 |
# |
| 346 |
|
| 347 |
ifneq ($(HDF5_PREFIX),) # already installed on system |
| 348 |
CBFLIB_DONT_USE_LOCAL_HDF5 = yes |
| 349 |
HDF5CFLAGS=-DH5_USE_110_API |
| 350 |
endif |
| 351 |
|
| 352 |
ifneq ($(CBFLIB_DONT_USE_LOCAL_HDF5),yes) |
| 353 |
HDF5_PREFIX ?= $(PWD) |
| 354 |
HDF5 ?= hdf5-1.12.0 |
| 355 |
#HDF5 ?= hdf5-1.10.6 |
| 356 |
#HDF5 = hdf5-1.8.18 |
| 357 |
#HDF5 = hdf5-1.10.5 |
| 358 |
ifeq ($(HDF5),hdf5-1.12.0) |
| 359 |
HDF5CFLAGS=-DH5_USE_110_API |
| 360 |
else |
| 361 |
HDF5CFLAGS= |
| 362 |
endif |
| 363 |
HDF5dep = $(HDF5) |
| 364 |
HDF5_INSTALL = $(HDF5)_INSTALL |
| 365 |
ifneq ($(MSYS2),yes) |
| 366 |
HDF5LIBS_LOCAL = $(LIB)/libhdf5.a |
| 367 |
HDF5LIBS_SYSTEM = -lz -ldl |
| 368 |
HDF5SOLIBS_LOCAL = -L$(LIB) -lhdf5 |
| 369 |
HDF5SOLIBS_SYSTEM = -lz |
| 370 |
else |
| 371 |
HDF5LIBS_LOCAL = -L$(LIB) -lhdf5 -lhdf5.dll |
| 372 |
HDF5LIBS_SYSTEM = -lz -ldl |
| 373 |
HDF5SOLIBS_LOCAL = -L$(LIB) -lhdf5 -lhdf5.dll |
| 374 |
HDF5SOLIBS_SYSTEM = -lz |
| 375 |
endif |
| 376 |
else |
| 377 |
HDF5 = |
| 378 |
HDF5dep = |
| 379 |
HDF5_INSTALL = |
| 380 |
HDF5LIBS_LOCAL = |
| 381 |
ifneq ($(HDF5_PREFIX),) |
| 382 |
HDF5lib = -L$(HDF5_PREFIX)/lib |
| 383 |
endif |
| 384 |
ifneq ($(MSYS2),yes) |
| 385 |
HDF5LIBS_SYSTEM = $(HDF5lib) -lhdf5 -lz -ldl |
| 386 |
HDF5SOLIBS_LOCAL = |
| 387 |
HDF5SOLIBS_SYSTEM = $(HDF5lib) -lhdf5 -lz |
| 388 |
else |
| 389 |
HDF5LIBS_SYSTEM = $(HDF5lib) -lhdf5 -lhdf5.dll -lz -ldl |
| 390 |
HDF5SOLIBS_LOCAL = |
| 391 |
HDF5SOLIBS_SYSTEM = $(HDF5lib) -lhdf5 -lhdf5.dll -lz |
| 392 |
endif |
| 393 |
endif |
| 394 |
|
| 395 |
HDF5REGISTER ?= --register manual |
| 396 |
ifneq ($(HDF5_PREFIX),) |
| 397 |
HDF5include = -I$(HDF5_PREFIX)/include |
| 398 |
endif |
| 399 |
|
| 400 |
ifneq ($(MSYS2),yes) |
| 401 |
H5DUMP = $(HDF5_PREFIX)/bin/h5dump |
| 402 |
else |
| 403 |
H5DUMP = /MINGW32/bin/h5dump |
| 404 |
endif |
| 405 |
|
| 406 |
|
| 407 |
CBFLIB_DONT_USE_LZ4 ?= no |
| 408 |
ifneq ($(CBFLIB_DONT_USE_LZ4),yes) |
| 409 |
# |
| 410 |
# Definitions to get a version of HDF5Plugin for LZ4 |
| 411 |
# |
| 412 |
ifneq ($(MSYS2),yes) |
| 413 |
LZ4 ?= HDF5Plugin_5Jun21 |
| 414 |
else |
| 415 |
LZ4 ?= HDF5-External-Filter-Plugins |
| 416 |
endif |
| 417 |
LZ4dep = $(LZ4) |
| 418 |
LZ4src = $(LZ4)/src |
| 419 |
LZ4include = $(LZ4)/include |
| 420 |
LZ4SOLIBS = -L$(SOLIB) -lh5zlz4 |
| 421 |
else |
| 422 |
LZ4SOLIBS = |
| 423 |
LZ4dep = |
| 424 |
endif |
| 425 |
|
| 426 |
CBFLIB_DONT_USE_BSHUF ?= no |
| 427 |
ifneq ($(CBFLIB_DONT_USE_BSHUF),yes) |
| 428 |
# |
| 429 |
# Definitions to get a version of HDF5Plugin for BSHUFFLE WITH LZ4 |
| 430 |
# |
| 431 |
BSHUF ?= bitshuffle-0.2.2.1_15Jun16 |
| 432 |
BSUFdep = $(BSHUF) |
| 433 |
BSHUFsrc = $(BSHUF)/src |
| 434 |
BSHUFinclude = $(BSHUF)/src |
| 435 |
BSHUFSOLIBS = -L$(SOLIB) -lh5zbshuf |
| 436 |
BSHUFFILTER = libbshuf_h5filter |
| 437 |
else |
| 438 |
BSHUFSOLIBS = |
| 439 |
BSHUFdep = |
| 440 |
endif |
| 441 |
|
| 442 |
CBFLIB_DONT_USE_BLOSC ?= no |
| 443 |
ifneq ($(CBFLIB_DONT_USE_BLOSC),yes) |
| 444 |
# |
| 445 |
# Definitions to get a version of HDF5Plugin for BLOSC |
| 446 |
# |
| 447 |
BLOSC = ?c-blosc_4Sep16.tar.gz |
| 448 |
BLOSCdep = $(BLOSC) |
| 449 |
BLOSCFILTER = hdf5-blosc_2Sep16.tar.gz |
| 450 |
BLOSCsrc = $(BLOSC)/src |
| 451 |
BLOSCinclude = $(BLOSC)/src |
| 452 |
BLOSCSOLIBS = -L$(SOLIB) -lh5zbshuf |
| 453 |
BLOSCFILTER = libbshuf_h5filter |
| 454 |
else |
| 455 |
BLOSCSOLIBS = |
| 456 |
BLOSCdep = |
| 457 |
endif |
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
# |
| 462 |
# Definition of python to use |
| 463 |
# |
| 464 |
PYTHON2 ?= python2 |
| 465 |
PYTHON3 ?= python3 |
| 466 |
|
| 467 |
# |
| 468 |
# Definitions to get a stable version of regex |
| 469 |
# |
| 470 |
REGEX_PREFIX ?= $(PWD) |
| 471 |
ifneq ($(REGEX_PREFIX),$(PWD)) |
| 472 |
CBFLIB_DONT_USE_LOCAL_REGEX ?= yes |
| 473 |
endif |
| 474 |
|
| 475 |
|
| 476 |
REGEX_LIBDIR ?= $(REGEX_PREFIX)/lib |
| 477 |
ifneq ($(CBFLIB_DONT_USE_LOCAL_REGEX),yes) |
| 478 |
REGEX ?= pcre-8.38 |
| 479 |
REGEXDEP = $(REGEX) |
| 480 |
REGEX_INSTALL = $(REGEX)_INSTALL |
| 481 |
REGEX_LIB ?= pcreposix |
| 482 |
REGEX_LIB2 ?= pcre |
| 483 |
ifneq ($(MSYS2),yes) |
| 484 |
REGEX_LIBS ?= -L $(REGEX_LIBDIR) -l$(REGEX_LIB) -l$(REGEX_LIB2) |
| 485 |
REGEX_LIBS_STATIC = $(LIB)/libpcreposix.a $(LIB)/libpcre.a |
| 486 |
else |
| 487 |
REGEX_LIBS ?= -L $(REGEX_LIBDIR) -l$(REGEX_LIB) -l$(REGEX_LIB).dll -l$(REGEX_LIB2) -l$(REGEX_LIB2).dll |
| 488 |
REGEX_LIBS_STATIC = $(REGEX_LIBS) |
| 489 |
endif |
| 490 |
REGEX_INCLUDES ?= -I $(REGEX_PREFIX) |
| 491 |
else |
| 492 |
REGEX = |
| 493 |
REGEXDEP = |
| 494 |
REGEX_INSTALL = |
| 495 |
REGEX_LIB ?= |
| 496 |
REGEX_LIB2 ?= |
| 497 |
REGEX_LIBS ?= |
| 498 |
REGEX_INCLUDES ?= |
| 499 |
endif |
| 500 |
|
| 501 |
|
| 502 |
# Program to use to retrieve a URL |
| 503 |
|
| 504 |
DOWNLOAD ?= wget -N |
| 505 |
#DOWNLOAD ?= curl -O -L |
| 506 |
|
| 507 |
# Flag to control symlinks versus copying |
| 508 |
|
| 509 |
SLFLAGS = --use_ln |
| 510 |
LN = ln -s -f |
| 511 |
|
| 512 |
# |
| 513 |
# Program to use to pack shars |
| 514 |
# |
| 515 |
SHAR = /usr/bin/shar |
| 516 |
#SHAR = /usr/local/bin/gshar |
| 517 |
|
| 518 |
# |
| 519 |
# Program to use to create archives |
| 520 |
# |
| 521 |
AR = /usr/bin/ar |
| 522 |
|
| 523 |
# |
| 524 |
# Program to use to add an index to an archive |
| 525 |
# |
| 526 |
RANLIB = /usr/bin/ranlib |
| 527 |
|
| 528 |
|
| 529 |
# |
| 530 |
# Program to use to generate a signature |
| 531 |
# |
| 532 |
#SIGNATURE ?= /usr/bin/openssl dgst -md5 |
| 533 |
#SIGNATURE ?= (/usr/bin/openssl dgst -md5 | sed "s/^.*= //") |
| 534 |
SIGNATURE ?= ( cat > md5tmp; cmake -E md5sum md5tmp| sed "s/ .*//") |
| 535 |
|
| 536 |
# |
| 537 |
# Pipe command to extract all but the first line of a text file |
| 538 |
# |
| 539 |
ALLBUTONE = tail -n +2 |
| 540 |
|
| 541 |
|
| 542 |
# |
| 543 |
# Extension for signatures of files |
| 544 |
# |
| 545 |
SEXT = .md5 |
| 546 |
|
| 547 |
# Default shell |
| 548 |
|
| 549 |
SHELL = bash |
| 550 |
|
| 551 |
# call to time a command |
| 552 |
|
| 553 |
#TIME = |
| 554 |
#TIME = time |
| 555 |
|
| 556 |
# |
| 557 |
# Program to display differences between files |
| 558 |
# |
| 559 |
DIFF = diff -u -b |
| 560 |
|
| 561 |
|
| 562 |
# |
| 563 |
# Program to generate wrapper classes for Python |
| 564 |
# |
| 565 |
PYSWIG = swig -python |
| 566 |
|
| 567 |
# |
| 568 |
# Program to generate wrapper classes for Java |
| 569 |
# |
| 570 |
JSWIG = swig -java |
| 571 |
|
| 572 |
# |
| 573 |
# Compiler for Java |
| 574 |
# |
| 575 |
JAVAC = javac |
| 576 |
|
| 577 |
# |
| 578 |
# Java archiver for compiled classes |
| 579 |
# |
| 580 |
JAR = jar |
| 581 |
|
| 582 |
# |
| 583 |
# Java SDK root directory |
| 584 |
# |
| 585 |
ifeq ($(JDKDIR),) |
| 586 |
JDKDIR = /usr/lib/java |
| 587 |
endif |
| 588 |
|
| 589 |
ifneq ($(CBF_DONT_USE_LONG_LONG),) |
| 590 |
NOLLFLAG = -DCBF_DONT_USE_LONG_LONG |
| 591 |
else |
| 592 |
NOLLFLAG = |
| 593 |
endif |
| 594 |
|
| 595 |
ifneq ($(CBF_NO_REGEX),) |
| 596 |
CBF_REGEXFLAG = -DCBF_NO_REGEX |
| 597 |
else |
| 598 |
CBF_REGEXFLAG = -DCBF_REGEXLIB_REGEX |
| 599 |
endif |
| 600 |
|
| 601 |
ifneq ($(CBF_USE_ULP),) |
| 602 |
ULPFLAG = -DCBF_USE_ULP |
| 603 |
else |
| 604 |
ULPFLAG = |
| 605 |
endif |
| 606 |
|
| 607 |
ifneq ($(CBFLIB_DONT_USE_LZ4),yes) |
| 608 |
LZ4FLAG = -DCBF_H5Z_USE_LZ4 |
| 609 |
else |
| 610 |
LZ4FLAG = |
| 611 |
endif |
| 612 |
|
| 613 |
ifneq ($(CBFLIB_DONT_USE_BSHUF),yes) |
| 614 |
BSHUFFLAG = -DCBF_H5Z_USE_BSHUF |
| 615 |
else |
| 616 |
BSHUFFLAG = |
| 617 |
endif |
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
MISCFLAG = $(NOLLFLAG) $(ULPFLAG) |
| 622 |
|
| 623 |
# |
| 624 |
# PY2CBF definitions |
| 625 |
# |
| 626 |
PY2CBFEXT = so |
| 627 |
PY2CBFBOPT = |
| 628 |
PY2CBFIOPT = |
| 629 |
SETUP_PY = setup.py |
| 630 |
INSTALLSETUP_PY = installsetup.py |
| 631 |
|
| 632 |
# |
| 633 |
# PY3CBF definitions |
| 634 |
# |
| 635 |
PY3CBFEXT = so |
| 636 |
PY3CBFBOPT = |
| 637 |
PY3CBFIOPT = |
| 638 |
SETUP_PY = setup.py |
| 639 |
INSTALLSETUP_PY = installsetup.py |
| 640 |
|
| 641 |
|
| 642 |
# |
| 643 |
# Set the compiler and flags |
| 644 |
# |
| 645 |
|
| 646 |
######################################################### |
| 647 |
# |
| 648 |
# Appropriate compiler definitions for default (Linux) |
| 649 |
# |
| 650 |
######################################################### |
| 651 |
CC = gcc |
| 652 |
C++ = g++ |
| 653 |
ifneq ($(CBFDEBUG),) |
| 654 |
CFLAGS = -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1 $(HDF5CFLAGS) |
| 655 |
else |
| 656 |
CFLAGS = -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing $(HDF5CFLAGS) |
| 657 |
endif |
| 658 |
LDFLAGS = |
| 659 |
F90C = gfortran |
| 660 |
#F90FLAGS = -g -fno-range-check -fallow-invalid-boz |
| 661 |
F90FLAGS = -g -fno-range-check |
| 662 |
F90LDFLAGS = |
| 663 |
SOCFLAGS = -fPIC |
| 664 |
SOLDFLAGS = -shared -Wl,-rpath,$(CBF_PREFIX)/lib |
| 665 |
JAVAINCLUDES = -I$(JDKDIR)/include -I$(JDKDIR)/include/linux |
| 666 |
ifeq ($(HDF5_PREFIX),) |
| 667 |
LDPREFIX = LD_LIBRARY_PATH=$(SOLIB):$(LIB):$$LD_LIBRARY_PATH;export LD_LIBRARY_PATH; |
| 668 |
RUNLDPREFIX = LD_LIBRARY_PATH=$(CBF_PREFIX)/LIB:$(LIB):$$LD_LIBRARY_PATH;export LD_LIBRARY_PATH; |
| 669 |
else |
| 670 |
LDPREFIX = LD_LIBRARY_PATH=$(SOLIB):$(HDF5_PREFIX)/lib:$(LIB):$$LD_LIBRARY_PATH;export LD_LIBRARY_PATH; |
| 671 |
RUNLDPREFIX = LD_LIBRARY_PATH=$(CBF_PREFIX)/LIB:$(HDF5_PREFIX)/lib:$(LIB):$$LD_LIBRARY_PATH;export LD_LIBRARY_PATH; |
| 672 |
endif |
| 673 |
EXTRALIBS = -lm |
| 674 |
M4FLAGS = -Dfcb_bytes_in_rec=131072 |
| 675 |
TIME = time |
| 676 |
|
| 677 |
ifneq ($(NOFORTRAN),) |
| 678 |
F90C = |
| 679 |
endif |
| 680 |
|
| 681 |
# |
| 682 |
# URLs from which to retrieve the data directories |
| 683 |
# |
| 684 |
DATAURLBASE = http://downloads.sf.net/cbflib/ |
| 685 |
DATAURLI = $(DATAURLBASE)/CBFlib_$(VERSION)_Data_Files_Input.tar.gz |
| 686 |
DATAURLO = $(DATAURLBASE)/CBFlib_$(VERSION)_Data_Files_Output.tar.gz |
| 687 |
|
| 688 |
# |
| 689 |
# URLs from which to retrieve needed external package snapshots |
| 690 |
# |
| 691 |
ifneq ($(CBFLIB_DONT_USE_PY2CIFRW),yes) |
| 692 |
PY2CIFRWURL = http://downloads.sf.net/cbflib/$(PY2CIFRW).tar.gz |
| 693 |
PY2PLYURL = http://www.dabeaz.com/ply/$(PY2PLY).tar.gz |
| 694 |
endif |
| 695 |
ifneq ($(CBFLIB_DONT_USE_PY3CIFRW),yes) |
| 696 |
PY3CIFRWURL = http://downloads.sf.net/cbflib/$(PY3CIFRW).tar.gz |
| 697 |
PY3PLYURL = http://downloads.sf.net/cbflib/$(PY3PLY).tar.gz |
| 698 |
endif |
| 699 |
REGEX_URL ?= http://downloads.sf.net/cbflib/$(REGEX).tar.gz |
| 700 |
TIFF_URL ?= http://downloads.sf.net/cbflib/$(TIFF).tar.gz |
| 701 |
HDF5_URL ?= http://downloads.sf.net/cbflib/$(HDF5).tar.gz |
| 702 |
ifneq ($(CBFLIB_DONT_USE_LOCAL_NUWEB),yes) |
| 703 |
NUWEB_URL ?= http://downloads.sf.net/cbflib/$(NUWEB_DEP).tar.gz |
| 704 |
endif |
| 705 |
ifneq ($(MSYS2),yes) |
| 706 |
LZ4_URL = http://downloads.sf.net/cbflib/$(LZ4).tar.gz |
| 707 |
else |
| 708 |
LZ4_URL = http://www.github.com/yayahjb/$(LZ4).git |
| 709 |
endif |
| 710 |
BSHUFURL = http://downloads.sf.net/cbflib/$(BSHUF).tar.gz |
| 711 |
|
| 712 |
|
| 713 |
# |
| 714 |
# Include directories |
| 715 |
# |
| 716 |
INCLUDES = -I$(INCLUDE) -I$(SRC) $(HDF5include) |
| 717 |
|
| 718 |
# |
| 719 |
# runtime library path export commands |
| 720 |
# |
| 721 |
ifeq ($(HDF5_PREFIX),) |
| 722 |
RTLPEXPORTS = LD_LIBRARY_PATH=$(PWD)/solib:$(PWD)/lib;export LD_LIBRARY_PATH; DYLD_LIBRARY_PATH=$(PWD)/solib:$(PWD)/lib;export DYLD_LIBRARY_PATH; LD_RUN_PATH=$(PWD)/solib:$(PWD)/lib;export LD_RUN_PATH; |
| 723 |
else |
| 724 |
RTLPEXPORTS = LD_LIBRARY_PATH=$(PWD)/solib:$(PWD)/lib:$(HDF5_PREFIX)/lib;export LD_LIBRARY_PATH; DYLD_LIBRARY_PATH=$(PWD)/solib:$(PWD)/lib:$(HDF5_PREFIX)/lib;export DYLD_LIBRARY_PATH; LD_RUN_PATH=$(PWD)/solib:$(PWD)/lib:$(HDF5_PREFIX)/lib;export LD_RUN_PATH; |
| 725 |
endif |
| 726 |
|
| 727 |
###################################################################### |
| 728 |
# You should not need to make modifications below this line # |
| 729 |
###################################################################### |
| 730 |
|
| 731 |
ifneq ($(CBF_USE_ULP),) |
| 732 |
SRC_CBF_ULP_C = $(SRC)/cbf_ulp.c |
| 733 |
INCLUDE_CBF_ULP_H = $(INCLUDE)/cbf_ulp.h |
| 734 |
BIN_TESTULP = $(BIN)/testulp |
| 735 |
else |
| 736 |
SRC_CBF_ULP_C = |
| 737 |
INCLUyDE_CBF_ULP_H = |
| 738 |
BIN_TESTULP = |
| 739 |
endif |
| 740 |
|
| 741 |
ifneq ($(MSYS2),yes) |
| 742 |
SRC_REALPATH = |
| 743 |
else |
| 744 |
SRC_REALPATH = $(SRC)/realpath.c |
| 745 |
endif |
| 746 |
|
| 747 |
|
| 748 |
# |
| 749 |
# Suffixes of files to be used or built |
| 750 |
# |
| 751 |
.SUFFIXES: .c .o .f90 .m4 |
| 752 |
|
| 753 |
.m4.f90: |
| 754 |
m4 -P $(M4FLAGS) $< > $@ |
| 755 |
|
| 756 |
ifneq ($(F90C),) |
| 757 |
.f90.o: |
| 758 |
$(F90C) $(F90FLAGS) -c $< -o $@ |
| 759 |
endif |
| 760 |
|
| 761 |
|
| 762 |
# |
| 763 |
# Common dependencies |
| 764 |
# |
| 765 |
COMMONDEP = $(M4)/Makefile.m4 |
| 766 |
|
| 767 |
# |
| 768 |
# Source files |
| 769 |
# |
| 770 |
|
| 771 |
SOURCE = $(SRC)/cbf.c \ |
| 772 |
$(SRC)/cbf_airy_disk.c \ |
| 773 |
$(SRC)/cbf_alloc.c \ |
| 774 |
$(SRC)/cbf_ascii.c \ |
| 775 |
$(SRC)/cbf_binary.c \ |
| 776 |
$(SRC)/cbf_byte_offset.c \ |
| 777 |
$(SRC)/cbf_canonical.c \ |
| 778 |
$(SRC)/cbf_codes.c \ |
| 779 |
$(SRC)/cbf_compress.c \ |
| 780 |
$(SRC)/cbf_context.c \ |
| 781 |
$(SRC)/cbf_copy.c \ |
| 782 |
$(SRC)/cbf_file.c \ |
| 783 |
$(SRC)/cbf_getopt.c \ |
| 784 |
$(SRC)/cbf_hdf5.c \ |
| 785 |
$(SRC)/cbf_hdf5_filter.c \ |
| 786 |
$(SRC)/cbf_lex.c \ |
| 787 |
$(SRC)/cbf_minicbf_header.c\ |
| 788 |
$(SRC)/cbf_nibble_offset.c \ |
| 789 |
$(SRC)/cbf_packed.c \ |
| 790 |
$(SRC)/cbf_predictor.c \ |
| 791 |
$(SRC)/cbf_read_binary.c \ |
| 792 |
$(SRC)/cbf_read_mime.c \ |
| 793 |
$(SRC)/cbf_simple.c \ |
| 794 |
$(SRC)/cbf_string.c \ |
| 795 |
$(SRC)/cbf_stx.c \ |
| 796 |
$(SRC)/cbf_tree.c \ |
| 797 |
$(SRC_CBF_ULP_C) \ |
| 798 |
$(SRC)/cbf_uncompressed.c \ |
| 799 |
$(SRC)/cbf_write.c \ |
| 800 |
$(SRC)/cbf_write_binary.c \ |
| 801 |
$(SRC)/cbf_ws.c \ |
| 802 |
$(SRC)/cbff.c \ |
| 803 |
$(SRC)/md5c.c \ |
| 804 |
$(SRC)/img.c \ |
| 805 |
$(SRC_FGETLN) $(SRC_REALPATH) |
| 806 |
|
| 807 |
ifneq ($(CBFLIB_DONT_USE_PY2CIFRW),yes) |
| 808 |
PY2SOURCE = $(SRC)/drel_lex.py \ |
| 809 |
$(SRC)/drel_yacc.py \ |
| 810 |
$(SRC)/drelc.py \ |
| 811 |
$(SRC)/drel_prep.py |
| 812 |
endif |
| 813 |
|
| 814 |
ifneq ($(CBFLIB_DONT_USE_PY3CIFRW),yes) |
| 815 |
PY3SOURCE = $(SRC)/drel_lex.py \ |
| 816 |
$(SRC)/drel_yacc.py \ |
| 817 |
$(SRC)/drelc.py \ |
| 818 |
$(SRC)/drel_prep.py |
| 819 |
endif |
| 820 |
|
| 821 |
F90SOURCE = $(SRC)/fcb_atol_wcnt.f90 \ |
| 822 |
$(SRC)/fcb_ci_strncmparr.f90 \ |
| 823 |
$(SRC)/fcb_exit_binary.f90 \ |
| 824 |
$(SRC)/fcb_nblen_array.f90 \ |
| 825 |
$(SRC)/fcb_next_binary.f90 \ |
| 826 |
$(SRC)/fcb_open_cifin.f90 \ |
| 827 |
$(SRC)/fcb_packed.f90 \ |
| 828 |
$(SRC)/fcb_read_bits.f90 \ |
| 829 |
$(SRC)/fcb_read_byte.f90 \ |
| 830 |
$(SRC)/fcb_read_image.f90 \ |
| 831 |
$(SRC)/fcb_read_line.f90 \ |
| 832 |
$(SRC)/fcb_read_xds_i2.f90 \ |
| 833 |
$(SRC)/fcb_skip_whitespace.f90 |
| 834 |
|
| 835 |
|
| 836 |
# |
| 837 |
# Header files |
| 838 |
# |
| 839 |
HEADERS = $(INCLUDE)/cbf.h \ |
| 840 |
$(INCLUDE)/cbf_airy_disk.h \ |
| 841 |
$(INCLUDE)/cbf_alloc.h \ |
| 842 |
$(INCLUDE)/cbf_ascii.h \ |
| 843 |
$(INCLUDE)/cbf_binary.h \ |
| 844 |
$(INCLUDE)/cbf_byte_offset.h \ |
| 845 |
$(INCLUDE)/cbf_canonical.h \ |
| 846 |
$(INCLUDE)/cbf_codes.h \ |
| 847 |
$(INCLUDE)/cbf_compress.h \ |
| 848 |
$(INCLUDE)/cbf_context.h \ |
| 849 |
$(INCLUDE)/cbf_copy.h \ |
| 850 |
$(INCLUDE)/cbf_file.h \ |
| 851 |
$(INCLUDE)/cbf_getopt.h \ |
| 852 |
$(INCLUDE)/cbf_hdf5.h \ |
| 853 |
$(INCLUDE)/cbf_hdf5_filter.h \ |
| 854 |
$(INCLUDE)/cbf_lex.h \ |
| 855 |
$(INCLUDE)/cbf_minicbf_header.h\ |
| 856 |
$(INCLUDE)/cbf_nibble_offset.h \ |
| 857 |
$(INCLUDE)/cbf_packed.h \ |
| 858 |
$(INCLUDE)/cbf_predictor.h \ |
| 859 |
$(INCLUDE)/cbf_read_binary.h \ |
| 860 |
$(INCLUDE)/cbf_read_mime.h \ |
| 861 |
$(INCLUDE)/cbf_simple.h \ |
| 862 |
$(INCLUDE)/cbf_string.h \ |
| 863 |
$(INCLUDE)/cbf_stx.h \ |
| 864 |
$(INCLUDE)/cbf_tree.h \ |
| 865 |
$(INCLUDE)/cbf_uncompressed.h \ |
| 866 |
$(INCLUDE_CBF_ULP_H) \ |
| 867 |
$(INCLUDE)/cbf_write.h \ |
| 868 |
$(INCLUDE)/cbf_write_binary.h \ |
| 869 |
$(INCLUDE)/cbf_ws.h \ |
| 870 |
$(INCLUDE)/global.h \ |
| 871 |
$(INCLUDE)/cbff.h \ |
| 872 |
$(INCLUDE)/md5.h \ |
| 873 |
$(INCLUDE)/img.h |
| 874 |
|
| 875 |
# |
| 876 |
# m4 macro files |
| 877 |
# |
| 878 |
M4FILES = $(M4)/fcblib_defines.m4 \ |
| 879 |
$(M4)/fcb_exit_binary.m4 \ |
| 880 |
$(M4)/fcb_next_binary.m4 \ |
| 881 |
$(M4)/fcb_open_cifin.m4 \ |
| 882 |
$(M4)/fcb_packed.m4 \ |
| 883 |
$(M4)/fcb_read_bits.m4 \ |
| 884 |
$(M4)/fcb_read_image.m4 \ |
| 885 |
$(M4)/fcb_read_xds_i2.m4 \ |
| 886 |
$(M4)/test_fcb_read_image.m4 \ |
| 887 |
$(M4)/test_xds_binary.m4 |
| 888 |
|
| 889 |
|
| 890 |
# |
| 891 |
# Documentation files |
| 892 |
# |
| 893 |
DOCUMENTS = $(DOC)/CBFlib.html \ |
| 894 |
$(DOC)/CBFlib.txt \ |
| 895 |
$(DOC)/CBFlib_NOTICES.html \ |
| 896 |
$(DOC)/CBFlib_NOTICES.txt \ |
| 897 |
$(DOC)/ChangeLog \ |
| 898 |
$(DOC)/ChangeLog.html \ |
| 899 |
$(DOC)/MANIFES \ |
| 900 |
$(DOC)/gpl.txt $(DOC)/lgpl.txt |
| 901 |
|
| 902 |
# |
| 903 |
# HTML Graphics files |
| 904 |
# |
| 905 |
JPEGS = $(GRAPHICS)/CBFbackground.jpg \ |
| 906 |
$(GRAPHICS)/CBFbig.jpg \ |
| 907 |
$(GRAPHICS)/CBFbutton.jpg \ |
| 908 |
$(GRAPHICS)/cbflibbackground.jpg\ |
| 909 |
$(GRAPHICS)/cbflibbig.jpg \ |
| 910 |
$(GRAPHICS)/cbflibbutton.jpg \ |
| 911 |
$(GRAPHICS)/cifhome.jpg \ |
| 912 |
$(GRAPHICS)/iucrhome.jpg \ |
| 913 |
$(GRAPHICS)/noticeButton.jpg |
| 914 |
|
| 915 |
|
| 916 |
# |
| 917 |
# Default: instructions |
| 918 |
# |
| 919 |
default: |
| 920 |
@echo ' ' |
| 921 |
@echo '***************************************************************' |
| 922 |
@echo ' ' |
| 923 |
@echo ' PLEASE READ README and doc/CBFlib_NOTICES.txt' |
| 924 |
@echo ' ' |
| 925 |
@echo ' Before making the CBF library and example programs, check' |
| 926 |
@echo ' that the C compiler name and flags are correct:' |
| 927 |
@echo ' ' |
| 928 |
@echo ' The current values are:' |
| 929 |
@echo ' ' |
| 930 |
@echo ' $(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(PYCIFRWFLAG)' |
| 931 |
@echo ' ' |
| 932 |
@echo ' If you have changed any of the nuweb .w input files, you will need' |
| 933 |
@echo ' need nuweb installed, check that CBFLIB_DONT_USE_LOCAL_NUWEB,' |
| 934 |
@echo ' and NUWEB are defined correctly :' |
| 935 |
@echo ' ' |
| 936 |
@echo ' The current values are:' |
| 937 |
@echo ' ' |
| 938 |
@echo ' CBFLIB_DONT_USE_LOCAL_NUWEB = $(CBFLIB_DONT_USE_LOCAL_NUWEB)' |
| 939 |
@echo ' NUWEB = $(NUWEB)' |
| 940 |
@echo ' NUWEB_DEP = $(NUWEB_DEP)' |
| 941 |
@echo ' NUWEB_DEP2 = $(NUWEB_DEP2)' |
| 942 |
@echo ' ' |
| 943 |
@echo ' You will need either a system HDF5 1.12 or it to be installed here.' |
| 944 |
@echo ' Check that CBFLIB_DONT_USE_LOCAL_HDF5 and HDF5 are defined correctly :' |
| 945 |
@echo ' ' |
| 946 |
@echo ' The current values are:' |
| 947 |
@echo ' ' |
| 948 |
@echo ' CBFLIB_DONT_USE_LOCAL_HDF5 = $(CBFLIB_DONT_USE_LOCAL_HDF5)' |
| 949 |
@echo ' HDF5 = $(HDF5)' |
| 950 |
@echo ' HDF5_PREFIX = $(HDF5_PREFIX)' |
| 951 |
@echo ' ' |
| 952 |
@echo ' Before installing the CBF library and example programs, check' |
| 953 |
@echo ' that the install directory is correct:' |
| 954 |
@echo ' ' |
| 955 |
@echo ' The current value :' |
| 956 |
@echo ' ' |
| 957 |
@echo ' $(CBF_PREFIX) ' |
| 958 |
@echo ' ' |
| 959 |
@echo ' To compile the CBF library and example programs type:' |
| 960 |
@echo ' ' |
| 961 |
@echo ' make clean' |
| 962 |
@echo ' make all' |
| 963 |
@echo ' ' |
| 964 |
@echo ' To compile the CBF library as a shared object library, type:' |
| 965 |
@echo ' ' |
| 966 |
@echo ' make shared' |
| 967 |
@echo ' ' |
| 968 |
@echo ' To compile the Java wrapper classes for CBF library, type:' |
| 969 |
@echo ' ' |
| 970 |
@echo ' make javawrapper' |
| 971 |
@echo ' ' |
| 972 |
@echo ' To run a set of tests type:' |
| 973 |
@echo ' ' |
| 974 |
@echo ' make tests' |
| 975 |
@echo ' ' |
| 976 |
@echo ' To run some java tests type:' |
| 977 |
@echo ' ' |
| 978 |
@echo ' make javatests' |
| 979 |
@echo ' ' |
| 980 |
@echo ' The tests assume that several data files are in the directories' |
| 981 |
@echo ' $(DATADIRI) and $(DATADIRO)' |
| 982 |
@echo ' ' |
| 983 |
@echo ' These directory can be obtained from' |
| 984 |
@echo ' ' |
| 985 |
@echo ' $(DATAURLI) ' |
| 986 |
@echo ' $(DATAURLO) ' |
| 987 |
@echo ' ' |
| 988 |
@echo ' To clean up the directories type:' |
| 989 |
@echo ' ' |
| 990 |
@echo ' make clean' |
| 991 |
@echo ' ' |
| 992 |
@echo ' To install the library and binaries type:' |
| 993 |
@echo ' ' |
| 994 |
@echo ' make install' |
| 995 |
@echo ' ' |
| 996 |
@echo '***************************************************************' |
| 997 |
@echo ' ' |
| 998 |
|
| 999 |
# |
| 1000 |
# Compile the library and examples |
| 1001 |
# |
| 1002 |
ifneq ($(CBFLIB_DONT_USE_PY2CIFRW),yes) |
| 1003 |
PY2CIFRWDEPS = $(PY2CIFRW) $(PY2PLY) |
| 1004 |
else |
| 1005 |
PY2CIFRWDEPS = |
| 1006 |
endif |
| 1007 |
|
| 1008 |
ifneq ($(CBFLIB_DONT_USE_PY3CIFRW),yes) |
| 1009 |
PY3CIFRWDEPS = $(PY3CIFRW) $(PY3PLY) |
| 1010 |
else |
| 1011 |
PY3CIFRWDEPS = |
| 1012 |
endif |
| 1013 |
|
| 1014 |
ifneq ($(CBFLIB_DONT_USE_LZ4),yes) |
| 1015 |
LZ4DEPS = $(LZ4) |
| 1016 |
else |
| 1017 |
LZ4DEPS = |
| 1018 |
endif |
| 1019 |
|
| 1020 |
ifneq ($(CBFLIB_DONT_USE_BSHUF),yes) |
| 1021 |
BSHUFDEPS = $(BSHUF) |
| 1022 |
else |
| 1023 |
BSHUFDEPS = |
| 1024 |
endif |
| 1025 |
|
| 1026 |
|
| 1027 |
all:: $(BIN) $(SOURCE) $(F90SOURCE) $(HEADERS) \ |
| 1028 |
$(HDF5) \ |
| 1029 |
$(LZ4DEPS) \ |
| 1030 |
$(BSHUFDEPS) \ |
| 1031 |
$(PY2CIFRWDEPS) \ |
| 1032 |
$(PY3CIFRWDEPS) \ |
| 1033 |
symlinksdone \ |
| 1034 |
$(REGEXDEP) \ |
| 1035 |
$(LIB) \ |
| 1036 |
$(LIB)/libcbf.a \ |
| 1037 |
$(LIB)/libfcb.a \ |
| 1038 |
$(LIB)/libimg.a \ |
| 1039 |
$(BIN)/adscimg2cbf \ |
| 1040 |
$(BIN)/arvai_test \ |
| 1041 |
$(BIN)/cbf2adscimg \ |
| 1042 |
$(BIN)/cbf2nexus \ |
| 1043 |
$(BIN)/cif2c \ |
| 1044 |
$(BIN)/cif2cbf \ |
| 1045 |
$(BIN)/cbf_standardize_numbers \ |
| 1046 |
$(BIN)/convert_image \ |
| 1047 |
$(BIN)/convert_minicbf\ |
| 1048 |
$(BIN)/img2cif \ |
| 1049 |
$(BIN)/makecbf \ |
| 1050 |
$(BIN)/minicbf2nexus \ |
| 1051 |
$(BIN)/nexus2cbf \ |
| 1052 |
$(BIN)/roi_peaksearch \ |
| 1053 |
$(BIN)/sequence_match \ |
| 1054 |
$(BIN)/testcell \ |
| 1055 |
$(BIN)/testalloc \ |
| 1056 |
$(BIN)/testreals \ |
| 1057 |
$(BIN)/testflat \ |
| 1058 |
$(BIN)/testflatpacked \ |
| 1059 |
$(BIN)/testhdf5 \ |
| 1060 |
$(BIN_TESTULP) \ |
| 1061 |
$(BIN)/tiff2cbf \ |
| 1062 |
$(BIN)/test_cbf_airy_disk \ |
| 1063 |
$(BIN)/cbf_testxfelread |
| 1064 |
|
| 1065 |
ifneq ($(F90C),) |
| 1066 |
all:: $(BIN)/test_xds_binary \ |
| 1067 |
$(BIN)/test_fcb_read_image |
| 1068 |
endif |
| 1069 |
|
| 1070 |
shared: $(SOLIB)/libcbf.so $(SOLIB)/libfcb.so $(SOLIB)/libimg.so |
| 1071 |
|
| 1072 |
javawrapper: shared $(JCBF) $(JCBF)/cbflib-$(VERSION).jar $(SOLIB)/libcbf_wrap.so |
| 1073 |
|
| 1074 |
ifneq ($(CBFLIB_DONT_USE_PY2CIFRW),yes) |
| 1075 |
PY2CIFRWDEF = -Dcbf_use_py2cifrw=yes |
| 1076 |
else |
| 1077 |
PY2CIFRWDEF = |
| 1078 |
endif |
| 1079 |
|
| 1080 |
ifneq ($(CBFLIB_DONT_USE_PY3CIFRW),yes) |
| 1081 |
PY3CIFRWDEF = -Dcbf_use_py3cifrw=yes |
| 1082 |
else |
| 1083 |
PY3CIFRWDEF = |
| 1084 |
endif |
| 1085 |
|
| 1086 |
|
| 1087 |
Makefiles: \ |
| 1088 |
Makefile \ |
| 1089 |
Makefile_LINUX \ |
| 1090 |
Makefile_OSX \ |
| 1091 |
Makefile_MINGW \ |
| 1092 |
Makefile_MSYS2 |
| 1093 |
|
| 1094 |
Makefiles_pre_0.9.7: \ |
| 1095 |
Makefile_LINUX_64 \ |
| 1096 |
Makefile_LINUX_gcc42 \ |
| 1097 |
Makefile_LINUX_DMALLOC \ |
| 1098 |
Makefile_LINUX_gcc42_DMALLOC \ |
| 1099 |
Makefile_OSX_gcc42 \ |
| 1100 |
Makefile_OSX_gcc42_DMALLOC \ |
| 1101 |
Makefile_AIX \ |
| 1102 |
Makefile_IRIX_gcc |
| 1103 |
|
| 1104 |
|
| 1105 |
Makefile_LINUX: $(M4)/Makefile.m4 |
| 1106 |
-cp Makefile_LINUX Makefile_LINUX_old |
| 1107 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=LINUX $(M4)/Makefile.m4 > Makefile_LINUX.tmp |
| 1108 |
mv Makefile_LINUX.tmp Makefile_LINUX |
| 1109 |
|
| 1110 |
Makefile_LINUX_DMALLOC: $(M4)/Makefile.m4 |
| 1111 |
-cp Makefile_LINUX Makefile_LINUX_old |
| 1112 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=LINUX_DMALLOC $(M4)/Makefile.m4 > Makefile_LINUX_DMALLOC.tmp |
| 1113 |
mv Makefile_LINUX_DMALLOC.tmp Makefile_LINUX_DMALLOC |
| 1114 |
|
| 1115 |
Makefile_LINUX_64: $(M4)/Makefile.m4 |
| 1116 |
-cp Makefile_LINUX_64 Makefile_LINUX_64_old |
| 1117 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=LINUX_64 $(M4)/Makefile.m4 > Makefile_LINUX_64.tmp |
| 1118 |
mv Makefile_LINUX_64.tmp Makefile_LINUX_64 |
| 1119 |
|
| 1120 |
Makefile_LINUX_gcc42: $(M4)/Makefile.m4 |
| 1121 |
-cp Makefile_LINUX_gcc42 Makefile_LINUX_gcc42_old |
| 1122 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=LINUX_gcc42 $(M4)/Makefile.m4 > Makefile_LINUX_gcc42.tmp |
| 1123 |
mv Makefile_LINUX_gcc42.tmp Makefile_LINUX_gcc42 |
| 1124 |
|
| 1125 |
Makefile_LINUX_gcc42_DMALLOC: $(M4)/Makefile.m4 |
| 1126 |
-cp Makefile_LINUX_gcc42 Makefile_LINUX_gcc42_old |
| 1127 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=LINUX_gcc42_DMALLOC $(M4)/Makefile.m4 > Makefile_LINUX_gcc42_DMALLOC.tmp |
| 1128 |
mv Makefile_LINUX_gcc42_DMALLOC.tmp Makefile_LINUX_gcc42_DMALLOC |
| 1129 |
|
| 1130 |
Makefile_OSX: $(M4)/Makefile.m4 |
| 1131 |
-cp Makefile_OSX Makefile_OSX_old |
| 1132 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=OSX $(M4)/Makefile.m4 > Makefile_OSX.tmp |
| 1133 |
mv Makefile_OSX.tmp Makefile_OSX |
| 1134 |
|
| 1135 |
Makefile_OSX_gcc42: $(M4)/Makefile.m4 |
| 1136 |
-cp Makefile_OSX_gcc42 Makefile_OSX_gcc42_old |
| 1137 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=OSX_gcc42 $(M4)/Makefile.m4 > Makefile_OSX_gcc42.tmp |
| 1138 |
mv Makefile_OSX_gcc42.tmp Makefile_OSX_gcc42 |
| 1139 |
|
| 1140 |
Makefile_OSX_gcc42_DMALLOC: $(M4)/Makefile.m4 |
| 1141 |
-cp Makefile_OSX_gcc42 Makefile_OSX_gcc42_old |
| 1142 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=OSX_gcc42_DMALLOC $(M4)/Makefile.m4 > Makefile_OSX_gcc42_DMALLOC.tmp |
| 1143 |
mv Makefile_OSX_gcc42_DMALLOC.tmp Makefile_OSX_gcc42_DMALLOC |
| 1144 |
|
| 1145 |
Makefile_AIX: $(M4)/Makefile.m4 |
| 1146 |
-cp Makefile_AIX Makefile_AIX_old |
| 1147 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=AIX $(M4)/Makefile.m4 > Makefile_AIX.tmp |
| 1148 |
mv Makefile_AIX.tmp Makefile_AIX |
| 1149 |
|
| 1150 |
Makefile_MINGW: $(M4)/Makefile.m4 |
| 1151 |
-cp Makefile_MINGW Makefile_MINGW_old |
| 1152 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=MINGW $(M4)/Makefile.m4 > Makefile_MINGW.tmp |
| 1153 |
mv Makefile_MINGW.tmp Makefile_MINGW |
| 1154 |
|
| 1155 |
Makefile_MSYS2: $(M4)/Makefile.m4 |
| 1156 |
-cp Makefile_MSYS2 Makefile_MSYS2_old |
| 1157 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=MSYS2 $(M4)/Makefile.m4 > Makefile_MSYS2.tmp |
| 1158 |
mv Makefile_MSYS2.tmp Makefile_MSYS2 |
| 1159 |
|
| 1160 |
Makefile_IRIX_gcc: $(M4)/Makefile.m4 |
| 1161 |
-cp Makefile_IRIX_gcc Makefile_IRIX_gcc_old |
| 1162 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=IRIX_gcc $(M4)/Makefile.m4 > Makefile_IRIX_gcc.tmp |
| 1163 |
mv Makefile_IRIX_gcc.tmp Makefile_IRIX_gcc |
| 1164 |
|
| 1165 |
|
| 1166 |
Makefile: $(M4)/Makefile.m4 |
| 1167 |
-cp Makefile Makefile_old |
| 1168 |
m4 -P $(PY2CIFRWDEF) $(PY3CIFRWDEF) -Dcbf_system=default $(M4)/Makefile.m4 > Makefile.tmp |
| 1169 |
mv Makefile.tmp Makefile |
| 1170 |
|
| 1171 |
cbflib.ini: $(M4)/Makefile.m4 |
| 1172 |
echo "$(LDPREFIX)" > cbflib.ini |
| 1173 |
echo "HDF5_PLUGIN_PATH=$(SOLIB):$$HDF5_PLUGIN_PATH" >> cbflib.ini |
| 1174 |
echo "export HDF5_PLUGIN_PATH" >> cbflib.ini |
| 1175 |
|
| 1176 |
symlinksdone: |
| 1177 |
chmod a+x .symlinks |
| 1178 |
chmod a+x .undosymlinks |
| 1179 |
chmod a+x doc/.symlinks |
| 1180 |
chmod a+x doc/.undosymlinks |
| 1181 |
./.symlinks $(SLFLAGS) |
| 1182 |
touch symlinksdone |
| 1183 |
|
| 1184 |
install: baseinstall py2cbfinstall py3cbfinstall \ |
| 1185 |
$(HDF5_INSTALL) \ |
| 1186 |
$(TIFF_INSTALL) \ |
| 1187 |
$(REGEX_INSTALL) |
| 1188 |
|
| 1189 |
userinstall: baseinstall py2cbfuserinstall py3cbfuserinstall \ |
| 1190 |
$(HDF5_INSTALL) \ |
| 1191 |
$(TIFF_INSTALL) \ |
| 1192 |
$(REGEX_INSTALL) |
| 1193 |
|
| 1194 |
baseinstall: all $(CBF_PREFIX) $(CBF_PREFIX)/lib $(CBF_PREFIX)/bin \ |
| 1195 |
$(CBF_PREFIX)/include $(CBF_PREFIX)/include/cbflib \ |
| 1196 |
$(PYSOURCE) shared $(EXAMPLES)/batch_convert_minicbf.sh \ |
| 1197 |
$(LIB)/libcbf.a $(LIB)/libimg.a $(LIB)/libfcb.a \ |
| 1198 |
$(SOLIB)/libcbf.so $(SOLIB)/libimg.so $(SOLIB)/libfcb.so |
| 1199 |
-chmod -R 755 $(CBF_PREFIX)/include/cbflib |
| 1200 |
-chmod 755 $(CBF_PREFIX)/lib/libcbf.a |
| 1201 |
-cp $(CBF_PREFIX)/lib/libcbf.a $(CBF_PREFIX)/lib/libcbf_old.a |
| 1202 |
cp $(LIB)/libcbf.a $(CBF_PREFIX)/lib/libcbf.a |
| 1203 |
-chmod 755 $(CBF_PREFIX)/lib/libimg.a |
| 1204 |
-cp $(CBF_PREFIX)/lib/libimg.a $(CBF_PREFIX)/lib/libimg_old.a |
| 1205 |
cp $(LIB)/libimg.a $(CBF_PREFIX)/lib/libimg.a |
| 1206 |
-chmod 755 $(CBF_PREFIX)/lib/libfcb.a |
| 1207 |
-cp $(CBF_PREFIX)/lib/libfcb.a $(CBF_PREFIX)/lib/libfcb_old.a |
| 1208 |
cp $(LIB)/libfcb.a $(CBF_PREFIX)/lib/libfcb.a |
| 1209 |
-chmod 755 $(CBF_PREFIX)/lib/libcbf.so |
| 1210 |
-cp $(CBF_PREFIX)/lib/libcbf.so $(CBF_PREFIX)/lib/libcbf_old.so |
| 1211 |
cp $(SOLIB)/libcbf.so $(CBF_PREFIX)/lib/libcbf.so |
| 1212 |
$(LN) $(CBF_PREFIX)/lib/libcbf.so $(CBF_PREFIX)/lib/lib_cbf.so |
| 1213 |
-chmod 755 $(CBF_PREFIX)/lib/libimg.so |
| 1214 |
-cp $(CBF_PREFIX)/lib/libimg.so $(CBF_PREFIX)/lib/libimg_old.so |
| 1215 |
cp $(SOLIB)/libimg.so $(CBF_PREFIX)/lib/libimg.so |
| 1216 |
$(LN) $(CBF_PREFIX)/lib/libimg.so $(CBF_PREFIX)/lib/lib_img.so |
| 1217 |
-chmod 755 $(CBF_PREFIX)/lib/libfcb.so |
| 1218 |
-cp $(CBF_PREFIX)/lib/libfcb.so $(CBF_PREFIX)/lib/libfcb_old.so |
| 1219 |
cp $(SOLIB)/libfcb.so $(CBF_PREFIX)/lib/libfcb.so |
| 1220 |
$(LN) $(CBF_PREFIX)/lib/libfcb.so $(CBF_PREFIX)/lib/lib_fcb.so |
| 1221 |
-cp $(CBF_PREFIX)/bin/cbflib.ini $(CBF_PREFIX)/bin/cbflib.ini_old |
| 1222 |
echo "$(RUNLDPREFIX)" > $(CBF_PREFIX)/bin/cbflib.ini |
| 1223 |
echo "HDF5_PLUGIN_PATH=$(CBF_PREFIX)/lib:$$HDF5_PLUGIN_PATH" >> $(CBF_PREFIX)/bin/cbflib.ini |
| 1224 |
echo "export HDF5_PLUGIN_PATH" >> $(CBF_PREFIX)/bin/cbflib.ini |
| 1225 |
-cp $(CBF_PREFIX)/bin/adscimg2cbf $(CBF_PREFIX)/bin/adscimg2cbf_old |
| 1226 |
cp $(BIN)/adscimg2cbf $(CBF_PREFIX)/bin/adscimg2cbf |
| 1227 |
-cp $(CBF_PREFIX)/bin/cbf2adscimg $(CBF_PREFIX)/bin/cbf2adscimg_old |
| 1228 |
cp $(BIN)/cbf2adscimg $(CBF_PREFIX)/bin/cbf2adscimg |
| 1229 |
-cp $(CBF_PREFIX)/bin/cbf_standardize_numbers \ |
| 1230 |
$(CBF_PREFIX)/bin/cbf_standardize_numbers_old |
| 1231 |
cp $(BIN)/cbf_standardize_numbers $(CBF_PREFIX)/bin/cbf_standardize_numbers |
| 1232 |
-cp $(CBF_PREFIX)/bin/convert_image $(CBF_PREFIX)/bin/convert_image_old |
| 1233 |
cp $(BIN)/convert_image $(CBF_PREFIX)/bin/convert_image |
| 1234 |
-cp $(CBF_PREFIX)/bin/convert_minicbf $(CBF_PREFIX)/bin/convert_minicbf_old |
| 1235 |
cp $(BIN)/convert_minicbf $(CBF_PREFIX)/bin/convert_minicbf |
| 1236 |
-cp $(CBF_PREFIX)/bin/makecbf $(CBF_PREFIX)/bin/makecbf_old |
| 1237 |
cp $(BIN)/makecbf $(CBF_PREFIX)/bin/makecbf |
| 1238 |
-cp $(CBF_PREFIX)/bin/img2cif $(CBF_PREFIX)/bin/img2cif_old |
| 1239 |
cp $(BIN)/img2cif $(CBF_PREFIX)/bin/img2cif |
| 1240 |
-cp $(CBF_PREFIX)/bin/cif2cbf $(CBF_PREFIX)/bin/cif2cbf_old |
| 1241 |
cp $(BIN)/cif2cbf $(CBF_PREFIX)/bin/cif2cbf |
| 1242 |
-cp $(CBF_PREFIX)/bin/minicbf2nexus $(CBF_PREFIX)/bin/minicbf2nexus_old |
| 1243 |
cp $(BIN)/minicbf2nexus $(CBF_PREFIX)/bin/minicbf2nexus |
| 1244 |
-cp $(CBF_PREFIX)/bin/cbf2nexus $(CBF_PREFIX)/bin/cbf2nexus_old |
| 1245 |
cp $(BIN)/cbf2nexus $(CBF_PREFIX)/bin/cbf2nexus |
| 1246 |
-cp $(CBF_PREFIX)/bin/nexus2cbf $(CBF_PREFIX)/bin/nexus2cbf_old |
| 1247 |
cp $(BIN)/nexus2cbf $(CBF_PREFIX)/bin/nexus2cbf |
| 1248 |
-cp $(CBF_PREFIX)/bin/roi_peaksearch $(CBF_PREFIX)/bin/roi_peaksearch_old |
| 1249 |
cp $(BIN)/roi_peaksearch $(CBF_PREFIX)/bin/roi_peaksearch |
| 1250 |
-cp $(CBF_PREFIX)/bin/sequence_match $(CBF_PREFIX)/bin/sequence_match_old |
| 1251 |
cp $(BIN)/sequence_match $(CBF_PREFIX)/bin/sequence_match |
| 1252 |
-cp $(CBF_PREFIX)/bin/testalloc $(CBF_PREFIX)/bin/testalloc_old |
| 1253 |
cp $(BIN)/testalloc $(CBF_PREFIX)/bin/testalloc |
| 1254 |
-cp $(CBF_PREFIX)/bin/arvai_test $(CBF_PREFIX)/bin/arvai_test_old |
| 1255 |
cp $(BIN)/arvai_test $(CBF_PREFIX)/bin/arvai_test |
| 1256 |
-cp $(CBF_PREFIX)/bin/cif2c $(CBF_PREFIX)/bin/cif2c_old |
| 1257 |
cp $(BIN)/cif2c $(CBF_PREFIX)/bin/cif2c |
| 1258 |
-cp $(CBF_PREFIX)/bin/testreals $(CBF_PREFIX)/bin/testreals_old |
| 1259 |
cp $(BIN)/testreals $(CBF_PREFIX)/bin/testreals |
| 1260 |
-cp $(CBF_PREFIX)/bin/testflat $(CBF_PREFIX)/bin/testflat_old |
| 1261 |
cp $(BIN)/testflat $(CBF_PREFIX)/bin/testflat |
| 1262 |
-cp $(CBF_PREFIX)/bin/testflatpacked $(CBF_PREFIX)/bin/testflatpacked_old |
| 1263 |
cp $(BIN)/testflatpacked $(CBF_PREFIX)/bin/testflatpacked |
| 1264 |
-cp $(CBF_PREFIX)/bin/tiff2cbf $(CBF_PREFIX)/bin/tiff2cbf_old |
| 1265 |
cp $(BIN)/tiff2cbf $(CBF_PREFIX)/bin/tiff2cbf |
| 1266 |
-cp $(CBF_PREFIX)/bin/test_cbf_airy_disk $(CBF_PREFIX)/bin/test_cbf_airy_disk_old |
| 1267 |
cp $(BIN)/test_cbf_airy_disk $(CBF_PREFIX)/bin/test_cbf_airy_disk |
| 1268 |
-cp $(CBF_PREFIX)/bin/test_cbf_airy_disk $(CBF_PREFIX)/bin/test_cbf_airy_disk_old |
| 1269 |
cp $(BIN)/test_cbf_airy_disk $(CBF_PREFIX)/bin/test_cbf_airy_disk |
| 1270 |
-cp $(CBF_PREFIX)/bin/testhdf5 $(CBF_PREFIX)/bin/testhdf5_old |
| 1271 |
cp $(BIN)/testhdf5 $(CBF_PREFIX)/bin/testhdf5 |
| 1272 |
ifneq ($(CBF_USE_ULP),) |
| 1273 |
-cp $(CBF_PREFIX)/bin/testulp $(CBF_PREFIX)/bin/testulp_old |
| 1274 |
cp $(BIN)/testulp $(CBF_PREFIX)/bin/testulp |
| 1275 |
endif |
| 1276 |
-cp $(CBF_PREFIX)/bin/batch_convert_minicbf.sh $(CBF_PREFIX)/bin/batch_convert_minicbf_old.sh |
| 1277 |
cp $(EXAMPLES)/batch_convert_minicbf.sh $(CBF_PREFIX)/bin/batch_convert_minicbf.sh |
| 1278 |
ifneq ($(CBFLIB_DONT_USE_PYCIFRW),yes) |
| 1279 |
cp $(SRC)/drel_lex.py $(CBF_PREFIX)/bin/drel_lex.py |
| 1280 |
cp $(SRC)/drel_yacc.py $(CBF_PREFIX)/bin/drel_yacc.py |
| 1281 |
cp $(SRC)/drelc.py $(CBF_PREFIX)/bin/drelc.py |
| 1282 |
cp $(SRC)/drel_prep.py $(CBF_PREFIX)/bin/drel_prep.py |
| 1283 |
endif |
| 1284 |
chmod -R 755 $(CBF_PREFIX)/include/cbflib |
| 1285 |
-rm -rf $(CBF_PREFIX)/include/cbflib_old |
| 1286 |
-cp -r $(CBF_PREFIX)/include/cbflib $(CBF_PREFIX)/include/cbflib_old |
| 1287 |
-rm -rf $(CBF_PREFIX)/include/cbflib |
| 1288 |
cp -r $(INCLUDE) $(CBF_PREFIX)/include/cbflib |
| 1289 |
chmod 644 $(CBF_PREFIX)/lib/libcbf.a |
| 1290 |
chmod 644 $(CBF_PREFIX)/lib/libimg.a |
| 1291 |
chmod 644 $(CBF_PREFIX)/lib/libfcb.a |
| 1292 |
chmod 755 $(CBF_PREFIX)/lib/libcbf.so |
| 1293 |
chmod 755 $(CBF_PREFIX)/lib/libimg.so |
| 1294 |
chmod 755 $(CBF_PREFIX)/lib/libfcb.so |
| 1295 |
chmod 755 $(CBF_PREFIX)/bin/arvai_test |
| 1296 |
chmod 755 $(CBF_PREFIX)/bin/cbf2nexus |
| 1297 |
chmod 755 $(CBF_PREFIX)/bin/cbf_standardize_numbers |
| 1298 |
chmod 755 $(CBF_PREFIX)/bin/cif2c |
| 1299 |
chmod 755 $(CBF_PREFIX)/bin/cif2cbf |
| 1300 |
chmod 755 $(CBF_PREFIX)/bin/convert_image |
| 1301 |
chmod 755 $(CBF_PREFIX)/bin/convert_minicbf |
| 1302 |
chmod 755 $(CBF_PREFIX)/bin/img2cif |
| 1303 |
chmod 755 $(CBF_PREFIX)/bin/makecbf |
| 1304 |
chmod 755 $(CBF_PREFIX)/bin/minicbf2nexus |
| 1305 |
chmod 755 $(CBF_PREFIX)/bin/nexus2cbf |
| 1306 |
chmod 755 $(CBF_PREFIX)/bin/roi_peaksearch |
| 1307 |
chmod 755 $(CBF_PREFIX)/bin/sequence_match |
| 1308 |
chmod 755 $(CBF_PREFIX)/bin/testalloc |
| 1309 |
chmod 755 $(CBF_PREFIX)/bin/testflat |
| 1310 |
chmod 755 $(CBF_PREFIX)/bin/testflatpacked |
| 1311 |
chmod 755 $(CBF_PREFIX)/bin/testhdf5 |
| 1312 |
chmod 755 $(CBF_PREFIX)/bin/testreals |
| 1313 |
ifneq ($(CBF_USE_ULP),) |
| 1314 |
chmod 755 $(CBF_PREFIX)/bin/testulp |
| 1315 |
endif |
| 1316 |
chmod 755 $(CBF_PREFIX)/bin/tiff2cbf |
| 1317 |
chmod 755 $(CBF_PREFIX)/bin/test_cbf_airy_disk |
| 1318 |
chmod 755 $(CBF_PREFIX)/bin/batch_convert_minicbf.sh |
| 1319 |
chmod 644 $(CBF_PREFIX)/include/cbflib/*.h |
| 1320 |
|
| 1321 |
ifneq ($(CBFLIB_DONT_USE_PY2CIFRW),yes) |
| 1322 |
# |
| 1323 |
# Py2CifRW |
| 1324 |
# |
| 1325 |
build_py2cifrw: $(M4)/Makefile.m4 |
| 1326 |
touch build_py2cifrw |
| 1327 |
$(PY2CIFRW): build_py2cifrw |
| 1328 |
-rm -rf $(PY2CIFRW) |
| 1329 |
-rm -rf $(PY2CIFRW).tar.gz |
| 1330 |
$(DOWNLOAD) $(PY2CIFRWURL) |
| 1331 |
tar -xvf $(PY2CIFRW).tar.gz |
| 1332 |
-rm $(PY2CIFRW).tar.gz |
| 1333 |
(cd $(PY2CIFRW); \ |
| 1334 |
PYTHONPATH=$(PY2CIFRW_PREFIX)/lib/python:$(PY2CIFRW_PREFIX)/lib64/python; export PYTHONPATH; \ |
| 1335 |
mkdir -p $(PY2CIFRW_PREFIX)/lib/python/site-packages; \ |
| 1336 |
mkdir -p $(PY2CIFRW_PREFIX)/lib64/python/site-packages; \ |
| 1337 |
$(PYTHON2) setup.py install --prefix= --home=$(PY2CIFRW_PREFIX) ) |
| 1338 |
|
| 1339 |
# |
| 1340 |
# PY2PLY |
| 1341 |
# |
| 1342 |
build_py2ply: $(M4)/Makefile.m4 |
| 1343 |
touch build_py2ply |
| 1344 |
$(PY2PLY): build_py2ply |
| 1345 |
-rm -rf $(PY2PLY) |
| 1346 |
-rm -rf $(PY2PLY).tar.gz |
| 1347 |
$(DOWNLOAD) $(PY2PLYURL) |
| 1348 |
tar -xvf $(PY2PLY).tar.gz |
| 1349 |
-rm $(PY2PLY).tar.gz |
| 1350 |
(cd $(PY2PLY); \ |
| 1351 |
PYTHONPATH=$(PY2CIFRW_PREFIX)/lib/python:$(PY2CIFRW_PREFIX)/lib64/python; export PYTHONPATH; \ |
| 1352 |
mkdir -p $(PY2CIFRW_PREFIX)/lib/python/site-packages; \ |
| 1353 |
mkdir -p $(PY2CIFRW_PREFIX)/lib64/python/site-packages; \ |
| 1354 |
$(PYTHON2) setup.py install --prefix= --home=$(PY2CIFRW_PREFIX) ) |
| 1355 |
endif |
| 1356 |
|
| 1357 |
ifneq ($(CBFLIB_DONT_USE_PY3CIFRW),yes) |
| 1358 |
# |
| 1359 |
# Py3CifRW |
| 1360 |
# |
| 1361 |
build_py3cifrw: $(M4)/Makefile.m4 |
| 1362 |
touch build_py3cifrw |
| 1363 |
$(PY3CIFRW): build_py3cifrw |
| 1364 |
-rm -rf $(PY3CIFRW) |
| 1365 |
-rm -rf $(PY3CIFRW).tar.gz |
| 1366 |
$(DOWNLOAD) $(PY3CIFRWURL) |
| 1367 |
tar -xvf $(PY3CIFRW).tar.gz |
| 1368 |
-rm $(PY3CIFRW).tar.gz |
| 1369 |
(cd $(PY3CIFRW); \ |
| 1370 |
PYTHONPATH=$(PY3CIFRW_PREFIX)/lib/python:$(PY3CIFRW_PREFIX)/lib64/python; export PYTHONPATH; \ |
| 1371 |
mkdir -p $(PY3CIFRW_PREFIX)/lib/python/site-packages; \ |
| 1372 |
mkdir -p $(PY3CIFRW_PREFIX)/lib64/python/site-packages; \ |
| 1373 |
$(PYTHON3) setup.py install --prefix= --home=$(PY3CIFRW_PREFIX) ) |
| 1374 |
|
| 1375 |
# |
| 1376 |
# PY3PLY |
| 1377 |
# |
| 1378 |
build_py3ply: $(M4)/Makefile.m4 |
| 1379 |
touch build_py3ply |
| 1380 |
$(PY3PLY): build_py3ply |
| 1381 |
-rm -rf $(PY3PLY) |
| 1382 |
-rm -rf $(PY3PLY).tar.gz |
| 1383 |
$(DOWNLOAD) $(PY3PLYURL) |
| 1384 |
tar -xvf $(PY3PLY).tar.gz |
| 1385 |
-rm $(PY3PLY).tar.gz |
| 1386 |
(cd $(PY3PLY); \ |
| 1387 |
PYTHONPATH=$(PY3CIFRW_PREFIX)/lib/python:$(PY3CIFRW_PREFIX)/lib64/python; export PYTHONPATH; \ |
| 1388 |
mkdir -p $(PY3CIFRW_PREFIX)/lib/python/site-packages; \ |
| 1389 |
mkdir -p $(PY3CIFRW_PREFIX)/lib64/python/site-packages; \ |
| 1390 |
$(PYTHON3) setup.py install --prefix= --home=$(PY3CIFRW_PREFIX) ) |
| 1391 |
endif |
| 1392 |
|
| 1393 |
|
| 1394 |
# |
| 1395 |
# NUWEB |
| 1396 |
# |
| 1397 |
ifneq ($(NUWEB_DEP),'') |
| 1398 |
$(NUWEB_DEP): |
| 1399 |
-rm -rf $(NUWEB_DEP) |
| 1400 |
-rm -rf $(NUWEB_DEP).tar.gz |
| 1401 |
$(DOWNLOAD) $(NUWEB_URL) |
| 1402 |
tar -xvf $(NUWEB_DEP).tar.gz |
| 1403 |
touch $(NUWEB_DEP) |
| 1404 |
rm $(NUWEB_DEP).tar.gz |
| 1405 |
|
| 1406 |
$(NUWEB_DEP2): $(NUWEB_DEP) |
| 1407 |
(cd $(NUWEB_DEP); make nuweb; cp nuweb $(NUWEB_DEP2)) |
| 1408 |
endif |
| 1409 |
|
| 1410 |
|
| 1411 |
# |
| 1412 |
# REGEX |
| 1413 |
# |
| 1414 |
|
| 1415 |
build_regex: $(M4)/Makefile.m4 |
| 1416 |
touch build_regex |
| 1417 |
$(REGEX): build_regex |
| 1418 |
-rm -rf $(REGEX) |
| 1419 |
-rm -rf $(REGEX).tar.gz |
| 1420 |
$(DOWNLOAD) $(REGEX_URL) |
| 1421 |
tar -xvf $(REGEX).tar.gz |
| 1422 |
touch $(REGEX) |
| 1423 |
-rm $(REGEX).tar.gz |
| 1424 |
cp config.guess config.sub $(REGEX) |
| 1425 |
(cd $(REGEX); \ |
| 1426 |
prefix=$(REGEX_PREFIX); export prefix; \ |
| 1427 |
./configure --prefix=$(REGEX_PREFIX); make install) |
| 1428 |
@-cp $(REGEX_PREFIX)/include/pcreposix.h $(REGEX_PREFIX)/include/regex.h |
| 1429 |
$(REGEX)_INSTALL: $(REGEX) |
| 1430 |
-rm -rf $(REGEX)_install |
| 1431 |
rsync -avz $(REGEX)/ $(REGEX)_install |
| 1432 |
(cd $(REGEX)_install; prefix=$(CBF_PREFIX); export prefix; \ |
| 1433 |
make distclean; ./configure --prefix=$(CBF_PREFIX); make install ) |
| 1434 |
@-cp $(CBF_PREFIX)/include/pcreposix.h $(CBF_PREFIX)/include/regex.h |
| 1435 |
|
| 1436 |
# |
| 1437 |
# TIFF |
| 1438 |
# |
| 1439 |
build_tiff: $(M4)/Makefile.m4 |
| 1440 |
touch build_tiff |
| 1441 |
$(TIFF): build_tiff config.guess config.sub |
| 1442 |
-rm -rf $(TIFF) |
| 1443 |
-rm -rf $(TIFF).tar.gz |
| 1444 |
$(DOWNLOAD) $(TIFF_URL) |
| 1445 |
tar -xvf $(TIFF).tar.gz |
| 1446 |
touch $(TIFF) |
| 1447 |
-rm $(TIFF).tar.gz |
| 1448 |
cp config.guess config.sub $(TIFF)/config/ |
| 1449 |
(cd $(TIFF); prefix=$(TIFF_PREFIX); export prefix; \ |
| 1450 |
./configure --prefix=$(TIFF_PREFIX); make install) |
| 1451 |
$(TIFF)_INSTALL: $(TIFF) |
| 1452 |
-rm -rf $(TIFF)_install |
| 1453 |
rsync -avz $(TIFF)/ $(TIFF)_install |
| 1454 |
(cd $(TIFF)_install; make distclean; prefix=$(CBF_PREFIX); export prefix; \ |
| 1455 |
./configure --prefix=$(CBF_PREFIX); make install) |
| 1456 |
|
| 1457 |
|
| 1458 |
ifneq ($(CBFLIB_DONT_USE_LOCAL_HDF5),yes) |
| 1459 |
# |
| 1460 |
# HDF5 |
| 1461 |
# |
| 1462 |
|
| 1463 |
build_hdf5: $(M4)/Makefile.m4 |
| 1464 |
touch build_hdf5 |
| 1465 |
$(HDF5): build_hdf5 |
| 1466 |
-rm -rf $(HDF5) |
| 1467 |
-rm -rf $(HDF5).tar.gz |
| 1468 |
$(DOWNLOAD) $(HDF5_URL) |
| 1469 |
tar -xvf $(HDF5).tar.gz |
| 1470 |
cp config.guess $(HDF5)/bin/config.guess |
| 1471 |
cp config.sub $(HDF5)/bin/config.sub |
| 1472 |
touch $(HDF5) |
| 1473 |
-rm $(HDF5).tar.gz |
| 1474 |
echo "first level HDF5 install in "$(HDF5_PREFIX) |
| 1475 |
(cd $(ROOT)/$(HDF5); \ |
| 1476 |
CFLAGS="$(CFLAGS)"; export CFLAGS; \ |
| 1477 |
mkdir -p hdf5; prefix=$(ROOT)/$(HDF5)/hdf5; export prefix; \ |
| 1478 |
./configure --prefix=$(ROOT)/$(HDF5)/hdf5 --enable-build-mode=production \ |
| 1479 |
--enable-trace --enable-fortran --enable-using-memchecker ;\ |
| 1480 |
make install; \ |
| 1481 |
rsync -avz $(ROOT)/$(HDF5)/hdf5/bin/ $(HDF5_PREFIX)/bin; \ |
| 1482 |
rsync -avz $(ROOT)/$(HDF5)/hdf5/lib/ $(HDF5_PREFIX)/lib; \ |
| 1483 |
rsync -avz $(ROOT)/$(HDF5)/hdf5/include/ $(HDF5_PREFIX)/include; \ |
| 1484 |
cd $(HDF5_PREFIX)/bin; $(ROOT)/$(HDF5)/hdf5/bin/h5redeploy -force ) |
| 1485 |
$(HDF5)_INSTALL: $(HDF5) |
| 1486 |
-rm -rf $(HDF5)_install |
| 1487 |
echo "final HDF5 install in "$(CBF_PREFIX) |
| 1488 |
rsync -avz $(ROOT)/$(HDF5)/hdf5/bin/ $(CBF_PREFIX)/bin; \ |
| 1489 |
rsync -avz $(ROOT)/$(HDF5)/hdf5/lib/ $(CBF_PREFIX)/lib; \ |
| 1490 |
rsync -avz $(ROOT)/$(HDF5)/hdf5/include/ $(CBF_PREFIX)/include; \ |
| 1491 |
cd $(CBF_PREFIX)/bin; $(ROOT)/$(HDF5)/hdf5/bin/h5redeploy -force |
| 1492 |
endif |
| 1493 |
|
| 1494 |
|
| 1495 |
ifneq ($(CBFLIB_DONT_USE_LZ4),yes) |
| 1496 |
# |
| 1497 |
# LZ4 |
| 1498 |
# |
| 1499 |
build_lz4: $(M4)/Makefile.m4 |
| 1500 |
touch build_lz4 |
| 1501 |
$(LZ4): $(HDF5) build_lz4 |
| 1502 |
mkdir -p $(SOLIB) |
| 1503 |
-rm -rf $(LZ4) |
| 1504 |
ifneq ($(MSYS2),yes) |
| 1505 |
-rm -rf $(LZ4).tar.gz |
| 1506 |
$(DOWNLOAD) $(LZ4_URL) |
| 1507 |
tar -xvf $(LZ4).tar.gz |
| 1508 |
-rm $(LZ4).tar.gz |
| 1509 |
(cp $(LZ4include)/lz4.h $(INCLUDE); \ |
| 1510 |
$(CC) $(CFLAGS) $(SOWCFLAGS) $(INCLUDES) $(WARNINGS) -c $(LZ4src)/lz4.c -o lz4.o; \ |
| 1511 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(LZ4src)/h5zlz4.c -o h5zlz4.o; \ |
| 1512 |
$(CC) -shared lz4.o h5zlz4.o -o $(SOLIB)/libh5zlz4.so; \ |
| 1513 |
rm lz4.o h5zlz4.o) |
| 1514 |
else |
| 1515 |
git clone $(LZ4_URL) |
| 1516 |
(cd $(LZ4); mkdir build; cd build; cmake .. -G 'MSYS Makefiles' -DENABLE_LZ4_PLUGIN="yes"; make all; cp plugins/* $(SOLIB)) |
| 1517 |
endif |
| 1518 |
touch $(LZ4) |
| 1519 |
endif |
| 1520 |
|
| 1521 |
|
| 1522 |
ifneq ($(CBFLIB_DONT_USE_BSHUF),yes) |
| 1523 |
# |
| 1524 |
# BSHUF |
| 1525 |
# |
| 1526 |
build_BSHUF: $(M4)/Makefile.m4 |
| 1527 |
touch build_BSHUF |
| 1528 |
$(BSHUF): $(HDF5) build_BSHUF $(LZ4dep) |
| 1529 |
mkdir -p $(SOLIB) |
| 1530 |
-rm -rf $(BSHUF) |
| 1531 |
-rm -rf $(BSHUF).tar.gz |
| 1532 |
-rm -rf *.o |
| 1533 |
$(DOWNLOAD) $(BSHUFURL) |
| 1534 |
tar -xvf $(BSHUF).tar.gz |
| 1535 |
-rm $(BSHUF).tar.gz |
| 1536 |
(cp $(BSHUFinclude)/bitshuffle.h \ |
| 1537 |
$(BSHUFinclude)/bitshuffle_core.h \ |
| 1538 |
$(BSHUFinclude)/bitshuffle_internals.h \ |
| 1539 |
$(BSHUFinclude)/bshuf_h5filter.h $(BSHUFinclude)/iochain.h $(INCLUDE); \ |
| 1540 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(BSHUFsrc)/bshuf_h5filter.c -o bshuf_h5filter.o; \ |
| 1541 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(BSHUFsrc)/bitshuffle.c -o bitshuffle.o; \ |
| 1542 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(BSHUFsrc)/bitshuffle_core.c -o bitshuffle_core.o; \ |
| 1543 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(BSHUFsrc)/bshuf_h5plugin.c -o bshuf_h5plugin.o; \ |
| 1544 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(BSHUFsrc)/iochain.c -o iochain.o; \ |
| 1545 |
$(CC) $(CFLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(BSHUFsrc)/../lz4/lz4.c -o lz4.o; \ |
| 1546 |
$(CC) -shared bshuf_h5filter.o bitshuffle.o bitshuffle_core.o iochain.o lz4.o $(HDF5SOLIBS_LOCAL) $(HDF5SOLIBS_SYSTEM)\ |
| 1547 |
-o $(SOLIB)/libh5zbshuf.so; \ |
| 1548 |
$(CC) -shared bshuf_h5filter.o bitshuffle.o bitshuffle_core.o lz4.o bshuf_h5plugin.o iochain.o \ |
| 1549 |
$(HDF5SOLIBS_LOCAL) \ |
| 1550 |
$(HDF5SOLIBS_SYSTEM) -o $(SOLIB)/$(BSHUFFILTER).so; \ |
| 1551 |
rm bshuf_h5filter.o bitshuffle.o lz4.o iochain.o bshuf_h5plugin.o) |
| 1552 |
touch $(BSHUF) |
| 1553 |
endif |
| 1554 |
|
| 1555 |
|
| 1556 |
# |
| 1557 |
# Directories |
| 1558 |
# |
| 1559 |
$(CBF_PREFIX): |
| 1560 |
mkdir -p $(CBF_PREFIX) |
| 1561 |
|
| 1562 |
$(CBF_PREFIX)/lib: $(CBF_PREFIX) |
| 1563 |
mkdir -p $(CBF_PREFIX)/lib |
| 1564 |
|
| 1565 |
$(CBF_PREFIX)/bin: $(CBF_PREFIX) |
| 1566 |
mkdir -p $(CBF_PREFIX)/bin |
| 1567 |
|
| 1568 |
$(CBF_PREFIX)/include: $(CBF_PREFIX) |
| 1569 |
mkdir -p $(CBF_PREFIX)/include |
| 1570 |
|
| 1571 |
$(CBF_PREFIX)/include/cbflib: $(CBF_PREFIX)/include |
| 1572 |
mkdir -p $(CBF_PREFIX)/include/cbflib |
| 1573 |
|
| 1574 |
|
| 1575 |
|
| 1576 |
$(LIB): |
| 1577 |
mkdir -p $@ |
| 1578 |
|
| 1579 |
$(BIN): |
| 1580 |
mkdir -p $@ |
| 1581 |
|
| 1582 |
$(SOLIB): |
| 1583 |
mkdir -p $@ |
| 1584 |
|
| 1585 |
$(JCBF): |
| 1586 |
mkdir -p $@ |
| 1587 |
|
| 1588 |
$(MINICBF_TESTS): |
| 1589 |
mkdir -p $@ |
| 1590 |
|
| 1591 |
# |
| 1592 |
# Parser |
| 1593 |
# |
| 1594 |
$(SRC)/cbf_stx.c: $(SRC)/cbf.stx.y |
| 1595 |
bison $(SRC)/cbf.stx.y -o $(SRC)/cbf.stx.tab.c -d |
| 1596 |
mv $(SRC)/cbf.stx.tab.c $(SRC)/cbf_stx.c |
| 1597 |
mv $(SRC)/cbf.stx.tab.h $(INCLUDE)/cbf_stx.h |
| 1598 |
|
| 1599 |
# |
| 1600 |
# CBF library |
| 1601 |
# |
| 1602 |
$(LIB)/libcbf.a: $(SOURCE) $(HEADERS) $(COMMONDEP) $(HDF5) $(LZ4DEPS) $(BSHUFDEPS) $(REGEXDEPS) |
| 1603 |
-rm -f $@ |
| 1604 |
-rm -f *.o |
| 1605 |
mkdir -p $(LIB) |
| 1606 |
$(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) \ |
| 1607 |
-DCBF_FILTER_STATIC $(LZ4FLAG) $(BSHUFFLAG) $(PYCIFRWFLAG) $(INCLUDES) $(WARNINGS) -c $(SOURCE) |
| 1608 |
ifneq ($(CBFLIB_DONT_USE_LZ4),yes) |
| 1609 |
ifneq ($(MSYS2),yes) |
| 1610 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(LZ4src)/h5zlz4.c -o h5zlz4.o |
| 1611 |
else |
| 1612 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(LZ4)/LZ4/src/H5Zlz4.c -o h5zlz4.o |
| 1613 |
endif |
| 1614 |
endif |
| 1615 |
ifneq ($(CBFLIB_DONT_USE_BSHUF),yes) |
| 1616 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/bitshuffle.c -o bitshuffle.o |
| 1617 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/bitshuffle_core.c -o bitshuffle_core.o |
| 1618 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/bshuf_h5filter.c -o bshuf_h5filter.o |
| 1619 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/iochain.c -o iochain.o |
| 1620 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/../lz4/lz4.c -o lz4.o |
| 1621 |
endif |
| 1622 |
$(AR) cr $@ *.o |
| 1623 |
ifneq ($(RANLIB),) |
| 1624 |
$(RANLIB) $@ |
| 1625 |
endif |
| 1626 |
-rm -f *.o |
| 1627 |
|
| 1628 |
$(SOLIB)/libcbf.so: $(SOURCE) $(HEADERS) $(COMMONDEP) $(HDF5) $(LZ4DEPS) $(BSHUFDEPS) |
| 1629 |
-rm -f $@ |
| 1630 |
-rm -f *.o |
| 1631 |
mkdir -p $(SOLIB) |
| 1632 |
$(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(LZ4FLAG) $(BSHUFFLAG) $(PYCIFRWFLAG) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(SOURCE) |
| 1633 |
ifneq ($(CBFLIB_DONT_USE_LZ4),yes) |
| 1634 |
ifneq ($(MSYS2),yes) |
| 1635 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(LZ4src)/h5zlz4.c -o h5zlz4.o |
| 1636 |
else |
| 1637 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(LZ4)/LZ4/src/H5Zlz4.c -o h5zlz4.o |
| 1638 |
endif |
| 1639 |
endif |
| 1640 |
ifneq ($(CBFLIB_DONT_USE_BSHUF),yes) |
| 1641 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/bitshuffle.c -o bitshuffle..o |
| 1642 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/bitshuffle_core.c -o bitshuffle_core.o |
| 1643 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/iochain.c -o iochain.o |
| 1644 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/bshuf_h5filter.c -o bshuf_h5filter.o |
| 1645 |
$(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) $(SOCFLAGS) -DCBF_FILTER_STATIC -c $(BSHUFsrc)/../lz4/lz4.c -o lz4.o |
| 1646 |
endif |
| 1647 |
|
| 1648 |
$(CC) -o $@ *.o $(SOLDFLAGS) $(EXTRALIBS) $(REGEX_LIBS) $(HDF5SOLIBS_LOCAL) $(HDF5SOLIBS_SYSTEM) |
| 1649 |
-rm -f *.o |
| 1650 |
|
| 1651 |
# |
| 1652 |
# IMG library |
| 1653 |
# |
| 1654 |
$(LIB)/libimg.a: $(SRC)/img.c $(HEADERS) $(COMMONDEP) |
| 1655 |
mkdir -p $(LIB) |
| 1656 |
$(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) -c $(SRC)/img.c |
| 1657 |
$(AR) cr $@ img.o |
| 1658 |
ifneq ($(RANLIB),) |
| 1659 |
$(RANLIB) $@ |
| 1660 |
endif |
| 1661 |
rm img.o |
| 1662 |
|
| 1663 |
$(SOLIB)/libimg.so: $(SOURCE) $(HEADERS) $(COMMONDEP) |
| 1664 |
-rm -f $@ |
| 1665 |
mkdir -p $(SOLIB) |
| 1666 |
$(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(SRC)/img.c |
| 1667 |
$(CC) -o $@ img.o $(SOLDFLAGS) |
| 1668 |
rm img.o |
| 1669 |
|
| 1670 |
# |
| 1671 |
# CBF and IMG libraries |
| 1672 |
# |
| 1673 |
CBF_IMG_LIBS: $(LIB)/libcbf.a $(LIB)/libimg.a |
| 1674 |
|
| 1675 |
|
| 1676 |
# |
| 1677 |
# FCB library |
| 1678 |
# |
| 1679 |
$(LIB)/libfcb.a: $(F90SOURCE) $(COMMONDEP) $(HDF5) |
| 1680 |
mkdir -p $(LIB) |
| 1681 |
ifneq ($(F90C),) |
| 1682 |
$(F90C) $(F90FLAGS) -c $(F90SOURCE) |
| 1683 |
$(AR) cr $@ *.o |
| 1684 |
ifneq ($(RANLIB),) |
| 1685 |
$(RANLIB) $@ |
| 1686 |
endif |
| 1687 |
rm *.o |
| 1688 |
else |
| 1689 |
echo "Define F90C to build $(LIB)/libfcb.a" |
| 1690 |
endif |
| 1691 |
|
| 1692 |
$(SOLIB)/libfcb.so: $(F90SOURCE) $(HEADERS) $(COMMONDEP) $(SOLIB) |
| 1693 |
ifneq ($(F90C),) |
| 1694 |
-rm -f $@ |
| 1695 |
mkdir -p $(SOLIB) |
| 1696 |
$(F90C) $(F90FLAGS) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) -c $(F90SOURCE) |
| 1697 |
$(F90C) $(F90FLAGS) -o $@ *.o $(SOLDFLAGS) |
| 1698 |
rm *.o |
| 1699 |
else |
| 1700 |
echo "Define F90C to build $(SOLIB)/libfcb.so" |
| 1701 |
endif |
| 1702 |
|
| 1703 |
|
| 1704 |
# |
| 1705 |
# Python bindings |
| 1706 |
# |
| 1707 |
|
| 1708 |
$(PY2CBF)/make_pycbf.py: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY2CBF)/make_pycbf.w |
| 1709 |
(cd $(PY2CBF); $(NUWEB) make_pycbf.w) |
| 1710 |
|
| 1711 |
$(PY2CBF)/pycbf.i: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY2CBF)/pycbf_i.w |
| 1712 |
(cd $(PY2CBF); $(NUWEB) pycbf_i.w) |
| 1713 |
|
| 1714 |
$(PY2CBF)/py2setup_py.m4 \ |
| 1715 |
$(PY2CBF)/win32.bat \ |
| 1716 |
$(PY2CBF)/linux.sh \ |
| 1717 |
$(PY2CBF)/makeflatascii.py \ |
| 1718 |
$(PY2CBF)/pycbf_test1.py \ |
| 1719 |
$(PY2CBF)/pycbf_test2.py \ |
| 1720 |
$(PY2CBF)/pycbf_test3.py \ |
| 1721 |
$(PY2CBF)/pycbf_test4.py \ |
| 1722 |
$(PY2CBF)/pycbf_testfelaxes.py \ |
| 1723 |
$(PY2CBF)/xmas/readmarheader.py \ |
| 1724 |
$(PY2CBF)/xmas/xmasheaders.py \ |
| 1725 |
$(PY2CBF)/xmas/xmas_cif_template.cif : $(NUWEB_DEP) $(NUWEB_DEP2) $(PY2CBF)/pycbf.w |
| 1726 |
(cd $(PY2CBF); $(NUWEB) pycbf.w) |
| 1727 |
touch $(PY2CBF)/py2setup_py.m4 |
| 1728 |
|
| 1729 |
$(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \ |
| 1730 |
$(PY2CBF)/py2setup.py \ |
| 1731 |
$(PY2CBF)/pycbf.i \ |
| 1732 |
$(PY2CBF)/cbfhandlewrappers.i \ |
| 1733 |
$(PY2CBF)/cbfdetectorwrappers.i \ |
| 1734 |
$(PY2CBF)/cbfgenericwrappers.i \ |
| 1735 |
$(PY2CBF)/cbfgoniometerwrappers.i |
| 1736 |
-cp $(SOLIB)/*.so $(LIB) |
| 1737 |
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .) |
| 1738 |
|
| 1739 |
$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py |
| 1740 |
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX)) |
| 1741 |
|
| 1742 |
$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py |
| 1743 |
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user) |
| 1744 |
|
| 1745 |
$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4 |
| 1746 |
echo m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \ |
| 1747 |
-Dregexlibdir=$(REGEX_LIBDIR) -Dhdf5_prefix=$(HDF5_PREFIX) \ |
| 1748 |
$(PY2CBF)/py2setup_py.m4 |
| 1749 |
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \ |
| 1750 |
-Dregexlibdir=$(REGEX_LIBDIR) -Dhdf5_prefix=$(HDF5_PREFIX) \ |
| 1751 |
$(PY2CBF)/py2setup_py.m4 > $@) |
| 1752 |
|
| 1753 |
$(PY2CBF)/py2setup_MINGW.py: $(PY2CBF)/setup_py.m4 |
| 1754 |
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \ |
| 1755 |
-Dregexlibdir=$(REGEX_LIBDIR) -Dhdf5_prefix=$(HDF5_PREFIX) \ |
| 1756 |
$(PY2CBF)/py2setup_py.m4 > $@) |
| 1757 |
|
| 1758 |
$(LIB)/_py2cbf.$(PY2CBFEXT): $(PY2CBF)/_py2cbf.$(PY2CBFEXT) |
| 1759 |
mkdir -p $(LIB) |
| 1760 |
cp $(PY2CBF)/_py2cbf.$(PY2CBFEXT) $(LIB)/_py2cbf.$(PY2CBFEXT) |
| 1761 |
|
| 1762 |
$(PY2CBF)/pycbf.pdf: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY2CBF)/pycbf.w |
| 1763 |
(cd $(PY2CBF); \ |
| 1764 |
$(NUWEB) pycbf; \ |
| 1765 |
latex pycbf; \ |
| 1766 |
$(NUWEB) pycbf; \ |
| 1767 |
latex pycbf; \ |
| 1768 |
dvipdfm pycbf ) |
| 1769 |
|
| 1770 |
$(PY2CBF)/CBFlib.txt: $(DOC)/CBFlib.html |
| 1771 |
links -dump $(DOC)/CBFlib.html > $(PY2CBF)/CBFlib.txt |
| 1772 |
|
| 1773 |
$(PY2CBF)/pycbf.py: $(PY2CBF)/pycbf.pdf $(PY2CBF)/cbfdetectorwrappers.i \ |
| 1774 |
$(PY2CBF)/cbfgenericwrappers.i \ |
| 1775 |
$(PY2CBF)/cbfgoniometerwrappers.i \ |
| 1776 |
$(PY2CBF)/CBFlib.txt $(PY2CBF)/make_pycbf.py |
| 1777 |
(cd $(PY2CBF); $(PYTHON2) make_pycbf.py; $(PYSWIG) -module py2cbf pycbf.i; \ |
| 1778 |
$(PYTHON2) py2setup.py build; mv pycbf.py rawpycbf.py; \ |
| 1779 |
cat rawpycbf.py | sed "s/ _pycbf/ _py2cbf/" > pycbf.py ) |
| 1780 |
|
| 1781 |
$(PY3CBF)/make_pycbf.py: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY3CBF)/make_pycbf.w |
| 1782 |
(cd $(PY3CBF); $(NUWEB) make_pycbf.w) |
| 1783 |
|
| 1784 |
$(PY3CBF)/pycbf.i: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY3CBF)/pycbf_i.w |
| 1785 |
(cd $(PY3CBF); $(NUWEB) pycbf_i.w) |
| 1786 |
|
| 1787 |
$(PY3CBF)/py3setup_py.m4 \ |
| 1788 |
$(PY3CBF)/win32.bat \ |
| 1789 |
$(PY3CBF)/linux.sh \ |
| 1790 |
$(PY3CBF)/makeflatascii.py \ |
| 1791 |
$(PY3CBF)/pycbf_test1.py \ |
| 1792 |
$(PY3CBF)/pycbf_test2.py \ |
| 1793 |
$(PY3CBF)/pycbf_test3.py \ |
| 1794 |
$(PY3CBF)/pycbf_test4.py \ |
| 1795 |
$(PY3CBF)/pycbf_testfelaxes.py \ |
| 1796 |
$(PY3CBF)/xmas/readmarheader.py \ |
| 1797 |
$(PY3CBF)/xmas/xmasheaders.py \ |
| 1798 |
$(PY3CBF)/xmas/xmas_cif_template.cif: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY3CBF)/pycbf.w |
| 1799 |
(cd $(PY3CBF); $(NUWEB) pycbf.w ) |
| 1800 |
touch $(PY3CBF)/py3setup_py.m4 |
| 1801 |
|
| 1802 |
$(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \ |
| 1803 |
$(PY3CBF)/py3setup.py \ |
| 1804 |
$(PY3CBF)/pycbf.i \ |
| 1805 |
$(PY3CBF)/cbfhandlewrappers.i \ |
| 1806 |
$(PY3CBF)/cbfdetectorwrappers.i \ |
| 1807 |
$(PY3CBF)/cbfgenericwrappers.i \ |
| 1808 |
$(PY3CBF)/cbfgoniometerwrappers.i |
| 1809 |
-cp $(SOLIB)/*.so $(LIB) |
| 1810 |
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .) |
| 1811 |
|
| 1812 |
$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py |
| 1813 |
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX)) |
| 1814 |
|
| 1815 |
$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py |
| 1816 |
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user) |
| 1817 |
|
| 1818 |
$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4 |
| 1819 |
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \ |
| 1820 |
-Dregexlibdir=$(REGEX_LIBDIR) -Dhdf5_prefix=$(HDF5_PREFIX) \ |
| 1821 |
$(PY3CBF)/py3setup_py.m4 > $@) |
| 1822 |
|
| 1823 |
$(PY3CBF)/py3setup_MINGW.py: $(PY3CBF)/py3setup_py.m4 |
| 1824 |
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \ |
| 1825 |
-Dregexlibdir=$(REGEX_LIBDIR) -Dhdf5_prefix=$(HDF5_PREFIX) \ |
| 1826 |
$(PY3CBF)/py3setup_py.m4 > $@) |
| 1827 |
|
| 1828 |
$(LIB)/_pycbf.$(PY3CBFEXT): $(PY3CBF)/_pycbf.$(PY3CBFEXT) |
| 1829 |
mkdir -p $(LIB) |
| 1830 |
cp $(PY3CBF)/_pycbf.$(PY3CBFEXT) $(LIB)/_pycbf.$(PY3CBFEXT) |
| 1831 |
|
| 1832 |
$(PY3CBF)/pycbf.pdf: $(NUWEB_DEP) $(NUWEB_DEP2) $(PY3CBF)/pycbf.w |
| 1833 |
(cd $(PY3CBF); \ |
| 1834 |
$(NUWEB) pycbf; \ |
| 1835 |
latex pycbf; \ |
| 1836 |
$(NUWEB) pycbf; \ |
| 1837 |
latex pycbf; \ |
| 1838 |
dvipdfm pycbf ) |
| 1839 |
|
| 1840 |
$(PY3CBF)/CBFlib.txt: $(DOC)/CBFlib.html |
| 1841 |
links -dump $(DOC)/CBFlib.html > $(PY3CBF)/CBFlib.txt |
| 1842 |
|
| 1843 |
$(PY3CBF)/pycbf.py: $(PY3CBF)/pycbf.pdf $(PY3CBF)/cbfdetectorwrappers.i \ |
| 1844 |
$(PY3CBF)/cbfgenericwrappers.i \ |
| 1845 |
$(PY3CBF)/cbfgoniometerwrappers.i \ |
| 1846 |
$(PY3CBF)/CBFlib.txt $(PY3CBF)/make_pycbf.py |
| 1847 |
(cd $(PY3CBF); $(PYTHON3) make_pycbf.py; $(PYSWIG) pycbf.i; \ |
| 1848 |
$(PYTHON3) py3setup.py build; mv pycbf.py rawpycbf.py; \ |
| 1849 |
echo "# coding=utf-8" | cat - rawpycbf.py > pycbf.py) |
| 1850 |
|
| 1851 |
# |
| 1852 |
# Java bindings |
| 1853 |
# |
| 1854 |
$(JCBF)/cbflib-$(VERSION).jar: $(JCBF) $(SRC)/jcbf.i |
| 1855 |
$(JSWIG) -I$(INCLUDE) -package org.iucr.cbflib -outdir $(JCBF) -o $(JCBF)/jcbf_wrap.c $(SRC)/jcbf.i |
| 1856 |
$(JAVAC) -d . $(JCBF)/*.java |
| 1857 |
$(JAR) cf $@ org |
| 1858 |
|
| 1859 |
$(SOLIB)/libcbf_wrap.so: $(JCBF)/cbflib-$(VERSION).jar $(SOLIB)/libcbf.so |
| 1860 |
mkdir -p $(SOLIB) |
| 1861 |
$(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(SOCFLAGS) $(INCLUDES) $(WARNINGS) $(JAVAINCLUDES) -c $(JCBF)/jcbf_wrap.c |
| 1862 |
$(CC) -o $@ jcbf_wrap.o $(SOLDFLAGS) -L$(SOLIB) -lcbf $(REGEX_LIBS) |
| 1863 |
rm jcbf_wrap.o |
| 1864 |
|
| 1865 |
# |
| 1866 |
# F90SOURCE |
| 1867 |
# |
| 1868 |
$(SRC)/fcb_exit_binary.f90: $(M4)/fcb_exit_binary.m4 $(M4)/fcblib_defines.m4 |
| 1869 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_exit_binary.m4) > $(SRC)/fcb_exit_binary.f90 |
| 1870 |
$(SRC)/fcb_next_binary.f90: $(M4)/fcb_next_binary.m4 $(M4)/fcblib_defines.m4 |
| 1871 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_next_binary.m4) > $(SRC)/fcb_next_binary.f90 |
| 1872 |
$(SRC)/fcb_open_cifin.f90: $(M4)/fcb_open_cifin.m4 $(M4)/fcblib_defines.m4 |
| 1873 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_open_cifin.m4) > $(SRC)/fcb_open_cifin.f90 |
| 1874 |
$(SRC)/fcb_packed.f90: $(M4)/fcb_packed.m4 $(M4)/fcblib_defines.m4 |
| 1875 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_packed.m4) > $(SRC)/fcb_packed.f90 |
| 1876 |
$(SRC)/fcb_read_bits.f90: $(M4)/fcb_read_bits.m4 $(M4)/fcblib_defines.m4 |
| 1877 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_read_bits.m4) > $(SRC)/fcb_read_bits.f90 |
| 1878 |
$(SRC)/fcb_read_image.f90: $(M4)/fcb_read_image.m4 $(M4)/fcblib_defines.m4 |
| 1879 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_read_image.m4) > $(SRC)/fcb_read_image.f90 |
| 1880 |
$(SRC)/fcb_read_xds_i2.f90: $(M4)/fcb_read_xds_i2.m4 $(M4)/fcblib_defines.m4 |
| 1881 |
(cd $(M4); m4 -P $(M4FLAGS) fcb_read_xds_i2.m4) > $(SRC)/fcb_read_xds_i2.f90 |
| 1882 |
$(EXAMPLES)/test_fcb_read_image.f90: $(M4)/test_fcb_read_image.m4 $(M4)/fcblib_defines.m4 |
| 1883 |
(cd $(M4); m4 -P $(M4FLAGS) test_fcb_read_image.m4) > $(EXAMPLES)/test_fcb_read_image.f90 |
| 1884 |
$(EXAMPLES)/test_xds_binary.f90: $(M4)/test_xds_binary.m4 $(M4)/fcblib_defines.m4 |
| 1885 |
(cd $(M4); m4 -P $(M4FLAGS) test_xds_binary.m4) > $(EXAMPLES)/test_xds_binary.f90 |
| 1886 |
|
| 1887 |
# |
| 1888 |
# convert_image example program |
| 1889 |
# |
| 1890 |
$(BIN)/convert_image: $(LIB)/libcbf.a $(EXAMPLES)/convert_image.c $(SRC)/img.c \ |
| 1891 |
$(GOPTLIB) $(GOPTINC) |
| 1892 |
mkdir -p $(BIN) |
| 1893 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1894 |
$(EXAMPLES)/convert_image.c $(SRC)/img.c $(GOPTLIB) -L$(LIB) \ |
| 1895 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 1896 |
# |
| 1897 |
# convert_minicbf example program |
| 1898 |
# |
| 1899 |
$(BIN)/convert_minicbf: $(LIB)/libcbf.a $(EXAMPLES)/convert_minicbf.c \ |
| 1900 |
$(GOPTLIB) $(GOPTINC) $(EXAMPLES)/batch_convert_minicbf.sh |
| 1901 |
mkdir -p $(BIN) |
| 1902 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1903 |
$(EXAMPLES)/convert_minicbf.c $(GOPTLIB) -L$(LIB) \ |
| 1904 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 1905 |
chmod 755 $(EXAMPLES)/batch_convert_minicbf.sh |
| 1906 |
|
| 1907 |
# |
| 1908 |
# makecbf example program |
| 1909 |
# |
| 1910 |
$(BIN)/makecbf: $(LIB)/libcbf.a $(EXAMPLES)/makecbf.c $(LIB)/libimg.a |
| 1911 |
mkdir -p $(BIN) |
| 1912 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1913 |
$(EXAMPLES)/makecbf.c -L$(LIB) \ |
| 1914 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -limg -o $@ |
| 1915 |
|
| 1916 |
|
| 1917 |
# |
| 1918 |
# adscimg2cbf example program |
| 1919 |
# |
| 1920 |
$(BIN)/adscimg2cbf: $(LIB)/libcbf.a $(EXAMPLES)/adscimg2cbf.c $(EXAMPLES)/adscimg2cbf_sub.c |
| 1921 |
mkdir -p $(BIN) |
| 1922 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) -D_SVID_SOURCE $(INCLUDES) $(WARNINGS) \ |
| 1923 |
$(EXAMPLES)/adscimg2cbf.c $(EXAMPLES)/adscimg2cbf_sub.c -L$(LIB) \ |
| 1924 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 1925 |
|
| 1926 |
# |
| 1927 |
# cbf2adscimg example program |
| 1928 |
# |
| 1929 |
$(BIN)/cbf2adscimg: $(LIB)/libcbf.a $(EXAMPLES)/cbf2adscimg.c $(EXAMPLES)/cbf2adscimg_sub.c |
| 1930 |
mkdir -p $(BIN) |
| 1931 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) -D_SVID_SOURCE $(INCLUDES) $(WARNINGS) \ |
| 1932 |
$(EXAMPLES)/cbf2adscimg.c $(EXAMPLES)/cbf2adscimg_sub.c -L$(LIB) \ |
| 1933 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 1934 |
|
| 1935 |
# |
| 1936 |
# cbf_standardize_numbers example program |
| 1937 |
# |
| 1938 |
$(BIN)/cbf_standardize_numbers: $(EXAMPLES)/cbf_standardize_numbers.c $(EXAMPLES)/cbf_standardize_numbers.h |
| 1939 |
mkdir -p $(BIN) |
| 1940 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) -D_SVID_SOURCE $(INCLUDES) $(WARNINGS) \ |
| 1941 |
$(EXAMPLES)/cbf_standardize_numbers.c $(SRC_FGETLN) $(REGEX_LIBS_STATIC) $(EXTRALIBS) -o $@ |
| 1942 |
|
| 1943 |
# |
| 1944 |
# changtestcompression example program |
| 1945 |
# |
| 1946 |
$(BIN)/changtestcompression: $(LIB)/libcbf.a $(EXAMPLES)/changtestcompression.c |
| 1947 |
mkdir -p $(BIN) |
| 1948 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1949 |
$(EXAMPLES)/changtestcompression.c -L$(LIB) \ |
| 1950 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 1951 |
|
| 1952 |
# |
| 1953 |
# img2cif example program |
| 1954 |
# |
| 1955 |
$(BIN)/img2cif: $(LIB)/libcbf.a $(EXAMPLES)/img2cif.c $(LIB)/libimg.a \ |
| 1956 |
$(GOPTLIB) $(GOTPINC) |
| 1957 |
mkdir -p $(BIN) |
| 1958 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1959 |
$(EXAMPLES)/img2cif.c $(GOPTLIB) -L$(LIB) \ |
| 1960 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -lhdf5 -limg -o $@ |
| 1961 |
|
| 1962 |
# |
| 1963 |
# cif2cbf example program |
| 1964 |
# |
| 1965 |
$(BIN)/cif2cbf: $(LIB)/libcbf.a $(EXAMPLES)/cif2cbf.c $(LIB)/libimg.a \ |
| 1966 |
$(GOPTLIB) $(GOPTINC) |
| 1967 |
mkdir -p $(BIN) |
| 1968 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1969 |
$(EXAMPLES)/cif2cbf.c $(GOPTLIB) -L$(LIB) \ |
| 1970 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -lhdf5 -limg -o $@ |
| 1971 |
|
| 1972 |
# |
| 1973 |
# cbf2nexus example program |
| 1974 |
# |
| 1975 |
$(BIN)/cbf2nexus: $(LIB)/libcbf.a $(EXAMPLES)/cbf2nexus.c \ |
| 1976 |
$(GOPTLIB) $(GOPTINC) |
| 1977 |
mkdir -p $(BIN) |
| 1978 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1979 |
$(EXAMPLES)/cbf2nexus.c $(GOPTLIB) -L$(LIB) \ |
| 1980 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) \ |
| 1981 |
-lhdf5 -limg -o $@ |
| 1982 |
|
| 1983 |
# |
| 1984 |
# minicbf2nexus example program |
| 1985 |
# |
| 1986 |
$(BIN)/minicbf2nexus: $(LIB)/libcbf.a $(EXAMPLES)/minicbf2nexus.c $(LIB)/libimg.a \ |
| 1987 |
$(GOPTLIB) $(GOPTINC) |
| 1988 |
mkdir -p $(BIN) |
| 1989 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 1990 |
$(EXAMPLES)/minicbf2nexus.c $(GOPTLIB) -L$(LIB) \ |
| 1991 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -lhdf5 -limg -o $@ |
| 1992 |
|
| 1993 |
# |
| 1994 |
# nexus2cbf example program |
| 1995 |
# |
| 1996 |
$(BIN)/nexus2cbf: $(LIB)/libcbf.a $(EXAMPLES)/nexus2cbf.c \ |
| 1997 |
$(GOPTLIB) $(GOPTINC) $(REGEX) |
| 1998 |
mkdir -p $(BIN) |
| 1999 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2000 |
$(EXAMPLES)/nexus2cbf.c $(GOPTLIB) -L$(LIB) \ |
| 2001 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -lhdf5 -limg -o $@ |
| 2002 |
|
| 2003 |
# |
| 2004 |
# roi_peaksearch example program |
| 2005 |
# |
| 2006 |
$(BIN)/roi_peaksearch: $(LIB)/libcbf.a $(EXAMPLES)/roi_peaksearch.c \ |
| 2007 |
$(EXAMPLES)/dps_peaksearch.c $(EXAMPLES)/dps_peaksearch.h $(GOPTLIB) $(GOPTINC) |
| 2008 |
mkdir -p $(BIN) |
| 2009 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2010 |
$(EXAMPLES)/roi_peaksearch.c $(EXAMPLES)/dps_peaksearch.c $(GOPTLIB) -L$(LIB) \ |
| 2011 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -limg -o $@ |
| 2012 |
|
| 2013 |
|
| 2014 |
# |
| 2015 |
# dectris cbf_template_t program |
| 2016 |
# |
| 2017 |
$(BIN)/cbf_template_t: $(DECTRIS_EXAMPLES)/cbf_template_t.c \ |
| 2018 |
$(DECTRIS_EXAMPLES)/mx_cbf_t_extras.h \ |
| 2019 |
$(DECTRIS_EXAMPLES)/mx_parms.h |
| 2020 |
mkdir -p $(BIN) |
| 2021 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) -I $(DECTRIS_EXAMPLES) $(WARNINGS) \ |
| 2022 |
$(DECTRIS_EXAMPLES)/cbf_template_t.c -o $@ |
| 2023 |
|
| 2024 |
# |
| 2025 |
# testcell example program |
| 2026 |
# |
| 2027 |
$(BIN)/testcell: $(LIB)/libcbf.a $(EXAMPLES)/testcell.C |
| 2028 |
mkdir -p $(BIN) |
| 2029 |
$(C++) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2030 |
$(EXAMPLES)/testcell.C -L$(LIB) \ |
| 2031 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2032 |
|
| 2033 |
# |
| 2034 |
# cif2c example program |
| 2035 |
# |
| 2036 |
$(BIN)/cif2c: $(LIB)/libcbf.a $(EXAMPLES)/cif2c.c |
| 2037 |
mkdir -p $(BIN) |
| 2038 |
$(C++) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2039 |
$(EXAMPLES)/cif2c.c -L$(LIB) \ |
| 2040 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2041 |
|
| 2042 |
# |
| 2043 |
# sauter_test example program |
| 2044 |
# |
| 2045 |
$(BIN)/sauter_test: $(LIB)/libcbf.a $(EXAMPLES)/sauter_test.C |
| 2046 |
mkdir -p $(BIN) |
| 2047 |
$(C++) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2048 |
$(EXAMPLES)/sauter_test.C -L$(LIB) \ |
| 2049 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2050 |
|
| 2051 |
# |
| 2052 |
# sequence_match example program |
| 2053 |
# |
| 2054 |
$(BIN)/sequence_match: $(LIB)/libcbf.a $(EXAMPLES)/sequence_match.c $(LIB)/libimg.a \ |
| 2055 |
$(GOPTLIB) $(GOPTINC) |
| 2056 |
mkdir -p $(BIN) |
| 2057 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2058 |
$(EXAMPLES)/sequence_match.c $(GOPTLIB) -L$(LIB) \ |
| 2059 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -limg -o $@ |
| 2060 |
|
| 2061 |
# |
| 2062 |
# tiff2cbf example program |
| 2063 |
# |
| 2064 |
$(BIN)/tiff2cbf: $(LIB)/libcbf.a $(EXAMPLES)/tiff2cbf.c $(EXAMPLES)/tif_sprint.c \ |
| 2065 |
$(GOPTLIB) $(GOPTINC) $(TIFF) |
| 2066 |
mkdir -p $(BIN) |
| 2067 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2068 |
-I$(TIFF)/libtiff $(EXAMPLES)/tiff2cbf.c $(EXAMPLES)/tif_sprint.c $(GOPTLIB) -L$(LIB) \ |
| 2069 |
-lcbf -L$(TIFF_PREFIX)/lib -ltiff $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -limg -o $@ |
| 2070 |
|
| 2071 |
# |
| 2072 |
# Andy Arvai's buffered read test program |
| 2073 |
# |
| 2074 |
$(BIN)/arvai_test: $(LIB)/libcbf.a $(EXAMPLES)/arvai_test.c $(LIB)/libimg.a \ |
| 2075 |
$(GOPTLIB) $(GOPTINC) |
| 2076 |
mkdir -p $(BIN) |
| 2077 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2078 |
$(EXAMPLES)/arvai_test.c $(GOPTLIB) -L$(LIB) \ |
| 2079 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -limg -o $@ |
| 2080 |
|
| 2081 |
# |
| 2082 |
# testreals example program |
| 2083 |
# |
| 2084 |
$(BIN)/testreals: $(LIB)/libcbf.a $(EXAMPLES)/testreals.c |
| 2085 |
mkdir -p $(BIN) |
| 2086 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2087 |
$(EXAMPLES)/testreals.c -L$(LIB) \ |
| 2088 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2089 |
|
| 2090 |
# |
| 2091 |
# testflat example program |
| 2092 |
# |
| 2093 |
$(BIN)/testflat: $(LIB)/libcbf.a $(EXAMPLES)/testflat.c |
| 2094 |
mkdir -p $(BIN) |
| 2095 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2096 |
$(EXAMPLES)/testflat.c -L$(LIB) \ |
| 2097 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2098 |
# |
| 2099 |
# testflatpacked example program |
| 2100 |
# |
| 2101 |
$(BIN)/testflatpacked: $(LIB)/libcbf.a $(EXAMPLES)/testflatpacked.c |
| 2102 |
mkdir -p $(BIN) |
| 2103 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2104 |
$(EXAMPLES)/testflatpacked.c -L$(LIB) \ |
| 2105 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2106 |
|
| 2107 |
ifneq ($(F90C),) |
| 2108 |
# |
| 2109 |
# test_xds_binary example program |
| 2110 |
# |
| 2111 |
$(BIN)/test_xds_binary: $(LIB)/libfcb.a $(EXAMPLES)/test_xds_binary.f90 |
| 2112 |
mkdir -p $(BIN) |
| 2113 |
$(F90C) $(F90FLAGS) $(F90LDFLAGS) $(EXAMPLES)/test_xds_binary.f90 \ |
| 2114 |
-L$(LIB) -lfcb -o $@ |
| 2115 |
|
| 2116 |
# |
| 2117 |
# test_fcb_read_image example program |
| 2118 |
# |
| 2119 |
$(BIN)/test_fcb_read_image: $(LIB)/libfcb.a $(EXAMPLES)/test_fcb_read_image.f90 |
| 2120 |
mkdir -p $(BIN) |
| 2121 |
$(F90C) $(F90FLAGS) $(F90LDFLAGS) $(EXAMPLES)/test_fcb_read_image.f90 \ |
| 2122 |
-L$(LIB) -lfcb -o $@ |
| 2123 |
endif |
| 2124 |
|
| 2125 |
# |
| 2126 |
# testcbf (C) |
| 2127 |
# |
| 2128 |
$(BIN)/ctestcbf: $(EXAMPLES)/testcbf.c $(LIB)/libcbf.a |
| 2129 |
mkdir -p $(BIN) |
| 2130 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2131 |
$(EXAMPLES)/testcbf.c -L$(LIB) \ |
| 2132 |
-lcbf $(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) -o $@ |
| 2133 |
|
| 2134 |
# |
| 2135 |
# testcbf (Java) |
| 2136 |
# |
| 2137 |
$(BIN)/testcbf.class: $(EXAMPLES)/testcbf.java $(JCBF)/cbflib-$(VERSION).jar $(SOLIB)/libcbf_wrap.so |
| 2138 |
mkdir -p $(BIN) |
| 2139 |
$(JAVAC) -cp $(JCBF)/cbflib-$(VERSION).jar -d $(BIN) $(EXAMPLES)/testcbf.java |
| 2140 |
|
| 2141 |
ifneq ($(CBF_USE_ULP),) |
| 2142 |
# |
| 2143 |
# testulp test program |
| 2144 |
# |
| 2145 |
$(BIN)/testulp: $(LIB)/libcbf.a $(EXAMPLES)/testulp.c $(EXAMPLES)/unittest.h |
| 2146 |
mkdir -p $(BIN) |
| 2147 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) \ |
| 2148 |
$(WARNINGS) $(EXAMPLES)/testulp.c -L$(LIB) $(LIB)/libcbf.a \ |
| 2149 |
$(REGEX_LIBS_STATIC) $(EXTRALIBS) -o [email protected] |
| 2150 |
mv [email protected] $@ |
| 2151 |
endif |
| 2152 |
|
| 2153 |
# |
| 2154 |
# testhdf5 test program |
| 2155 |
# |
| 2156 |
$(BIN)/testhdf5: $(LIB)/libcbf.a $(EXAMPLES)/testhdf5.c $(EXAMPLES)/unittest.h |
| 2157 |
mkdir -p $(BIN) |
| 2158 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) \ |
| 2159 |
$(WARNINGS) $(EXAMPLES)/testhdf5.c -L$(LIB) $(LIB)/libcbf.a \ |
| 2160 |
$(REGEX_LIBS_STATIC) $(HDF5LIBS_LOCAL) $(EXTRALIBS) $(HDF5LIBS_SYSTEM) \ |
| 2161 |
-o [email protected] |
| 2162 |
mv [email protected] $@ |
| 2163 |
|
| 2164 |
# |
| 2165 |
# testalloc test program |
| 2166 |
# |
| 2167 |
$(BIN)/testalloc: $(LIB)/libcbf.a $(EXAMPLES)/testalloc.c $(EXAMPLES)/unittest.h |
| 2168 |
mkdir -p $(BIN) |
| 2169 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) \ |
| 2170 |
$(WARNINGS) $(EXAMPLES)/testalloc.c -L$(LIB) $(LIB)/libcbf.a \ |
| 2171 |
$(REGEX_LIBS_STATIC) $(EXTRALIBS) -o [email protected] |
| 2172 |
mv [email protected] $@ |
| 2173 |
|
| 2174 |
# |
| 2175 |
# test_cbf_airy_disk test program |
| 2176 |
# |
| 2177 |
$(BIN)/test_cbf_airy_disk: $(LIB)/libcbf.a $(EXAMPLES)/test_cbf_airy_disk.c |
| 2178 |
mkdir -p $(BIN) |
| 2179 |
$(CC) $(CFLAGS) $(LDFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) \ |
| 2180 |
$(WARNINGS) $(EXAMPLES)/test_cbf_airy_disk.c -L$(LIB) $(LIB)/libcbf.a \ |
| 2181 |
$(REGEX_LIBS_STATIC) $(EXTRALIBS) -o [email protected] |
| 2182 |
mv [email protected] $@ |
| 2183 |
|
| 2184 |
# |
| 2185 |
# cbf_testxfelread: test program |
| 2186 |
# |
| 2187 |
$(BIN)/cbf_testxfelread: $(LIB)/libcbf.a $(EXAMPLES)/cbf_testxfelread.c $(EXAMPLES)/cbf_testxfelread.h |
| 2188 |
mkdir -p $(BIN) |
| 2189 |
$(CC) $(CFLAGS) $(MISCFLAG) $(CBF_REGEXFLAG) $(INCLUDES) $(WARNINGS) \ |
| 2190 |
$(EXAMPLES)/cbf_testxfelread.c -L$(LIB) $(LIB)/libcbf.a \ |
| 2191 |
$(REGEX_LIBS_STATIC) $(EXTRALIBS) -o [email protected] |
| 2192 |
mv [email protected] $@ |
| 2193 |
|
| 2194 |
# |
| 2195 |
# Data files for tests |
| 2196 |
# |
| 2197 |
|
| 2198 |
$(DATADIRI): $(M4)/Makefile.m4 |
| 2199 |
(cd ..; $(DOWNLOAD) $(DATAURLI)) |
| 2200 |
(cd ..; tar -zxvf CBFlib_$(VERSION)_Data_Files_Input.tar.gz) |
| 2201 |
touch $(DATADIRI) |
| 2202 |
-(cd ..; rm CBFlib_$(VERSION)_Data_Files_Input.tar.gz) |
| 2203 |
|
| 2204 |
$(DATADIRO): $(M4)/Makefile.m4 |
| 2205 |
(cd ..; $(DOWNLOAD) $(DATAURLO)) |
| 2206 |
(cd ..; tar -zxvf CBFlib_$(VERSION)_Data_Files_Output.tar.gz) |
| 2207 |
touch $(DATADIRO) |
| 2208 |
-(cd ..; rm CBFlib_$(VERSION)_Data_Files_Output.tar.gz) |
| 2209 |
|
| 2210 |
# Input Data Files |
| 2211 |
|
| 2212 |
TESTINPUT_BASIC = example.mar2300 |
| 2213 |
DATADIRI_INPUT_BASIC = $(DATADIRI)/example.mar2300 |
| 2214 |
|
| 2215 |
|
| 2216 |
TESTINPUT_EXTRA = \ |
| 2217 |
1191_00005.cbf \ |
| 2218 |
9ins.cif \ |
| 2219 |
hit-20140306005258847.cbf \ |
| 2220 |
insulin_pilatus6m.cbf \ |
| 2221 |
mb_LP_1_001.img \ |
| 2222 |
testflatin.cbf \ |
| 2223 |
testflatpackedin.cbf \ |
| 2224 |
testrealin.cbf \ |
| 2225 |
thaumatin_die_M1S5_1_0005_2.cbf \ |
| 2226 |
X4_lots_M1S4_1_0001.cbf \ |
| 2227 |
X4_lots_M1S4_1_0002.cbf \ |
| 2228 |
X4_lots_M1S4_1_0003.cbf \ |
| 2229 |
X4_lots_M1S4_1_0004.cbf \ |
| 2230 |
X4_lots_M1S4_1_0005.cbf \ |
| 2231 |
XRD1621.tif |
| 2232 |
|
| 2233 |
|
| 2234 |
|
| 2235 |
DATADIRI_INPUT_EXTRA = \ |
| 2236 |
$(DATADIRI)/1191_00005.cbf \ |
| 2237 |
$(DATADIRI)/9ins.cif \ |
| 2238 |
$(DATADIRI)/hit-20140306005258847.cbf \ |
| 2239 |
$(DATADIRI)/insulin_pilatus6m.cbf \ |
| 2240 |
$(DATADIRI)/mb_LP_1_001.img \ |
| 2241 |
$(DATADIRI)/testflatin.cbf \ |
| 2242 |
$(DATADIRI)/testflatpackedin.cbf \ |
| 2243 |
$(DATADIRI)/testrealin.cbf \ |
| 2244 |
$(DATADIRI)/thaumatin_die_M1S5_1_0005_2.cbf \ |
| 2245 |
$(DATADIRI)/X4_lots_M1S4_1_0001.cbf \ |
| 2246 |
$(DATADIRI)/X4_lots_M1S4_1_0002.cbf \ |
| 2247 |
$(DATADIRI)/X4_lots_M1S4_1_0003.cbf \ |
| 2248 |
$(DATADIRI)/X4_lots_M1S4_1_0004.cbf \ |
| 2249 |
$(DATADIRI)/X4_lots_M1S4_1_0005.cbf \ |
| 2250 |
$(DATADIRI)/XRD1621.tif |
| 2251 |
|
| 2252 |
|
| 2253 |
# Output Data Files |
| 2254 |
|
| 2255 |
TESTOUTPUT = adscconverted_flat_orig.cbf \ |
| 2256 |
adscconverted_orig.cbf converted_flat_orig.cbf converted_orig.cbf \ |
| 2257 |
insulin_pilatus6mconverted_orig.cbf.h5.cbf \ |
| 2258 |
insulin_pilatus6mconverted_orig.cbf.h5 \ |
| 2259 |
insulin_pilatus6mconverted_orig.cbf \ |
| 2260 |
insulin_pilatus6mconverted_v2_orig.cbf \ |
| 2261 |
mb_LP_1_001_orig.cbf testcell_orig.prt \ |
| 2262 |
test_xds_bin_testflatout_orig.out \ |
| 2263 |
test_xds_bin_testflatpackedout_orig.out test_fcb_read_testflatout_orig.out \ |
| 2264 |
test_fcb_read_testflatpackedout_orig.out \ |
| 2265 |
XRD1621_orig.cbf XRD1621_I4encbC100_orig.cbf \ |
| 2266 |
minicbf_orig.h5 \ |
| 2267 |
pycbf_test1_orig.out \ |
| 2268 |
pycbf_test2_orig.out \ |
| 2269 |
pycbf_test3_orig.out \ |
| 2270 |
pycbf_test4_orig.out \ |
| 2271 |
fel_test1_orig.out \ |
| 2272 |
fel_test2_orig.out \ |
| 2273 |
fel_test3_orig.out |
| 2274 |
NEWTESTOUTPUT = adscconverted_flat.cbf \ |
| 2275 |
adscconverted.cbf converted_flat.cbf converted.cbf \ |
| 2276 |
insulin_pilatus6mconverted.cbf \ |
| 2277 |
insulin_pilatus6mconverted.cbf.h5 \ |
| 2278 |
insulin_pilatus6mconverted.cbf.h5.cbf \ |
| 2279 |
insulin_pilatus6mconverted_orig.cbf \ |
| 2280 |
insulin_pilatus6mconverted_v2.cbf \ |
| 2281 |
mb_LP_1_001.cbf testcell.prt \ |
| 2282 |
test_xds_bin_testflatout.out \ |
| 2283 |
test_xds_bin_testflatpackedout.out test_fcb_read_testflatout.out \ |
| 2284 |
test_fcb_read_testflatpackedout.out \ |
| 2285 |
XRD1621.cbf XRD1621_I4encbC100.cbf \ |
| 2286 |
$(MINICBF_TEST)/minicbf.h5 \ |
| 2287 |
pycbf_test1.out \ |
| 2288 |
pycbf_test2.out \ |
| 2289 |
pycbf_test3.out \ |
| 2290 |
pycbf_test4.out \ |
| 2291 |
fel_test1.out \ |
| 2292 |
fel_test2.out \ |
| 2293 |
fel_test3.out |
| 2294 |
DATADIRO_OUTPUT = $(DATADIRO)/adscconverted_flat_orig.cbf \ |
| 2295 |
$(DATADIRO)/adscconverted_orig.cbf \ |
| 2296 |
$(DATADIRO)/converted_flat_orig.cbf \ |
| 2297 |
$(DATADIRO)/converted_orig.cbf \ |
| 2298 |
$(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5.cbf \ |
| 2299 |
$(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5 \ |
| 2300 |
$(DATADIRO)/insulin_pilatus6mconverted_orig.cbf \ |
| 2301 |
$(DATADIRO)/insulin_pilatus6mconverted_v2_orig.cbf \ |
| 2302 |
$(DATADIRO)/mb_LP_1_001_orig.cbf \ |
| 2303 |
$(DATADIRO)/testcell_orig.prt \ |
| 2304 |
$(DATADIRO)/test_xds_bin_testflatout_orig.out \ |
| 2305 |
$(DATADIRO)/test_xds_bin_testflatpackedout_orig.out \ |
| 2306 |
$(DATADIRO)/test_fcb_read_testflatout_orig.out \ |
| 2307 |
$(DATADIRO)/test_fcb_read_testflatpackedout_orig.out \ |
| 2308 |
$(DATADIRO)/XRD1621_orig.cbf \ |
| 2309 |
$(DATADIRO)/XRD1621_I4encbC100_orig.cbf \ |
| 2310 |
$(DATADIRO)/minicbf_orig.h5 |
| 2311 |
DATADIRO_OUTPUT_SIGNATURES = $(DATADIRO)/adscconverted_flat_orig.cbf$(SEXT) \ |
| 2312 |
$(DATADIRO)/adscconverted_orig.cbf$(SEXT) \ |
| 2313 |
$(DATADIRO)/converted_flat_orig.cbf$(SEXT) \ |
| 2314 |
$(DATADIRO)/converted_orig.cbf$(SEXT) \ |
| 2315 |
$(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5.cbf$(SEXT) \ |
| 2316 |
$(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5$(SEXT) \ |
| 2317 |
$(DATADIRO)/insulin_pilatus6mconverted_orig.cbf$(SEXT) \ |
| 2318 |
$(DATADIRO)/insulin_pilatus6mconverted_v2_orig.cbf$(SEXT) \ |
| 2319 |
$(DATADIRO)/mb_LP_1_001_orig.cbf$(SEXT) \ |
| 2320 |
$(DATADIRO)/testcell_orig.prt$(SEXT) \ |
| 2321 |
$(DATADIRO)/test_xds_bin_testflatout_orig.out$(SEXT) \ |
| 2322 |
$(DATADIRO)/test_xds_bin_testflatpackedout_orig.out$(SEXT) \ |
| 2323 |
$(DATADIRO)/test_fcb_read_testflatout_orig.out$(SEXT) \ |
| 2324 |
$(DATADIRO)/test_fcb_read_testflatpackedout_orig.out$(SEXT) \ |
| 2325 |
$(DATADIRO)/XRD1621_orig.cbf$(SEXT) \ |
| 2326 |
$(DATADIRO)/XRD1621_I4encbC100_orig.cbf$(SEXT) \ |
| 2327 |
$(DATADIRO)/minicbf_orig.h5$(SEXT) |
| 2328 |
|
| 2329 |
|
| 2330 |
|
| 2331 |
# Output Data File Signatures |
| 2332 |
|
| 2333 |
TESTOUTPUTSIGS = adscconverted_flat_orig.cbf$(SEXT) \ |
| 2334 |
adscconverted_orig.cbf$(SEXT) converted_flat_orig.cbf$(SEXT) converted_orig.cbf$(SEXT) \ |
| 2335 |
insulin_pilatus6mconverted_orig.cbf.h5$(SEXT) \ |
| 2336 |
insulin_pilatus6mconverted_orig.cbf.h5.cbf$(SEXT) \ |
| 2337 |
insulin_pilatus6mconverted_orig.cbf$(SEXT) \ |
| 2338 |
insulin_pilatus6mconverted_v2_orig.cbf$(SEXT) \ |
| 2339 |
mb_LP_1_001_orig.cbf$(SEXT) testcell_orig.prt$(SEXT) \ |
| 2340 |
test_xds_bin_testflatout_orig.out$(SEXT) \ |
| 2341 |
test_xds_bin_testflatpackedout_orig.out$(SEXT) test_fcb_read_testflatout_orig.out$(SEXT) \ |
| 2342 |
test_fcb_read_testflatpackedout_orig.out$(SEXT) \ |
| 2343 |
XRD1621_orig.cbf$(SEXT) \ |
| 2344 |
XRD1621_I4encbC100_orig.cbf$(SEXT) \ |
| 2345 |
minicbf_orig.h5$(SEXT) \ |
| 2346 |
pycbf_test1_orig.out$(SEXT) \ |
| 2347 |
pycbf_test2_orig.out$(SEXT) \ |
| 2348 |
pycbf_test3_orig.out$(SEXT) \ |
| 2349 |
pycbf_test4_orig.out$(SEXT) \ |
| 2350 |
fel_test1_orig.out$(SEXT) \ |
| 2351 |
fel_test2_orig.out$(SEXT) \ |
| 2352 |
fel_test3_orig.out$(SEXT) |
| 2353 |
DATADIRS_OUTPUT_SIGNATURES = $(DATADIRS)/adscconverted_flat_orig.cbf$(SEXT) \ |
| 2354 |
$(DATADIRS)/adscconverted_orig.cbf$(SEXT) \ |
| 2355 |
$(DATADIRS)/converted_flat_orig.cbf$(SEXT) \ |
| 2356 |
$(DATADIRS)/converted_orig.cbf$(SEXT) \ |
| 2357 |
$(DATADIRS)/insulin_pilatus6mconverted_orig.cbf.h5$(SEXT) \ |
| 2358 |
$(DATADIRS)/insulin_pilatus6mconverted_orig.cbf.h5.cbf$(SEXT) \ |
| 2359 |
$(DATADIRS)/insulin_pilatus6mconverted_orig.cbf$(SEXT) \ |
| 2360 |
$(DATADIRS)/insulin_pilatus6mconverted_v2_orig.cbf$(SEXT) \ |
| 2361 |
$(DATADIRS)/mb_LP_1_001_orig.cbf$(SEXT) \ |
| 2362 |
$(DATADIRS)/testcell_orig.prt$(SEXT) \ |
| 2363 |
$(DATADIRS)/test_xds_bin_testflatout_orig.out$(SEXT) \ |
| 2364 |
$(DATADIRS)/test_xds_bin_testflatpackedout_orig.out$(SEXT) \ |
| 2365 |
$(DATADIRS)/test_fcb_read_testflatout_orig.out$(SEXT) \ |
| 2366 |
$(DATADIRS)/test_fcb_read_testflatpackedout_orig.out$(SEXT) \ |
| 2367 |
$(DATADIRS)/XRD1621_orig.cbf$(SEXT) \ |
| 2368 |
$(DATADIRS)/XRD1621_I4encbC100_orig.cbf$(SEXT) \ |
| 2369 |
$(DATADIRS)/minicbf_orig.h5$(SEXT) \ |
| 2370 |
$(DATADIRS)/pycbf_test1_orig.out$(SEXT) \ |
| 2371 |
$(DATADIRS)/pycbf_test2_orig.out$(SEXT) \ |
| 2372 |
$(DATADIRS)/pycbf_test3_orig.out$(SEXT) \ |
| 2373 |
$(DATADIRS)/pycbf_test4_orig.out$(SEXT) \ |
| 2374 |
$(DATADIRS)/fel_test1_orig.out$(SEXT) \ |
| 2375 |
$(DATADIRS)/fel_test2_orig.out$(SEXT) \ |
| 2376 |
$(DATADIRS)/fel_test3_orig.out$(SEXT) |
| 2377 |
|
| 2378 |
# Fetch Input Data Files |
| 2379 |
|
| 2380 |
$(TESTINPUT_BASIC): $(DATADIRI) $(DATADIRI_INPUT_BASIC) |
| 2381 |
cp $(DATADIRI)/$@ $@ |
| 2382 |
cp $(DATADIRI)/$@$(SEXT) $@$(SEXT) |
| 2383 |
-$(SIGNATURE) < $@ | $(DIFF) - $@$(SEXT) |
| 2384 |
|
| 2385 |
$(TESTINPUT_EXTRA): $(DATADIRI) $(DATADIRI_INPUT_EXTRA) |
| 2386 |
cp $(DATADIRI)/$@ $@ |
| 2387 |
cp $(DATADIRI)/$@$(SEXT) $@$(SEXT) |
| 2388 |
-$(SIGNATURE) < $@ | $(DIFF) - $@$(SEXT) |
| 2389 |
|
| 2390 |
|
| 2391 |
# Fetch Output Data Files and Signatures |
| 2392 |
|
| 2393 |
$(TESTOUTPUT): $(DATADIRO) $(DATADIRO_OUTPUT) $(DATADIRO_OUTPUT_SIGNATURES) |
| 2394 |
cp $(DATADIRO)/$@ $@ |
| 2395 |
cp $(DATADIRO)/$@$(SEXT) $@$(SEXT) |
| 2396 |
-$(SIGNATURE) < $@ | $(DIFF) - $@$(SEXT) |
| 2397 |
|
| 2398 |
|
| 2399 |
# |
| 2400 |
# Tests |
| 2401 |
# |
| 2402 |
|
| 2403 |
|
| 2404 |
tests: all $(LIB) $(BIN) symlinksdone basic extra dectristests py2cbftests py3cbftests |
| 2405 |
restore_output: $(NEWTESTOUTPUT) $(DATADIRO) $(MINICBF_TEST)/minicbf.h5 |
| 2406 |
$(SIGNATURE) < adscconverted_flat.cbf > $(DATADIRO)/adscconverted_flat_orig.cbf$(SEXT) |
| 2407 |
$(SIGNATURE) < adscconverted.cbf > $(DATADIRO)/adscconverted_orig.cbf$(SEXT) |
| 2408 |
$(SIGNATURE) < converted_flat.cbf > $(DATADIRO)/converted_flat_orig.cbf$(SEXT) |
| 2409 |
$(SIGNATURE) < converted.cbf > $(DATADIRO)/converted_orig.cbf$(SEXT) |
| 2410 |
$(SIGNATURE) < insulin_pilatus6mconverted.cbf.h5 > $(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5$(SEXT) |
| 2411 |
$(SIGNATURE) < insulin_pilatus6mconverted.cbf.h5.cbf > $(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5.cbf$(SEXT) |
| 2412 |
$(SIGNATURE) < insulin_pilatus6mconverted_v2.cbf > $(DATADIRO)/insulin_pilatus6mconverted_v2_orig.cbf$(SEXT) |
| 2413 |
$(SIGNATURE) < mb_LP_1_001.cbf$ > $(DATADIRO)/mb_LP_1_001_orig.cbf$(SEXT) |
| 2414 |
$(SIGNATURE) < testcell.prt > $(DATADIRO)/testcell_orig.prt$(SEXT) |
| 2415 |
$(SIGNATURE) < test_xds_bin_testflatout.out > $(DATADIRO)/test_xds_bin_testflatout_orig.out$(SEXT) |
| 2416 |
$(SIGNATURE) < test_xds_bin_testflatpackedout.out > $(DATADIRO)/test_xds_bin_testflatpackedout_orig.out$(SEXT) |
| 2417 |
$(SIGNATURE) < test_fcb_read_testflatout.out > $(DATADIRO)/test_fcb_read_testflatout_orig.out$(SEXT) |
| 2418 |
$(SIGNATURE) < test_fcb_read_testflatpackedout.out > $(DATADIRO)/test_fcb_read_testflatpackedout_orig.out$(SEXT) |
| 2419 |
$(SIGNATURE) < XRD1621.cbf > $(DATADIRO)/XRD1621_orig.cbf$(SEXT) |
| 2420 |
$(SIGNATURE) < XRD1621_I4encbC100.cbf > $(DATADIRO)/XRD1621_I4encbC100_orig.cbf$(SEXT) |
| 2421 |
$(SIGNATURE) < $(MINICBF_TEST)/minicbf.h5 > $(DATADIRO)/minicbf_orig.h5$(SEXT) |
| 2422 |
$(SIGNATURE) < $(PY2CBF)/pycbf_test1.out > $(DATADIRO)/pycbf_test1_orig.out$(SEXT) |
| 2423 |
$(SIGNATURE) < $(PY2CBF)/pycbf_test2.out > $(DATADIRO)/pycbf_test2_orig.out$(SEXT) |
| 2424 |
$(SIGNATURE) < $(PY2CBF)/pycbf_test3.out > $(DATADIRO)/pycbf_test3_orig.out$(SEXT) |
| 2425 |
$(SIGNATURE) < $(PY2CBF)/pycbf_test4.out > $(DATADIRO)/pycbf_test4_orig.out$(SEXT) |
| 2426 |
$(SIGNATURE) < $(PY2CBF)/fel_test1.out > $(DATADIRO)/fel_test1_orig.out$(SEXT) |
| 2427 |
$(SIGNATURE) < $(PY2CBF)/fel_test2.out > $(DATADIRO)/fel_test2_orig.out$(SEXT) |
| 2428 |
$(SIGNATURE) < $(PY2CBF)/fel_test3.out > $(DATADIRO)/fel_test3_orig.out$(SEXT) |
| 2429 |
cp adscconverted_flat.cbf $(DATADIRO)/adscconverted_flat_orig.cbf$ |
| 2430 |
cp adscconverted.cbf $(DATADIRO)/adscconverted_orig.cbf |
| 2431 |
cp converted_flat.cbf $(DATADIRO)/converted_flat_orig.cbf |
| 2432 |
cp converted.cbf $(DATADIRO)/converted_orig.cbf |
| 2433 |
cp insulin_pilatus6mconverted.cbf.h5 $(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5 |
| 2434 |
cp insulin_pilatus6mconverted.cbf.h5.cbf $(DATADIRO)/insulin_pilatus6mconverted_orig.cbf.h5.cbf |
| 2435 |
cp insulin_pilatus6mconverted_v2.cbf $(DATADIRO)/insulin_pilatus6mconverted_v2_orig.cbf |
| 2436 |
cp mb_LP_1_001.cbf$ $(DATADIRO)/mb_LP_1_001_orig.cbf |
| 2437 |
cp testcell.prt $(DATADIRO)/testcell_orig.prt |
| 2438 |
cp test_xds_bin_testflatout.out $(DATADIRO)/test_xds_bin_testflatout_orig.out |
| 2439 |
cp test_xds_bin_testflatpackedout.out $(DATADIRO)/test_xds_bin_testflatpackedout_orig.out |
| 2440 |
cp test_fcb_read_testflatout.out $(DATADIRO)/test_fcb_read_testflatout_orig.out |
| 2441 |
cp test_fcb_read_testflatpackedout.out $(DATADIRO)/test_fcb_read_testflatpackedout_orig.out |
| 2442 |
cp XRD1621.cbf $(DATADIRO)/XRD1621_orig.cbf |
| 2443 |
cp XRD1621_I4encbC100.cbf $(DATADIRO)/XRD1621_I4encbC100_orig.cbf |
| 2444 |
cp $(MINICBF_TEST)/minicbf.h5 $(DATADIRO)/minicbf_orig.h5 |
| 2445 |
cp $(PY2CBF)/pycbf_test1.out $(DATADIRO)/pycbf_test1_orig.out |
| 2446 |
cp $(PY2CBF)/pycbf_test2.out $(DATADIRO)/pycbf_test2_orig.out |
| 2447 |
cp $(PY2CBF)/pycbf_test3.out $(DATADIRO)/pycbf_test3_orig.out |
| 2448 |
cp $(PY2CBF)/pycbf_test4.out $(DATADIRO)/pycbf_test4_orig.out |
| 2449 |
cp $(PY2CBF)/fel_test1.out $(DATADIRO)/fel_test1_orig.out |
| 2450 |
cp $(PY2CBF)/fel_test2.out $(DATADIRO)/fel_test2_orig.out |
| 2451 |
cp $(PY2CBF)/fel_test3.out $(DATADIRO)/fel_test3_orig.out |
| 2452 |
|
| 2453 |
restore_signatures: restore_output |
| 2454 |
|
| 2455 |
# |
| 2456 |
# Basic Tests |
| 2457 |
# |
| 2458 |
|
| 2459 |
basic: $(BIN)/makecbf $(BIN)/img2cif $(BIN)/cif2cbf $(TESTINPUT_BASIC) |
| 2460 |
$(LDPREFIX) $(BIN)/makecbf example.mar2300 makecbf.cbf |
| 2461 |
$(LDPREFIX) $(BIN)/img2cif -c flatpacked -m headers -d digest \ |
| 2462 |
-e base64 example.mar2300 img2cif_packed.cif |
| 2463 |
$(LDPREFIX) $(BIN)/img2cif -c canonical -m headers -d digest \ |
| 2464 |
-e base64 example.mar2300 img2cif_canonical.cif |
| 2465 |
$(LDPREFIX) $(BIN)/img2cif -c flatpacked -m headers -d digest \ |
| 2466 |
-e none example.mar2300 img2cif_packed.cbf |
| 2467 |
$(LDPREFIX) $(BIN)/img2cif -c canonical -m headers -d digest \ |
| 2468 |
-e none example.mar2300 img2cif_canonical.cbf |
| 2469 |
$(LDPREFIX) $(BIN)/cif2cbf -e none -c flatpacked \ |
| 2470 |
img2cif_canonical.cif cif2cbf_packed.cbf |
| 2471 |
$(LDPREFIX) $(BIN)/cif2cbf -e none -c canonical \ |
| 2472 |
img2cif_packed.cif cif2cbf_canonical.cbf |
| 2473 |
-grep -av "X-Binary-Size-Third-Dimension: 1" cif2cbf_packed.cbf | diff -a - makecbf.cbf |
| 2474 |
#-cmp cif2cbf_packed.cbf makecbf.cbf |
| 2475 |
-grep -av "X-Binary-Size-Third-Dimension: 1" cif2cbf_packed.cbf | diff -a - img2cif_packed.cbf |
| 2476 |
#-cmp cif2cbf_packed.cbf img2cif_packed.cbf |
| 2477 |
-grep -av "X-Binary-Size-Third-Dimension: 1" cif2cbf_canonical.cbf | diff -a - img2cif_canonical.cbf |
| 2478 |
#-cmp cif2cbf_canonical.cbf img2cif_canonical.cbf |
| 2479 |
|
| 2480 |
|
| 2481 |
# |
| 2482 |
# Extra Tests |
| 2483 |
# |
| 2484 |
$(MINICBF_TEST)/minicbf.h5: |
| 2485 |
cd $(MINICBF_TEST); $(LDPREFIX) $(TIME) $(BIN)/minicbf2nexus -c zlib \ |
| 2486 |
-C config $(HDF5REGISTER) -o minicbf.h5 ../X4_lots_M1S4_1_*.cbf |
| 2487 |
mb_LP_1_001.cbf: |
| 2488 |
$(LDPREFIX) $(BIN)/adscimg2cbf --no_pad --cbf_packed,flat mb_LP_1_001.img |
| 2489 |
|
| 2490 |
|
| 2491 |
|
| 2492 |
ifneq ($(F90C),) |
| 2493 |
extra: $(BIN)/convert_image $(BIN)/convert_minicbf $(BIN)/cif2cbf \ |
| 2494 |
$(BIN)/minicbf2nexus $(BIN)/cbf2nexus $(BIN)/nexus2cbf $(BIN)/testcell \ |
| 2495 |
$(BIN)/testreals $(BIN)/testflat $(BIN)/testflatpacked \ |
| 2496 |
$(BIN)/test_xds_binary $(BIN)/test_fcb_read_image $(BIN)/convert_minicbf \ |
| 2497 |
$(BIN)/sauter_test $(BIN)/adscimg2cbf $(BIN)/cbf2adscimg \ |
| 2498 |
$(BIN)/changtestcompression $(BIN)/tiff2cbf \ |
| 2499 |
$(BIN)/testhdf5 $(BIN)/testalloc \ |
| 2500 |
$(BIN_TESTULP) \ |
| 2501 |
basic $(TESTINPUT_EXTRA) $(TESTOUTPUT) $(EXAMPLES)/batch_convert_minicbf.sh \ |
| 2502 |
$(TEMPLATES)/template_X4_lots_M1S4.cbf |
| 2503 |
else |
| 2504 |
extra: $(BIN)/convert_image $(BIN)/convert_minicbf $(BIN)/cif2cbf \ |
| 2505 |
$(BIN)/minicbf2nexus $(BIN)/cbf2nexus $(BIN)/nexus2cbf $(BIN)/testcell \ |
| 2506 |
$(BIN)/testreals $(BIN)/testflat $(BIN)/testflatpacked \ |
| 2507 |
$(BIN)/convert_minicbf \ |
| 2508 |
$(BIN)/sauter_test $(BIN)/adscimg2cbf $(BIN)/cbf2adscimg \ |
| 2509 |
$(BIN)/testhdf5 $(BIN)/testalloc \ |
| 2510 |
$(BIN_TESTULP) \ |
| 2511 |
basic $(TESTINPUT_EXTRA) $(TESTOUTPUT) $(EXAMPLES)/batch_convert_minicbf.sh |
| 2512 |
endif |
| 2513 |
$(LDPREFIX) $(TIME) $(BIN)/cif2cbf -e hex -c none \ |
| 2514 |
makecbf.cbf cif2cbf_ehcn.cif |
| 2515 |
$(LDPREFIX) $(TIME) $(BIN)/cif2cbf -e none -c flatpacked \ |
| 2516 |
cif2cbf_ehcn.cif cif2cbf_encp.cbf; rm cif2cbf_ehcn.cif |
| 2517 |
-grep -av "X-Binary-Size-Third-Dimension: 1" cif2cbf_encp.cbf | diff -a - makecbf.cbf |
| 2518 |
$(LDPREFIX) $(TIME) $(BIN)/cif2cbf -i 9ins.cif -o 9ins.cbf |
| 2519 |
-cat 9ins.cif |sed "1,1s/10/11/" | sed "2,2s/0.9.5/0.9.7/" | diff -a - 9ins.cbf |
| 2520 |
#-cmp 9ins.cif 9ins.cbf |
| 2521 |
$(LDPREFIX) $(TIME) $(BIN)/convert_image -p $(TEMPLATES)/template_mar345_2300x2300.cbf -F example.mar2300 converted_flat.cbf |
| 2522 |
-cat converted_flat_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - converted_flat.cbf |
| 2523 |
#-cmp converted_flat.cbf converted_flat_orig.cbf |
| 2524 |
$(LDPREFIX) $(TIME) $(BIN)/convert_image -p $(TEMPLATES)/template_mar345_2300x2300.cbf example.mar2300 converted.cbf |
| 2525 |
-cat converted_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - converted.cbf |
| 2526 |
#-cmp converted.cbf converted_orig.cbf |
| 2527 |
-$(LDPREFIX) $(TIME) $(BIN)/testcell < testcell.dat > testcell.prt |
| 2528 |
-cmp testcell.prt testcell_orig.prt |
| 2529 |
$(LDPREFIX) $(TIME) $(BIN)/convert_image -p $(TEMPLATES)/template_adscquantum315_3072x3072.cbf -F -d adscquantum315 mb_LP_1_001.img adscconverted_flat.cbf |
| 2530 |
-cat adscconverted_flat_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - adscconverted_flat.cbf |
| 2531 |
#-cmp adscconverted_flat.cbf adscconverted_flat_orig.cbf |
| 2532 |
$(LDPREFIX) $(TIME) $(BIN)/convert_image -p $(TEMPLATES)/template_adscquantum315_3072x3072.cbf -d adscquantum315 mb_LP_1_001.img adscconverted.cbf |
| 2533 |
-cat adscconverted_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - adscconverted.cbf |
| 2534 |
#-cmp adscconverted.cbf adscconverted_orig.cbf |
| 2535 |
$(LDPREFIX) $(TIME) $(BIN)/adscimg2cbf --no_pad --cbf_packed,flat mb_LP_1_001.img |
| 2536 |
-cat mb_LP_1_001_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - mb_LP_1_001.cbf |
| 2537 |
#-cmp mb_LP_1_001.cbf mb_LP_1_001_orig.cbf |
| 2538 |
ifneq ($(CLEANTESTS),) |
| 2539 |
mv mb_LP_1_001.cbf nmb_LP_1_001.cbf |
| 2540 |
else |
| 2541 |
cp mb_LP_1_001.cbf nmb_LP_1_001.cbf |
| 2542 |
endif |
| 2543 |
$(LDPREFIX) $(TIME) $(BIN)/cbf2adscimg nmb_LP_1_001.cbf |
| 2544 |
-cmp nmb_LP_1_001.img mb_LP_1_001.img |
| 2545 |
rm nmb_LP_1_001.cbf |
| 2546 |
ifneq ($(CLEANTESTS),) |
| 2547 |
rm nmb_LP_1_001.img |
| 2548 |
endif |
| 2549 |
$(LDPREFIX) $(TIME) $(BIN)/convert_minicbf -p $(TEMPLATES)/template_pilatus6m_2463x2527.cbf -d pilatus6m -v 1 insulin_pilatus6m.cbf insulin_pilatus6mconverted.cbf |
| 2550 |
-cat insulin_pilatus6mconverted_orig.cbf | sed "1,1s/1.7.6/1.7.11/" | sed "2,2s/0.9.3/0.9.7/" | diff -a - insulin_pilatus6mconverted.cbf |
| 2551 |
#-cmp insulin_pilatus6mconverted.cbf insulin_pilatus6mconverted_orig.cbf |
| 2552 |
-$(LDPREFIX) $(TIME) $(BIN)/convert_minicbf -p $(TEMPLATES)/template_pilatus6m_2463x2527.cbf -d pilatus6m insulin_pilatus6m.cbf insulin_pilatus6mconverted_v2.cbf |
| 2553 |
-cat insulin_pilatus6mconverted_v2_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - insulin_pilatus6mconverted_v2.cbf |
| 2554 |
#-cmp insulin_pilatus6mconverted_v2.cbf insulin_pilatus6mconverted_v2_orig.cbf |
| 2555 |
(CBF_CONVERT_MINICBF_PATH=$(BIN); export CBF_CONVERT_MINICBF_PATH; \ |
| 2556 |
$(LDPREFIX) $(EXAMPLES)/batch_convert_minicbf.sh "." "minicbf_test" \ |
| 2557 |
"X4_lots_M1S4_1_*.cbf" $(TEMPLATES)/template_X4_lots_M1S4.cbf) |
| 2558 |
# |
| 2559 |
# Starting with insulin_pilatus6mconverted.cbf, create hdf5 files using opaque, encI, encp, encb, encc, encz |
| 2560 |
# |
| 2561 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2562 |
$(TIME) $(BIN)/cif2cbf -5 w -O $(HDF5REGISTER) -i insulin_pilatus6mconverted.cbf -o insulin_pilatus6mconverted.cbf.h5) |
| 2563 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2564 |
$(TIME) $(BIN)/cif2cbf -5 w $(HDF5REGISTER) -en -cI -i insulin_pilatus6mconverted.cbf -o insulin_pilatus6mconverted_encI.cbf.h5) |
| 2565 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2566 |
$(TIME) $(BIN)/cif2cbf -5 w $(HDF5REGISTER) -en -cp -i insulin_pilatus6mconverted.cbf -o insulin_pilatus6mconverted_encp.cbf.h5) |
| 2567 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2568 |
$(TIME) $(BIN)/cif2cbf -5 w $(HDF5REGISTER) -en -cb -i insulin_pilatus6mconverted.cbf -o insulin_pilatus6mconverted_encb.cbf.h5) |
| 2569 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2570 |
$(TIME) $(BIN)/cif2cbf -5 w $(HDF5REGISTER) -en -cc -i insulin_pilatus6mconverted.cbf -o insulin_pilatus6mconverted_encc.cbf.h5) |
| 2571 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2572 |
$(TIME) $(BIN)/cif2cbf -5 w $(HDF5REGISTER) -en -cz -i insulin_pilatus6mconverted.cbf -o insulin_pilatus6mconverted_encz.cbf.h5) |
| 2573 |
# |
| 2574 |
# check the default as hdf5 dumps |
| 2575 |
# |
| 2576 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2577 |
$(H5DUMP) insulin_pilatus6mconverted_orig.cbf.h5 | $(ALLBUTONE) > insulin_pilatus6mconverted_orig.cbf.h5.dump) |
| 2578 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; \ |
| 2579 |
$(H5DUMP) insulin_pilatus6mconverted.cbf.h5 | $(ALLBUTONE) > insulin_pilatus6mconverted.cbf.h5.dump) |
| 2580 |
-$(DIFF) insulin_pilatus6mconverted_orig.cbf.h5.dump insulin_pilatus6mconverted.cbf.h5.dump |
| 2581 |
-rm -f insulin_pilatus6mconverted_orig.cbf.h5.dump |
| 2582 |
-rm -f insulin_pilatus6mconverted.cbf.h5.dump |
| 2583 |
# |
| 2584 |
# Convert each of the non-opaque h5 files to encI cbfs and compare them |
| 2585 |
# |
| 2586 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; rm -f insulin_pilatus6mconverted_encI.cbf.h5.cbf; \ |
| 2587 |
$(TIME) $(BIN)/cif2cbf -5 rn $(HDF5REGISTER) -en -cI -i insulin_pilatus6mconverted_encI.cbf.h5 -o insulin_pilatus6mconverted_encI.cbf.h5.cbf;) |
| 2588 |
cp insulin_pilatus6mconverted_encI.cbf.h5.cbf insulin_pilatus6mconverted.cbf.h5.cbf |
| 2589 |
-$(DIFF) -a insulin_pilatus6mconverted_encI.cbf.h5.cbf insulin_pilatus6mconverted.cbf.h5.cbf; |
| 2590 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; rm -f insulin_pilatus6mconverted_encI.cbf.h5.cbf; \ |
| 2591 |
$(TIME) $(BIN)/cif2cbf -5 rn $(HDF5REGISTER) -en -cI -i insulin_pilatus6mconverted_encp.cbf.h5 -o insulin_pilatus6mconverted_encI.cbf.h5.cbf;) |
| 2592 |
-$(DIFF) -a insulin_pilatus6mconverted_encI.cbf.h5.cbf insulin_pilatus6mconverted.cbf.h5.cbf; |
| 2593 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; rm -f insulin_pilatus6mconverted_encI.cbf.h5.cbf; \ |
| 2594 |
$(TIME) $(BIN)/cif2cbf -5 rn $(HDF5REGISTER) -en -cI -i insulin_pilatus6mconverted_encb.cbf.h5 -o insulin_pilatus6mconverted_encI.cbf.h5.cbf;) |
| 2595 |
-$(DIFF) -a insulin_pilatus6mconverted_encI.cbf.h5.cbf insulin_pilatus6mconverted.cbf.h5.cbf; |
| 2596 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; rm -f insulin_pilatus6mconverted_encI.cbf.h5.cbf; \ |
| 2597 |
$(TIME) $(BIN)/cif2cbf -5 rn $(HDF5REGISTER) -en -cI -i insulin_pilatus6mconverted_encc.cbf.h5 -o insulin_pilatus6mconverted_encI.cbf.h5.cbf;) |
| 2598 |
-$(DIFF) -a insulin_pilatus6mconverted_encI.cbf.h5.cbf insulin_pilatus6mconverted.cbf.h5.cbf; |
| 2599 |
-$(LDPREFIX) (HDF5_PLUGIN_PATH=$(SOLIB); export HDF5_PLUGIN_PATH; rm -f insulin_pilatus6mconverted_encI.cbf.h5.cbf; \ |
| 2600 |
$(TIME) $(BIN)/cif2cbf -5 rn $(HDF5REGISTER) -en -cI -i insulin_pilatus6mconverted_encz.cbf.h5 -o insulin_pilatus6mconverted_encI.cbf.h5.cbf;) |
| 2601 |
-$(DIFF) -a insulin_pilatus6mconverted_encI.cbf.h5.cbf insulin_pilatus6mconverted.cbf.h5.cbf; |
| 2602 |
|
| 2603 |
$(LDPREFIX) $(TINE) $(BIN)/test_cbf_airy_disk |
| 2604 |
$(LDPREFIX) $(TIME) $(BIN)/cbf_testxfelread |
| 2605 |
$(LDPREFIX) $(TIME) $(BIN)/testalloc |
| 2606 |
$(LDPREFIX) $(TIME) $(BIN)/testhdf5; rm -f testfile.h5 |
| 2607 |
ifneq ($(CBF_USE_ULP),) |
| 2608 |
$(LDPREFIX) $(TIME) $(BIN)/testulp |
| 2609 |
endif |
| 2610 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(BIN)/minicbf2nexus -c zlib \ |
| 2611 |
-C config $(HDF5REGISTER) -o minicbf.h5 ../X4_lots_M1S4_1_*.cbf |
| 2612 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(H5DUMP) ../minicbf_orig.h5 | $(ALLBUTONE) > minicbf_original.dump |
| 2613 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(H5DUMP) minicbf.h5 | $(ALLBUTONE) > minicbf.dump |
| 2614 |
-cd $(MINICBF_TEST); $(DIFF) minicbf_original.dump minicbf.dump |
| 2615 |
$(LDPREFIX) cd $(MINICBF_TEST); rm -f minicbf_original.dump |
| 2616 |
$(LDPREFIX) cd $(MINICBF_TEST); rm -f minicbf.dump |
| 2617 |
#cd $(MINICBF_TEST); rm -f minicbf.h5 |
| 2618 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(BIN)/cbf2nexus -c zlib \ |
| 2619 |
--list -o i19-1.h5 ../1191_00005.cbf |
| 2620 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(BIN)/nexus2cbf \ |
| 2621 |
-o i19-1.cbf i19-1.h5 |
| 2622 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(BIN)/cbf2nexus -c zlib \ |
| 2623 |
--list -o i19-2.h5 i19-1.cbf |
| 2624 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(BIN)/nexus2cbf \ |
| 2625 |
-o i19-2.cbf i19-2.h5 |
| 2626 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(H5DUMP) i19-1.h5 | $(ALLBUTONE) > i19-1.dump |
| 2627 |
$(LDPREFIX) cd $(MINICBF_TEST); $(TIME) $(H5DUMP) i19-2.h5 | $(ALLBUTONE) > i19-2.dump |
| 2628 |
-cd $(MINICBF_TEST); $(DIFF) i19-1.dump i19-2.dump |
| 2629 |
-cd $(MINICBF_TEST); $(DIFF) i19-1.cbf i19-2.cbf |
| 2630 |
$(LDPREFIX) $(TIME) $(BIN)/testreals |
| 2631 |
-cat testrealin.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - testrealout.cbf |
| 2632 |
#-cmp testrealin.cbf testrealout.cbf |
| 2633 |
$(LDPREFIX) $(TIME) $(BIN)/testflat |
| 2634 |
-cat testflatin.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - testflatout.cbf |
| 2635 |
#-cmp testflatin.cbf testflatout.cbf |
| 2636 |
$(LDPREFIX) $(TIME) $(BIN)/testflatpacked |
| 2637 |
-cat testflatpackedin.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - testflatpackedout.cbf |
| 2638 |
#-cmp testflatpackedin.cbf testflatpackedout.cbf |
| 2639 |
ifneq ($(F90C),) |
| 2640 |
$(LDPREFIX) $(TIME) (echo testflatout.cbf | $(BIN)/test_xds_binary > test_xds_bin_testflatout.out) |
| 2641 |
-cat test_xds_bin_testflatout_orig.out | sed "2,2s/0.9.6/0.9.7/" | $(DIFF) -a - test_xds_bin_testflatout.out |
| 2642 |
#-$(DIFF) test_xds_bin_testflatout.out test_xds_bin_testflatout_orig.out |
| 2643 |
$(LDPREFIX) $(TIME) (echo testflatpackedout.cbf | $(BIN)/test_xds_binary > test_xds_bin_testflatpackedout.out) |
| 2644 |
-$(DIFF) test_xds_bin_testflatpackedout.out test_xds_bin_testflatpackedout_orig.out |
| 2645 |
$(LDPREFIX) $(TIME) (echo testflatout.cbf | $(BIN)/test_fcb_read_image > test_fcb_read_testflatout.out) |
| 2646 |
-$(DIFF) test_fcb_read_testflatout.out test_fcb_read_testflatout_orig.out |
| 2647 |
$(LDPREFIX) $(TIME) (echo testflatpackedout.cbf | $(BIN)/test_fcb_read_image > test_fcb_read_testflatpackedout.out) |
| 2648 |
-$(DIFF) test_fcb_read_testflatpackedout.out test_fcb_read_testflatpackedout_orig.out |
| 2649 |
endif |
| 2650 |
$(LDPREFIX) $(TIME) $(BIN)/sauter_test |
| 2651 |
$(LDPREFIX) $(TIME) $(BIN)/changtestcompression |
| 2652 |
$(LDPREFIX) $(TIME) $(BIN)/tiff2cbf XRD1621.tif XRD1621.cbf |
| 2653 |
-cat XRD1621_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - XRD1621.cbf |
| 2654 |
#-$(DIFF) XRD1621.cbf XRD1621_orig.cbf |
| 2655 |
$(LDPREFIX) $(TIME) $(BIN)/cif2cbf -I 4 -C 100. -L 0. -e n -c b -i XRD1621.cbf -o XRD1621_I4encbC100.cbf |
| 2656 |
-cat XRD1621_I4encbC100_orig.cbf | sed "2,2s/0.9.6/0.9.7/" | diff -a - XRD1621_I4encbC100.cbf |
| 2657 |
#-$(DIFF) XRD1621_I4encbC100.cbf XRD1621_I4encbC100_orig.cbf |
| 2658 |
|
| 2659 |
|
| 2660 |
py2cbftests: $(PY2CBF)/_py2cbf.$(PY2CBFEXT) $(BIN)/cbf_standardize_numbers $(TESTOUTPUT) |
| 2661 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_test1.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test1.out) |
| 2662 |
-(cd $(PY2CBF); $(DIFF) pycbf_test1.out $(ROOT)/pycbf_test1_orig.out) |
| 2663 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_test2.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test2.out) |
| 2664 |
-(cd $(PY2CBF); $(DIFF) pycbf_test2.out $(ROOT)/pycbf_test2_orig.out) |
| 2665 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_test3.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test3.out) |
| 2666 |
-(cd $(PY2CBF); $(DIFF) pycbf_test3.out $(ROOT)/pycbf_test3_orig.out) |
| 2667 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_test4.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test4.out) |
| 2668 |
-(cd $(PY2CBF); $(DIFF) pycbf_test4.out $(ROOT)/pycbf_test4_orig.out) |
| 2669 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_testfelaxes.py fel_test1.cbf | $(BIN)/cbf_standardize_numbers - 4 > fel_test1.out) |
| 2670 |
-(cd $(PY2CBF); $(DIFF) fel_test1.out $(ROOT)/fel_test1_orig.out) |
| 2671 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_testfelaxes.py fel_test2.cbf | $(BIN)/cbf_standardize_numbers - 4 > fel_test2.out) |
| 2672 |
-(cd $(PY2CBF); $(DIFF) fel_test2.out $(ROOT)/fel_test2_orig.out) |
| 2673 |
($(RTLPEXPORTS) cd $(PY2CBF); $(PYTHON2) $(PY2CBF)/pycbf_testfelaxes.py ../hit-20140306005258847.cbf | $(BIN)/cbf_standardize_numbers - 4 > fel_test3.out) |
| 2674 |
-(cd $(PY2CBF); $(DIFF) fel_test3.out $(ROOT)/fel_test3_orig.out) |
| 2675 |
|
| 2676 |
py2cbfinstall: $(PY2CBF)/_py2cbf.$(PY2CBFEXT) $(PY2CBF)/py2cbfinstall |
| 2677 |
|
| 2678 |
py2cbfuserinstall: $(PY2CBF)/_py2cbf.$(PY2CBFEXT) $(PY2CBF)/py2cbfuserinstall |
| 2679 |
|
| 2680 |
py3cbftests: $(PY3CBF)/_pycbf.$(PY3CBFEXT) $(BIN)/cbf_standardize_numbers $(TESTOUTPUT) |
| 2681 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_test1.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test1.out) |
| 2682 |
-(cd $(PY3CBF); grep -v "__builtins__" $(ROOT)/pycbf_test1_orig.out | \ |
| 2683 |
grep -v "__add__" | grep -v "Foundthebinary" > pycbf_test1_orig.out; \ |
| 2684 |
grep -v "__builtins__" pycbf_test1.out | \ |
| 2685 |
grep -v "__add__" | grep -v "Foundthebinary" |$(DIFF) - pycbf_test1_orig.out) |
| 2686 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_test2.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test2.out) |
| 2687 |
-(cd $(PY3CBF); $(DIFF) pycbf_test2.out $(ROOT)/pycbf_test2_orig.out) |
| 2688 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_test3.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test3.out) |
| 2689 |
-(cd $(PY3CBF); $(DIFF) pycbf_test3.out $(ROOT)/pycbf_test3_orig.out) |
| 2690 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_test4.py | $(BIN)/cbf_standardize_numbers - 4 > pycbf_test4.out) |
| 2691 |
-(cd $(PY3CBF); grep -v "__builtins__" $(ROOT)/pycbf_test4_orig.out | \ |
| 2692 |
grep -v "__add__" | grep -v "Foundthebinary" > pycbf_test4_orig.out; \ |
| 2693 |
grep -v "__builtins__" pycbf_test4.out | grep -v "__add__" | \ |
| 2694 |
grep -v "Foundthebinary" | $(DIFF) - pycbf_test4_orig.out) |
| 2695 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_testfelaxes.py fel_test1.cbf | $(BIN)/cbf_standardize_numbers - 4 > fel_test1.out) |
| 2696 |
-(cd $(PY3CBF); $(DIFF) fel_test1.out $(ROOT)/fel_test1_orig.out) |
| 2697 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_testfelaxes.py fel_test2.cbf | $(BIN)/cbf_standardize_numbers - 4 > fel_test2.out) |
| 2698 |
-(cd $(PY3CBF); $(DIFF) fel_test2.out $(ROOT)/fel_test2_orig.out) |
| 2699 |
($(RTLPEXPORTS) cd $(PY3CBF); $(PYTHON3) $(PY3CBF)/pycbf_testfelaxes.py ../hit-20140306005258847.cbf | $(BIN)/cbf_standardize_numbers - 4 > fel_test3.out) |
| 2700 |
-(cd $(PY3CBF); $(DIFF) fel_test3.out $(ROOT)/fel_test3_orig.out) |
| 2701 |
|
| 2702 |
py3cbfinstall: $(PY3CBF)/_pycbf.$(PY3CBFEXT) $(PY3CBF)/py3cbfinstall |
| 2703 |
|
| 2704 |
py3cbfuserinstall: $(PY3CBF)/_pycbf.$(PY3CBFEXT) $(PY3CBF)/py3cbfuserinstall |
| 2705 |
|
| 2706 |
javatests: $(BIN)/ctestcbf $(BIN)/testcbf.class $(SOLIB)/libcbf_wrap.so |
| 2707 |
$(LDPREFIX) $(BIN)/ctestcbf > testcbfc.txt |
| 2708 |
$(LDPREFIX) java -cp $(JCBF)/cbflib-$(VERSION).jar:$(BIN) testcbf > testcbfj.txt |
| 2709 |
$(DIFF) testcbfc.txt testcbfj.txt |
| 2710 |
|
| 2711 |
dectristests: $(BIN)/cbf_template_t $(TEMPLATES)/cbf_test_orig.out |
| 2712 |
$(LDPREFIX) (cd templates; ../bin/cbf_template_t; diff -a -u cbf_test_orig.out cbf_template_t.out) |
| 2713 |
|
| 2714 |
# |
| 2715 |
# Remove all non-source files |
| 2716 |
# |
| 2717 |
empty: |
| 2718 |
@-rm -rf $(LIB)/* |
| 2719 |
@-rm -rf $(INCLUDE)/bitshuf* |
| 2720 |
@-rm -rf $(INCLUDE)/bshuf* |
| 2721 |
@-rm -rf $(INCLUDE)/H5* |
| 2722 |
@-rm -rf $(BIN)/* |
| 2723 |
@-rm -f $(PY2CBF)/_py2cbf.$(PY2CBFEXT) |
| 2724 |
@-rm -rf $(PY2CBF)/build/* |
| 2725 |
@-rm -f $(PY2CBF)/newtest1.cbf |
| 2726 |
@-rm -f $(PY2CBF)/fel_test1.out |
| 2727 |
@-rm -f $(PY2CBF)/fel_test2.out |
| 2728 |
@-rm -f $(PY2CBF)/setup.py |
| 2729 |
@-rm -f $(PY2CBF)/setup_MINGW.py |
| 2730 |
@-rm -f makecbf.cbf |
| 2731 |
@-rm -f img2cif_packed.cif |
| 2732 |
@-rm -f img2cif_canonical.cif |
| 2733 |
@-rm -f img2cif_packed.cbf |
| 2734 |
@-rm -f img2cif_canonical.cbf |
| 2735 |
@-rm -f img2cif_raw.cbf |
| 2736 |
@-rm -f cif2cbf_packed.cbf |
| 2737 |
@-rm -f cif2cbf_canonical.cbf |
| 2738 |
@-rm -f converted.cbf |
| 2739 |
@-rm -f adscconverted.cbf |
| 2740 |
@-rm -f converted_flat.cbf |
| 2741 |
@-rm -f adscconverted_flat.cbf |
| 2742 |
@-rm -f adscconverted_flat_rev.cbf |
| 2743 |
@-rm -f mb_LP_1_001.cbf |
| 2744 |
@-rm -f cif2cbf_ehcn.cif |
| 2745 |
@-rm -f cif2cbf_encp.cbf |
| 2746 |
@-rm -f 9ins.cbf |
| 2747 |
@-rm -f 9ins.cif |
| 2748 |
@-rm -f testcell.prt |
| 2749 |
@-rm -f example.mar2300 |
| 2750 |
@-rm -f converted_orig.cbf |
| 2751 |
@-rm -f adscconverted_orig.cbf |
| 2752 |
@-rm -f converted_flat_orig.cbf |
| 2753 |
@-rm -f adscconverted_flat_orig.cbf |
| 2754 |
@-rm -f adscconverted_flat_rev_orig.cbf |
| 2755 |
@-rm -f mb_LP_1_001_orig.cbf |
| 2756 |
@-rm -f insulin_pilatus6mconverted*.cbf |
| 2757 |
@-rm -f insulin_pilatus6mconverted*.h5 |
| 2758 |
@-rm -f insulin_pilatus6m.cbf |
| 2759 |
@-rm -f testrealin.cbf |
| 2760 |
@-rm -f testrealout.cbf |
| 2761 |
@-rm -f testflatin.cbf |
| 2762 |
@-rm -f testflatout.cbf |
| 2763 |
@-rm -f testflatpackedin.cbf |
| 2764 |
@-rm -f testflatpackedout.cbf |
| 2765 |
@-rm -f CTC.cbf |
| 2766 |
@-rm -f test_fcb_read_testflatout.out |
| 2767 |
@-rm -f test_fcb_read_testflatpackedout.out |
| 2768 |
@-rm -f test_xds_bin_testflatpackedout.out |
| 2769 |
@-rm -f test_xds_bin_testflatout.out |
| 2770 |
@-rm -f test_fcb_read_testflatout_orig.out |
| 2771 |
@-rm -f test_fcb_read_testflatpackedout_orig.out |
| 2772 |
@-rm -f test_xds_bin_testflatpackedout_orig.out |
| 2773 |
@-rm -f test_xds_bin_testflatout_orig.out |
| 2774 |
@-rm -f mb_LP_1_001.img |
| 2775 |
@-rm -f 9ins.cif |
| 2776 |
@-rm -f testcell_orig.prt |
| 2777 |
@-rm -f $(DECTRIS_EXAMPLES)/cbf_template_t.out |
| 2778 |
@-rm -f XRD1621.cbf |
| 2779 |
@-rm -f XRD1621_orig.cbf |
| 2780 |
@-rm -f XRD1621_I4encbC100_orig.cbf |
| 2781 |
@-rm -f XRD1621_I4encbC100.cbf |
| 2782 |
@-rm -f minicbf_orig.h5 |
| 2783 |
@-rm -f $(SRC)/fcb_exit_binary.f90 |
| 2784 |
@-rm -f $(SRC)/fcb_next_binary.f90 |
| 2785 |
@-rm -f $(SRC)/fcb_open_cifin.f90 |
| 2786 |
@-rm -f $(SRC)/fcb_packed.f90 |
| 2787 |
@-rm -f $(SRC)/fcb_read_bits.f90 |
| 2788 |
@-rm -f $(SRC)/fcb_read_image.f90 |
| 2789 |
@-rm -f $(SRC)/fcb_read_xds_i2.f90 |
| 2790 |
@-rm -f $(EXAMPLES)/test_fcb_read_image.f90 |
| 2791 |
@-rm -f $(EXAMPLES)/test_xds_binary.f90 |
| 2792 |
@-rm -f symlinksdone |
| 2793 |
@-rm -f $(TESTOUTPUT) *$(SEXT) |
| 2794 |
@-rm -rf $(SOLIB) |
| 2795 |
@-rm -rf org |
| 2796 |
@-rm -rf $(JCBF) |
| 2797 |
@-rm -rf $(REGEX) |
| 2798 |
@-rm -rf $(REGEX)_install |
| 2799 |
@-rm -rf $(TIFF) |
| 2800 |
@-rm -rf $(TIFF)_install |
| 2801 |
@-rm -rf $(HDF5) |
| 2802 |
@-rm -rf $(HDF5)_install |
| 2803 |
@-rm -rf $(INCLUDE)/tiff* |
| 2804 |
@-rm -rf $(INCLUDE)/H5* |
| 2805 |
@-rm -rf $(INCLUDE)/hdf5* |
| 2806 |
@-rm -rf share |
| 2807 |
@-rm -rf $(MINICBF_TEST)/i19* |
| 2808 |
@-rm -rf solib |
| 2809 |
@-rm -f thaumatin_die_M1S5_1_0005_2.cbf |
| 2810 |
@-rm -f 1191_00005.cbf |
| 2811 |
@-rm -f XRD1621.tif |
| 2812 |
@-rm -f md5tmp |
| 2813 |
@-rm -rf $(PY2CBF)/build |
| 2814 |
@-rm -f *_old |
| 2815 |
@-rm -f X4_lots_M1S4_1_*.cbf |
| 2816 |
@-rm -f testfile.h5 |
| 2817 |
@-rm -f hit-20140306005258847.cbf |
| 2818 |
@-rm -f build_* |
| 2819 |
@-rm -rf HDF5Plugin_5Jun21/ |
| 2820 |
@-rm -rf PyCifRW-4.1/ |
| 2821 |
@-rm -rf PyCifRW-4.3/ |
| 2822 |
@-rm -rf bitshuffle-0.2.2.1_15Jun16/ |
| 2823 |
@-rm -f idx-s00-20131106040304531_flat.cbf |
| 2824 |
@-rm -f include/iochain.h |
| 2825 |
@-rm -f include/lz4.h |
| 2826 |
@-rm -f include/pcre.h |
| 2827 |
@-rm -f include/pcre_scanner.h |
| 2828 |
@-rm -f include/pcre_stringpiece.h |
| 2829 |
@-rm -f include/pcrecpp.h |
| 2830 |
@-rm -f include/pcrecpparg.h |
| 2831 |
@-rm -f include/pcreposix.h |
| 2832 |
@-rm -f include/regex.h |
| 2833 |
@-rm -f minicbf_test/X4_lots_M1S4_1_0001.cbf |
| 2834 |
@-rm -f minicbf_test/X4_lots_M1S4_1_0002.cbf |
| 2835 |
@-rm -f minicbf_test/X4_lots_M1S4_1_0003.cbf |
| 2836 |
@-rm -f minicbf_test/X4_lots_M1S4_1_0004.cbf |
| 2837 |
@-rm -f minicbf_test/X4_lots_M1S4_1_0005.cbf |
| 2838 |
@-rm -f minicbf_test/minicbf.h5 |
| 2839 |
@-rm -rf ply-3.2/dist/ |
| 2840 |
@-rm -f $(PY2CBF)/fel_test3.out |
| 2841 |
@-rm -f $(PY2CBF)/pycbf.pyc |
| 2842 |
@-rm -f $(PY2CBF)/pycbf_test1.out |
| 2843 |
@-rm -f $(PY2CBF)/pycbf_test2.out |
| 2844 |
@-rm -f $(PY2CBF)/pycbf_test3.out |
| 2845 |
@-rm -f $(PY2CBF)/pycbf_test4.out |
| 2846 |
./.undosymlinks |
| 2847 |
|
| 2848 |
# |
| 2849 |
# Remove temporary files |
| 2850 |
# |
| 2851 |
clean: |
| 2852 |
@-rm -f core |
| 2853 |
@-rm -f *.o |
| 2854 |
@-rm -f *.u |
| 2855 |
# |
| 2856 |
# Restore to distribution state |
| 2857 |
# |
| 2858 |
distclean: clean empty |
| 2859 |
|
| 2860 |
# |
| 2861 |
# Create a Tape Archive for distribution |
| 2862 |
# |
| 2863 |
|
| 2864 |
tar: $(DOCUMENTS) $(SOURCE) $(SRC)/cbf.stx $(HEADERS) $(M4FILES)\ |
| 2865 |
$(EXAMPLES) \ |
| 2866 |
README.html README Makefile \ |
| 2867 |
$(JPEGS) |
| 2868 |
-/bin/rm -f CBFlib.tar* |
| 2869 |
tar cvBf CBFlib.tar \ |
| 2870 |
$(DOCUMENTS) $(SOURCE) $(SRC)/cbf.stx $(HEADERS) $(M4FILES)\ |
| 2871 |
$(EXAMPLES) \ |
| 2872 |
README.html README Makefile \ |
| 2873 |
$(JPEGS) |
| 2874 |
gzip --best CBFlib.tar |
| 2875 |
|