From e3db117ae05a248773abe4b7ec2ef95ed7203b8e Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Sat, 25 Jun 2016 15:13:43 -0400 Subject: Split LIB*_DIR into _SRC and _BLD. Also rename all instances of GNUmakefile to Makefile. --- libraries/libtfm/GNUmakefile | 46 ------------------------------- libraries/libtfm/Makefile | 46 +++++++++++++++++++++++++++++++ libraries/libtfm/tomsfastmath/GNUmakefile | 8 ------ libraries/libtfm/tomsfastmath/Makefile | 8 ++++++ 4 files changed, 54 insertions(+), 54 deletions(-) delete mode 100644 libraries/libtfm/GNUmakefile create mode 100644 libraries/libtfm/Makefile delete mode 100644 libraries/libtfm/tomsfastmath/GNUmakefile create mode 100644 libraries/libtfm/tomsfastmath/Makefile (limited to 'libraries/libtfm') diff --git a/libraries/libtfm/GNUmakefile b/libraries/libtfm/GNUmakefile deleted file mode 100644 index ca86f80..0000000 --- a/libraries/libtfm/GNUmakefile +++ /dev/null @@ -1,46 +0,0 @@ - -# This duplicates more of sw/thirdparty/libtfm/GNUmakefile than I -# would like, but it does the job. Prettier makefiles can wait for another day. - -ifndef CRYPTECH_ROOT - CRYPTECH_ROOT := $(abspath ../../../..) -endif - -REPO := ${CRYPTECH_ROOT}/sw/thirdparty/libtfm - -# vpath %.c ${REPO} -# vpath %.h ${REPO} - -BITS := 8192 - -HDR := ${REPO}/tomsfastmath/src/headers/tfm.h -LIB := tomsfastmath/libtfm.a - -#CFLAGS += -DTFM_X86 -#CFLAGS += -DTFM_NO_ASM - -CFLAGS += -fPIC -Wall -W -Wshadow -I${REPO}/tomsfastmath/src/headers -g3 -DFP_MAX_SIZE="(${BITS}*2+(8*DIGIT_BIT))" - -TARGETS := $(notdir ${HDR} ${LIB}) - -all: ${TARGETS} - -clean: - rm -rf ${TARGETS} $(notdir ${HDR}.tmp) ${LIB} tomsfastmath/src - -distclean: clean - rm -f TAGS - -$(notdir ${HDR}): ${HDR} - echo >$@.tmp '/* Configure size of largest bignum we want to handle -- see notes in tfm.pdf */' - echo >>$@.tmp '#define FP_MAX_SIZE (${BITS}*2+(8*DIGIT_BIT))' - echo >>$@.tmp '' - cat >>$@.tmp $^ - mv -f $@.tmp $@ - -$(notdir ${LIB}): ${LIB} - ln -f $^ $@ - -${LIB}: ${HDR} - (cd ${REPO} && find tomsfastmath/src -type d) | xargs mkdir -p - cd tomsfastmath; ${MAKE} CFLAGS='${CFLAGS}' diff --git a/libraries/libtfm/Makefile b/libraries/libtfm/Makefile new file mode 100644 index 0000000..4dfcb45 --- /dev/null +++ b/libraries/libtfm/Makefile @@ -0,0 +1,46 @@ + +# This duplicates more of sw/thirdparty/libtfm/Makefile than I +# would like, but it does the job. Prettier makefiles can wait for another day. + +ifndef CRYPTECH_ROOT + CRYPTECH_ROOT := $(abspath ../../../..) +endif + +REPO := ${CRYPTECH_ROOT}/sw/thirdparty/libtfm + +# vpath %.c ${REPO} +# vpath %.h ${REPO} + +BITS := 8192 + +HDR := ${REPO}/tomsfastmath/src/headers/tfm.h +LIB := tomsfastmath/libtfm.a + +#CFLAGS += -DTFM_X86 +#CFLAGS += -DTFM_NO_ASM + +CFLAGS += -fPIC -Wall -W -Wshadow -I${REPO}/tomsfastmath/src/headers -g3 -DFP_MAX_SIZE="(${BITS}*2+(8*DIGIT_BIT))" + +TARGETS := $(notdir ${HDR} ${LIB}) + +all: ${TARGETS} + +clean: + rm -rf ${TARGETS} $(notdir ${HDR}.tmp) ${LIB} tomsfastmath/src + +distclean: clean + rm -f TAGS + +$(notdir ${HDR}): ${HDR} + echo >$@.tmp '/* Configure size of largest bignum we want to handle -- see notes in tfm.pdf */' + echo >>$@.tmp '#define FP_MAX_SIZE (${BITS}*2+(8*DIGIT_BIT))' + echo >>$@.tmp '' + cat >>$@.tmp $^ + mv -f $@.tmp $@ + +$(notdir ${LIB}): ${LIB} + ln -f $^ $@ + +${LIB}: ${HDR} + (cd ${REPO} && find tomsfastmath/src -type d) | xargs mkdir -p + cd tomsfastmath; ${MAKE} CFLAGS='${CFLAGS}' diff --git a/libraries/libtfm/tomsfastmath/GNUmakefile b/libraries/libtfm/tomsfastmath/GNUmakefile deleted file mode 100644 index 7141763..0000000 --- a/libraries/libtfm/tomsfastmath/GNUmakefile +++ /dev/null @@ -1,8 +0,0 @@ -ifndef CRYPTECH_ROOT - CRYPTECH_ROOT := $(abspath ../../../../..) -endif - -vpath %.c ${CRYPTECH_ROOT}/sw/thirdparty/libtfm/tomsfastmath -vpath %.h ${CRYPTECH_ROOT}/sw/thirdparty/libtfm/tomsfastmath - -include ${CRYPTECH_ROOT}/sw/thirdparty/libtfm/tomsfastmath/makefile diff --git a/libraries/libtfm/tomsfastmath/Makefile b/libraries/libtfm/tomsfastmath/Makefile new file mode 100644 index 0000000..7141763 --- /dev/null +++ b/libraries/libtfm/tomsfastmath/Makefile @@ -0,0 +1,8 @@ +ifndef CRYPTECH_ROOT + CRYPTECH_ROOT := $(abspath ../../../../..) +endif + +vpath %.c ${CRYPTECH_ROOT}/sw/thirdparty/libtfm/tomsfastmath +vpath %.h ${CRYPTECH_ROOT}/sw/thirdparty/libtfm/tomsfastmath + +include ${CRYPTECH_ROOT}/sw/thirdparty/libtfm/tomsfastmath/makefile -- cgit v1.2.3