-
-
Notifications
You must be signed in to change notification settings - Fork 813
/
Copy pathcephes_netlib.mk
504 lines (368 loc) · 16.3 KB
/
cephes_netlib.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
#/
# @license Apache-2.0
#
# Copyright (c) 2017 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/
# VARIABLES #
# Define the base download URL:
DEPS_CEPHES_URL ?= http://www.netlib.org/cephes/
# Determine the basename for the download:
deps_cephes_basename := netlib_cephes
# Define the checksum(s) to verify downloaded libraries:
DEPS_CEPHES_CHECKSUM ?= $(foreach file,$(DEPS_CEPHES_LIBS),$(shell $(CAT) $(DEPS_CHECKSUMS_DIR)/$(subst .,_,$(deps_cephes_basename)_$(file).tgz)/sha256))
# Define the output directory when downloading:
DEPS_CEPHES_DOWNLOAD_OUT ?= $(DEPS_TMP_DIR)/$(deps_cephes_basename)
# Define the output path(s) when downloading:
deps_cephes_download_out := $(addsuffix .tgz,$(addprefix $(DEPS_CEPHES_DOWNLOAD_OUT)/,$(DEPS_CEPHES_LIBS)))
# Generate an interleaved list of output download paths and checksums:
deps_cephes_checksum := $(join $(deps_cephes_download_out),$(addprefix |,$(DEPS_CEPHES_CHECKSUM)))
deps_cephes_checksum := $(foreach pair,$(deps_cephes_checksum),$(subst |, ,$(pair)))
# Define the output path(s) when building:
deps_cephes_build_out := $(addprefix $(DEPS_CEPHES_BUILD_OUT)/cephes/,$(DEPS_CEPHES_LIBS))
# Define the path to the directory containing tests:
DEPS_CEPHES_TEST_DIR ?= $(DEPS_DIR)/test/netlib_cephes
# Define the output directory path for compiled tests:
DEPS_CEPHES_TEST_OUT ?= $(DEPS_CEPHES_TEST_DIR)/build
# Define the path to a test file for checking an installation:
DEPS_CEPHES_TEST_INSTALL ?= $(DEPS_CEPHES_TEST_DIR)/test_install.c
# Define the output path for a test file:
DEPS_CEPHES_TEST_INSTALL_OUT ?= $(DEPS_CEPHES_TEST_OUT)/test_install
# Define a list of source files:
deps_cephes_src := \
bessel/airy.c \
bessel/hyp2f1.c \
bessel/hyperg.c \
bessel/i0.c \
bessel/i1.c \
bessel/iv.c \
bessel/j0.c \
bessel/j1.c \
bessel/jn.c \
bessel/jv.c \
bessel/k0.c \
bessel/k1.c \
bessel/kn.c \
bessel/psi.c \
bessel/struve.c \
bessel/yn.c \
cmath/acosh.c \
cmath/asin.c \
cmath/asinh.c \
cmath/atan.c \
cmath/atanh.c \
cmath/cbrt.c \
cmath/chbevl.c \
cmath/const.c \
cmath/cosh.c \
cmath/drand.c \
cmath/exp.c \
cmath/exp10.c \
cmath/exp2.c \
cmath/fabs.c \
cmath/floor.c \
cmath/isnan.c \
cmath/log.c \
cmath/log10.c \
cmath/log2.c \
cmath/mtherr.c \
cmath/polevl.c \
cmath/pow.c \
cmath/powi.c \
cmath/round.c \
cmath/setprec.c \
cmath/sin.c \
cmath/sincos.c \
cmath/sindg.c \
cmath/sinh.c \
cmath/sqrt.c \
cmath/tan.c \
cmath/tandg.c \
cmath/tanh.c \
cmath/unity.c \
cprob/bdtr.c \
cprob/btdtr.c \
cprob/chdtr.c \
cprob/expx2.c \
cprob/fdtr.c \
cprob/gamma.c \
cprob/gdtr.c \
cprob/igam.c \
cprob/igami.c \
cprob/incbet.c \
cprob/incbi.c \
cprob/kolmogorov.c \
cprob/nbdtr.c \
cprob/ndtr.c \
cprob/ndtri.c \
cprob/pdtr.c \
cprob/stdtr.c
# Resolve a list of source files to absolute filepaths:
DEPS_CEPHES_SRC ?= $(addprefix $(DEPS_CEPHES_BUILD_OUT)/cephes/,$(deps_cephes_src))
# TARGETS #
# Create a download directory.
#
# This target creates a download directory for netlib Cephes.
$(DEPS_CEPHES_DOWNLOAD_OUT):
$(QUIET) echo 'Creating download directory...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $(DEPS_CEPHES_DOWNLOAD_OUT)
# Download library.
#
# This target downloads the netlib Cephes library for 128-bit reals.
$(DEPS_CEPHES_DOWNLOAD_OUT)/128bit.tgz: | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for Bessel and hypergeometric functions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/bessel.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz $(DEPS_CEPHES_DOWNLOAD_OUT)/cprob.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for complex type as in C9X standard.
$(DEPS_CEPHES_DOWNLOAD_OUT)/c9x-complex.tgz: | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for double-precision elementary functions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/cmath.tgz: | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for probability integrals and their inverses.
$(DEPS_CEPHES_DOWNLOAD_OUT)/cprob.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for elliptic integrals and elliptic filter calculator.
$(DEPS_CEPHES_DOWNLOAD_OUT)/ellf.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library which is a subset of `cmath.tgz` and used by other functions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz: | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for floating point arithmetic in standard precisions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/ieee.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for IEEE 80-bit extended real elementary functions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/ldouble.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for C translations of `eigens`, `lmdif`.
$(DEPS_CEPHES_DOWNLOAD_OUT)/linalg.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for Fresnel integrals, polylogarithms, Planck radiation formula, Adams-Bashforth-Moulton and Runge-Kutta, solar system integration.
$(DEPS_CEPHES_DOWNLOAD_OUT)/misc.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for Fresnel integrals, polylogarithms, Planck radiation formula, Adams-Bashforth-Moulton and Runge-Kutta, solar system integration.
$(DEPS_CEPHES_DOWNLOAD_OUT)/ode.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for arithmetic on rationals and polynomials.
$(DEPS_CEPHES_DOWNLOAD_OUT)/polyn.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for 144- or 336-bit precision floating point arithmetic and functions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/qfloat.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for minimax rational approximation.
$(DEPS_CEPHES_DOWNLOAD_OUT)/remes.tgz: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Download library.
#
# This target downloads the netlib Cephes library for 32-bit floating point versions of Cephes functions.
$(DEPS_CEPHES_DOWNLOAD_OUT)/single.tgz: | $(DEPS_TMP_DIR) $(DEPS_CEPHES_DOWNLOAD_OUT)
$(QUIET) echo 'Downloading library...' >&2
$(QUIET) $(DEPS_DOWNLOAD_BIN) $(DEPS_CEPHES_URL)`basename $@` $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for 128-bit reals.
$(DEPS_CEPHES_BUILD_OUT)/cephes/128bit: $(DEPS_CEPHES_DOWNLOAD_OUT)/128bit.tgz
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for Bessel and hypergeometric functions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/bessel: $(DEPS_CEPHES_DOWNLOAD_OUT)/bessel.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval $(DEPS_CEPHES_BUILD_OUT)/cephes/cprob
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
$(QUIET) $(CP) $(DEPS_CEPHES_BUILD_OUT)/cephes/cprob/mconf.h $(DEPS_CEPHES_BUILD_OUT)/cephes/bessel/mconf.h
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for complex type as in C9X standard.
$(DEPS_CEPHES_BUILD_OUT)/cephes/c9x-complex: $(DEPS_CEPHES_DOWNLOAD_OUT)/c9x-complex.tgz
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
$(QUIET) mv $@/c9x-complex/* $@/
$(QUIET) rmdir $@/c9x-complex/
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for double-precision elementary functions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/cmath: $(DEPS_CEPHES_DOWNLOAD_OUT)/cmath.tgz
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for probability integrals and their inverses.
$(DEPS_CEPHES_BUILD_OUT)/cephes/cprob: $(DEPS_CEPHES_DOWNLOAD_OUT)/cprob.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for elliptic integrals and elliptic filter calculator.
$(DEPS_CEPHES_BUILD_OUT)/cephes/ellf: $(DEPS_CEPHES_DOWNLOAD_OUT)/ellf.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library which is a subset of `cmath.tgz` and used by other functions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/eval: $(DEPS_CEPHES_DOWNLOAD_OUT)/eval.tgz
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for floating point arithmetic in standard precisions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/ieee: $(DEPS_CEPHES_DOWNLOAD_OUT)/ieee.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for IEEE 80-bit extended real elementary functions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/ldouble: $(DEPS_CEPHES_DOWNLOAD_OUT)/ldouble.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for C translations of `eigens`, `lmdif`.
$(DEPS_CEPHES_BUILD_OUT)/cephes/linalg: $(DEPS_CEPHES_DOWNLOAD_OUT)/linalg.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for Fresnel integrals, polylogarithms, Planck radiation formula, Adams-Bashforth-Moulton and Runge-Kutta, solar system integration.
$(DEPS_CEPHES_BUILD_OUT)/cephes/misc: $(DEPS_CEPHES_DOWNLOAD_OUT)/misc.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for Fresnel integrals, polylogarithms, Planck radiation formula, Adams-Bashforth-Moulton and Runge-Kutta, solar system integration.
$(DEPS_CEPHES_BUILD_OUT)/cephes/ode: $(DEPS_CEPHES_DOWNLOAD_OUT)/ode.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for arithmetic on rationals and polynomials.
$(DEPS_CEPHES_BUILD_OUT)/cephes/polyn: $(DEPS_CEPHES_DOWNLOAD_OUT)/polyn.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for 144- or 336-bit precision floating point arithmetic and functions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/qfloat: $(DEPS_CEPHES_DOWNLOAD_OUT)/qfloat.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for minimax rational approximation.
$(DEPS_CEPHES_BUILD_OUT)/cephes/remes: $(DEPS_CEPHES_DOWNLOAD_OUT)/remes.tgz $(DEPS_CEPHES_BUILD_OUT)/cephes/eval
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Extract library.
#
# This target extracts a gzipped tar archive of the netlib Cephes library for 32-bit floating point versions of Cephes functions.
$(DEPS_CEPHES_BUILD_OUT)/cephes/single: $(DEPS_CEPHES_DOWNLOAD_OUT)/single.tgz
$(QUIET) echo 'Extracting library...' >&2
$(QUIET) $(MKDIR_RECURSIVE) $@
$(QUIET) $(TAR) -zxf $< -C $@
# Create directory for tests.
#
# This target creates a directory for storing compiled tests.
$(DEPS_CEPHES_TEST_OUT):
$(QUIET) $(MKDIR_RECURSIVE) $(DEPS_CEPHES_TEST_OUT)
# Compile install test.
#
# This target compiles a test file for testing an installation.
$(DEPS_CEPHES_TEST_INSTALL_OUT): $(deps_cephes_build_out) $(DEPS_CEPHES_TEST_OUT)
$(QUIET) $(CC) -I $(DEPS_CEPHES_BUILD_OUT) \
$(DEPS_CEPHES_TEST_INSTALL) \
$(DEPS_CEPHES_SRC) \
-o $(DEPS_CEPHES_TEST_INSTALL_OUT)
# Download Cephes.
#
# This target downloads a Cephes distribution.
deps-download-cephes: $(deps_cephes_download_out)
.PHONY: deps-download-cephes
# Verify download.
#
# This targets verifies a download.
deps-verify-cephes: deps-download-cephes
$(QUIET) $(DEPS_CHECKSUM_BIN) $(deps_cephes_checksum) >&2
.PHONY: deps-verify-cephes
# Extract Cephes.
#
# This target extracts downloaded Cephes libraries.
deps-extract-cephes: $(deps_cephes_build_out)
.PHONY: deps-extract-cephes
# Test install.
#
# This target tests an installation.
deps-test-cephes: $(DEPS_CEPHES_TEST_INSTALL_OUT)
$(QUIET) echo 'Running tests...' >&2
$(QUIET) $(DEPS_CEPHES_TEST_INSTALL_OUT)
$(QUIET) echo '' >&2
$(QUIET) echo 'Success.' >&2
.PHONY: deps-test-cephes