文章目录
来自EAST的lanms的代码
makefile的python路径
CXXFLAGS = -I include -std=c++11 -O3 $(shell /home/hlx2/anapy35/bin/python3-config --cflags)
LDFLAGS = $(shell /home/hlx2/anapy35/bin/python3-config --ldflags)
DEPS = lanms.h $(shell find include -xtype f)
CXX_SOURCES = adaptor.cpp include/clipper/clipper.cpp
LIB_SO = adaptor.so
$(LIB_SO): $(CXX_SOURCES) $(DEPS)
$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(CXX_SOURCES) --shared -fPIC
clean:
rm -rf $(LIB_SO)
hlx2@NLP:~/PycharmProjects/EAST-PVANET/lanms$ python3-config --cflags
-I/home/hlx2/anapy35/include/python3.5m -I/home/hlx2/anapy35/include/python3.5m -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/