2012-07-02 04:19:00 +02:00
|
|
|
OPENLIBM_HOME=$(abspath ..)
|
|
|
|
include ../Make.inc
|
|
|
|
|
2012-08-19 13:33:16 +02:00
|
|
|
all: test-double test-float # test-double-system test-float-system
|
2012-07-02 04:19:00 +02:00
|
|
|
|
2012-07-02 04:32:24 +02:00
|
|
|
test-double: test-double.c libm-test.c
|
2012-08-19 10:14:18 +02:00
|
|
|
$(CC) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
2012-07-02 04:19:00 +02:00
|
|
|
|
2012-07-02 04:32:24 +02:00
|
|
|
test-float: test-float.c libm-test.c
|
2012-08-19 10:14:18 +02:00
|
|
|
$(CC) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
2012-07-02 04:39:04 +02:00
|
|
|
|
|
|
|
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 $@
|
2012-07-02 04:19:00 +02:00
|
|
|
|
|
|
|
clean:
|
2012-07-02 04:39:50 +02:00
|
|
|
rm -fr *~ *# test-double test-float test-double-system test-float-system *.dSYM
|