[PATCH 0/2] Clean up: libtommath Makefiles

Michael Witten mfwitten at gmail.com
Wed Jul 12 13:17:26 AWST 2017


The following patches remove warnings during the build process:

  [1] Clean up: libtommath/Makefile.in: Remove the `clean' target
  [2] Clean up: libtommath/makefile.include: `arch' -> `uname -m'

They make the following overall alterations:

  libtommath/Makefile.in      | 7 -------
  libtommath/makefile.include | 2 +-
  2 files changed, 1 insertion(+), 8 deletions(-)

Sincerely,
Michael Witten




For convenience of review, here is the cumulative patch:

diff --git a/libtommath/Makefile.in b/libtommath/Makefile.in
index 9061219..2fec4ce 100644
--- a/libtommath/Makefile.in
+++ b/libtommath/Makefile.in
@@ -169,13 +169,6 @@ manual:	mandvi
 pretty:
 	perl pretty.build
 
-clean:
-	rm -f *.bat *.pdf *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test ltmtest mpitest mtest/mtest mtest/mtest.exe \
-        *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.da *.dyn *.dpi tommath.tex `find . -type f | grep [~] | xargs` *.lo *.la
-	rm -rf .libs
-	-cd etc && MAKE=${MAKE} ${MAKE} clean
-	-cd pics && MAKE=${MAKE} ${MAKE} clean
-
 #\zipup the project (take that!)
 no_oops: clean
 	cd .. ; cvs commit
diff --git a/libtommath/makefile.include b/libtommath/makefile.include
index c862f0f..4e4a9bf 100644
--- a/libtommath/makefile.include
+++ b/libtommath/makefile.include
@@ -55,7 +55,7 @@ endif # COMPILE_SIZE
 endif # COMPILE_DEBUG
 
 # adjust coverage set
-ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),)
+ifneq ($(filter $(shell uname -m), i386 i686 x86_64 amd64 ia64),)
    COVERAGE = test_standalone timing
    COVERAGE_APP = ./test && ./ltmtest
 else


More information about the Dropbear mailing list