# Standard compile options for the c++ executable FLAGS = -fPIC # The python interface through swig PYTHONI = -I/usr/include/python3.8/ PYTHONL = -Xlinker -export-dynamic # Default super-target all: cd ../spt/ && g++ -fPIC -std=c++2a -Wall -I/usr/include/opencv4 -c *.cpp ; cd ../swig/ swig -c++ -python -keyword -o spt_wrap.cxx spt.i g++ $(FLAGS) $(PYTHONI) -I/usr/include/opencv4 -c spt_wrap.cxx -o spt_wrap.o g++ $(PYTHONL) $(LIBFLAGS) -shared ../spt/*.o spt_wrap.o -lopencv_core -lopencv_imgproc -lopencv_calib3d -o _spt.so