summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-21 09:55:48 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-21 09:55:48 -0400
commit8ef3b4b8e78578c31c2d8a30f316e8f32cfb30e7 (patch)
tree3773d314fff49211955dac7f8b59aa05c51ec68c /GNUmakefile
parent400009fbd9d8fcd12dffb90d98b0a78bb1706c21 (diff)
downloadcryptopp-git-8ef3b4b8e78578c31c2d8a30f316e8f32cfb30e7.tar.gz
Add debug output to makefiles
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index aab4e3b8..e310d2d3 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -274,6 +274,10 @@ ifeq ($(DETECT_FEATURES),1)
CHACHA_FLAG = $(SSE2_FLAG)
SUN_LDFLAGS += $(SSE2_FLAG)
else
+ # Make does not have useful debugging facilities. Show the user
+ # what happened by compiling again without the pipe.
+ $(info Running make again to see what failed)
+ $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT))
SSE2_FLAG =
endif
@@ -477,6 +481,14 @@ ifeq ($(DETECT_FEATURES),1)
SPECK128_FLAG = -march=armv7-a -mfpu=neon
SM4_FLAG = -march=armv7-a -mfpu=neon
else
+ # Make does not have useful debugging facilities. Show the user
+ # what happened by compiling again without the pipe.
+ $(info Running make again to see what failed)
+ $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT))
+ NEON_FLAG =
+ endif
+
+ ifeq ($(NEON_FLAG),)
CRYPTOPP_CXXFLAGS += -DCRYPTOPP_DISABLE_ASM
endif
@@ -522,6 +534,14 @@ ifeq ($(DETECT_FEATURES),1)
SPECK128_FLAG = -march=armv8-a
SM4_FLAG = -march=armv8-a
else
+ # Make does not have useful debugging facilities. Show the user
+ # what happened by compiling again without the pipe.
+ $(info Running make again to see what failed)
+ $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT))
+ ASIMD_FLAG =
+ endif
+
+ ifneq ($(ASIMD_FLAG),)
CRYPTOPP_CXXFLAGS += -DCRYPTOPP_DISABLE_ASM
endif
@@ -722,6 +742,10 @@ ifeq ($(DETECT_FEATURES),1)
ifeq ($(strip $(HAVE_OPT)),0)
ALTIVEC_FLAG := $(ALTIVEC_FLAG)
else
+ # Make does not have useful debugging facilities. Show the user
+ # what happened by compiling again without the pipe.
+ $(info Running make again to see what failed)
+ $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT))
ALTIVEC_FLAG =
endif