aboutsummaryrefslogtreecommitdiff
path: root/libraries/libtfm/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2020-03-09 15:47:17 -0400
committerPaul Selkirk <paul@psgd.org>2020-03-09 15:50:12 -0400
commit38b388061364339c1259b56fe1d366de8b8630d3 (patch)
treee6243e7a5c8f8051d85510824dee551222015872 /libraries/libtfm/Makefile
parent6b2513f1e0def3a134383aa635cb41feac37be31 (diff)
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).
Diffstat (limited to 'libraries/libtfm/Makefile')
-rw-r--r--libraries/libtfm/Makefile7
1 files changed, 5 insertions, 2 deletions
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}