From 38b388061364339c1259b56fe1d366de8b8630d3 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Mon, 9 Mar 2020 15:47:17 -0400 Subject: Replace the brutally inefficient fp_to_unsigned_bin with one based on fp_read_unsigned_bin. I thought about patching it directly in sw/thirdparty/libtfm, but ultimately decided to keep that pristine (especially since we verify file checksums there). --- libraries/libtfm/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libraries/libtfm/Makefile') diff --git a/libraries/libtfm/Makefile b/libraries/libtfm/Makefile index 34b9314..aa5031f 100644 --- a/libraries/libtfm/Makefile +++ b/libraries/libtfm/Makefile @@ -45,10 +45,12 @@ CFLAGS += -Wall -W -Wshadow -Wno-uninitialized TARGETS := $(notdir ${HDR} ${LIB}) +REPLACE = fp_to_unsigned_bin.o + all: ${TARGETS} clean: - rm -rf ${TARGETS} $(notdir ${HDR}.tmp) ${LIB} tomsfastmath/src + rm -rf ${TARGETS} $(notdir ${HDR}.tmp) ${LIB} tomsfastmath/src ${REPLACE} distclean: clean rm -f TAGS @@ -63,6 +65,7 @@ $(notdir ${HDR}): ${HDR} $(notdir ${LIB}): ${LIB} ln -f $^ $@ -${LIB}: ${HDR} +${LIB}: ${HDR} ${REPLACE} (cd ${LIBTFM_SRC} && find tomsfastmath/src -type d) | xargs mkdir -p cd tomsfastmath; ${MAKE} CFLAGS='${CFLAGS}' + ar r ${LIB} ${REPLACE} -- cgit v1.2.3