From ef56122888277dfe58a0b11bc3895058812967ad Mon Sep 17 00:00:00 2001 From: van Hauser Date: Mon, 3 Feb 2020 16:32:26 +0100 Subject: prefer python 3m --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 6bdbf810..da3d0766 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,14 @@ CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \ AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c) +ifneq "$(shell which python3m)" "" + ifneq "$(shell which python3m-config)" "" + PYTHON_INCLUDE ?= $(shell python3m-config --includes) + PYTHON_LIB ?= $(shell python3m-config --ldflags) + PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1)) + endif +endif + ifneq "$(shell which python3)" "" ifneq "$(shell which python3-config)" "" PYTHON_INCLUDE ?= $(shell python3-config --includes) -- cgit 1.4.1