Source

swig_cpp_python / Makefile

Full commit
CPPFLAGS = -I/Library/Frameworks/Python.framework/Versions/Current/include/python2.7/
SWIG := swig

all: _generated/A_wrap.cpp _generated/C_wrap.cpp
	python setup.py build

_generated/%_wrap.cpp _generated/py/%.py : swig/%.i
	mkdir -p _generated/py
	$(SWIG) -c++ -Isrc/ -o _generated/$*_wrap.cpp -python -outdir _generated/py $^
	touch _generated/py/__init__.py

.PHONY: clean

clean:
	rm -rf _generated build