diff options
Diffstat (limited to 'libraries/libtfm/Makefile')
-rw-r--r-- | libraries/libtfm/Makefile | 7 |
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} |