mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
f70240ded5
This is rather basic. A clean is needed to get rid of artifacts from previous runs with other architectures. Note this requires PR #88 to work because without it x86 is broken. Closes #89
27 lines
1,019 B
Makefile
27 lines
1,019 B
Makefile
OPENLIBM_HOME=$(abspath ..)
|
|
include ../Make.inc
|
|
|
|
all: test-double test-float # test-double-system test-float-system
|
|
|
|
bench: bench-syslibm bench-openlibm
|
|
|
|
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 $@
|
|
|
|
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 $@
|
|
|
|
test-double-system: test-double.c libm-test.c
|
|
$(CC) $(CFLAGS) $(CFLAGS_add_TARGET_$(ARCH)) -g $< -DSYS_MATH_H -lm -o $@
|
|
|
|
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
|