From 8a3628fc86f82f2cc72a6bc9cc4ac9729f5ff8fa Mon Sep 17 00:00:00 2001 From: Mohammad Azim Khan Date: Tue, 26 Jun 2018 17:30:16 +0100 Subject: [PATCH] Set PYTHON using ?= syntax --- tests/Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index b3ab03665..88d91ef26 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -39,10 +39,13 @@ LOCAL_LDFLAGS += -lws2_32 ifdef SHARED SHARED_SUFFIX=.$(DLEXT) endif +PYTHON ?= python else DLEXT ?= so EXEXT= SHARED_SUFFIX= +# python2 for POSIX since FreeBSD has only python2 as default. +PYTHON ?= python2 endif # Zlib shared library extensions: @@ -50,15 +53,6 @@ ifdef ZLIB LOCAL_LDFLAGS += -lz endif -# Python executable -ifndef PYTHON -ifdef WINDOWS -PYTHON=python -else -PYTHON=python2 -endif -endif - APPS = test_suite_aes.ecb test_suite_aes.cbc \ test_suite_aes.cfb test_suite_aes.ofb \ test_suite_aes.xts \