From 1255a6143cdcaf0c4ce1818b05a60fe5668037ea Mon Sep 17 00:00:00 2001 From: Larry Holder Date: Fri, 3 Sep 2021 00:38:26 -0700 Subject: [PATCH] Update Makefile to support python3-config --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6312c45..bcc7e87 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,14 @@ OBJECTS = Action.o Agent.o Location.o Orientation.o Percept.o WumpusWorld.o PYTHON-DEF = -DPYTHON PYTHON-OBJ = Action.o PyAgent.o Location.o Orientation.o Percept.o WumpusWorld.o -PYTHON_CONFIG = python-config +#PYTHON_CONFIG = python2-config # Python 2 +PYTHON_CONFIG = python3-config --embed # Python 3 PYTHON-INC = $(shell $(PYTHON_CONFIG) --includes) PYTHON-LIB = $(shell $(PYTHON_CONFIG) --ldflags) -# Settings for MacOS (python v3.8, installed via brew) -#PYTHON-INC = -I/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.8/include/python3.8 -#PYTHON-LIB = -L/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.8/lib/ -lpython3.8 +# Settings for MacOS (python v3.9, installed via brew) +#PYTHON-INC = -I/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.9/include/python3.9 +#PYTHON-LIB = -L/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.9/lib/ -lpython3.9 # Settings for MacOS (python v2.7) # PYTHON-INC = -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7