Makefile 321 B

12345678910111213
  1. CXXFLAGS = -I include -std=c++11 -O3 $(shell python3-config --cflags)
  2. LDFLAGS = $(shell python3-config --ldflags)
  3. DEPS = $(shell find include -xtype f)
  4. CXX_SOURCES = pse.cpp
  5. LIB_SO = pse.so
  6. $(LIB_SO): $(CXX_SOURCES) $(DEPS)
  7. $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(CXX_SOURCES) --shared -fPIC
  8. clean:
  9. rm -rf $(LIB_SO)