OpenLibm/test/Makefile

28 lines
1,019 B
Makefile
Raw Normal View History

2012-07-02 04:19:00 +02:00
OPENLIBM_HOME=$(abspath ..)
include ../Make.inc
all: test-double test-float # test-double-system test-float-system
2012-07-02 04:19:00 +02:00
bench: bench-syslibm bench-openlibm
2012-07-02 04:32:24 +02:00
test-double: test-double.c libm-test.c
$(CC) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -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
$(CC) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -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) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -g $< -DSYS_MATH_H -lm -o $@
2012-07-02 04:39:04 +02:00
test-float-system: test-float.c libm-test.c
$(CC) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -g $< -DSYS_MATH_H -lm -o $@
bench-openlibm: libm-bench.cpp
$(CC) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -O2 $< ../libopenlibm.a -o $@
bench-syslibm: libm-bench.cpp
$(CC) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -O2 $< -lm -o $@
clean:
rm -fr test-double test-float test-double-system test-float-system bench-openlibm bench-syslibm *.dSYM