Compile tests in debug mode.

This commit is contained in:
Viral B. Shah 2012-07-02 08:09:04 +05:30
parent 419c14934d
commit 6bb87679fb
2 changed files with 12 additions and 5 deletions

View file

@ -1,13 +1,20 @@
OPENLIBM_HOME=$(abspath ..) OPENLIBM_HOME=$(abspath ..)
include ../Make.inc 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 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 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: clean:
rm -f *~ *# test-double test-float rm -f *~ *# test-double test-float test-double-system test-float-system

View file

@ -116,7 +116,7 @@
#endif #endif
#include "libm-test-ulps.h" #include "libm-test-ulps.h"
#if 0 /* XXX scp XXX */ #ifdef SYS_MATH_H /* XXX scp XXX */
#include <complex.h> #include <complex.h>
#include <math.h> #include <math.h>
#include <float.h> #include <float.h>