Skip to content

Commit

Permalink
Update Makefile to support python3-config
Browse files Browse the repository at this point in the history
  • Loading branch information
holderlb committed Sep 3, 2021
1 parent 48d5981 commit 1255a61
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1255a61

Please sign in to comment.