mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
Compile tests in debug mode.
This commit is contained in:
parent
419c14934d
commit
6bb87679fb
2 changed files with 12 additions and 5 deletions
|
@ -1,13 +1,20 @@
|
|||
OPENLIBM_HOME=$(abspath ..)
|
||||
include ../Make.inc
|
||||
|
||||
all: test-double test-float
|
||||
all: test-double test-float test-double-system test-float-system
|
||||
|
||||
test-double: test-double.c libm-test.c
|
||||
gcc $< -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
||||
$(CC) -g $< -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
||||
|
||||
test-float: test-float.c libm-test.c
|
||||
gcc $< -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
||||
$(CC) -g $< -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
||||
|
||||
test-double-system: test-double.c libm-test.c
|
||||
$(CC) -g $< -DSYS_MATH_H -lm -o $@
|
||||
|
||||
test-float-system: test-float.c libm-test.c
|
||||
$(CC) -g $< -DSYS_MATH_H -lm -o $@
|
||||
|
||||
clean:
|
||||
rm -f *~ *# test-double test-float
|
||||
rm -f *~ *# test-double test-float test-double-system test-float-system
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
#endif
|
||||
|
||||
#include "libm-test-ulps.h"
|
||||
#if 0 /* XXX scp XXX */
|
||||
#ifdef SYS_MATH_H /* XXX scp XXX */
|
||||
#include <complex.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
|
Loading…
Reference in a new issue