Makefile 279 B

12345678910
  1. CXXFLAGS += -O3 -Wall -shared -std=c++11 -fPIC -fdiagnostics-color
  2. CPPFLAGS += $(shell python3 -m pybind11 --includes)
  3. LIBNAME = helpers
  4. LIBEXT = $(shell python3-config --extension-suffix)
  5. default: $(LIBNAME)$(LIBEXT)
  6. %$(LIBEXT): %.cpp
  7. $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o $@