Debian Codegraph @

tools/swig/test/Makefile

raw
1 # SWIG
2 INTERFACES = Array.i Farray.i Vector.i Matrix.i Tensor.i Fortran.i Flat.i
3 WRAPPERS = $(INTERFACES:.i=_wrap.cxx)
4 PROXIES = $(INTERFACES:.i=.py )
5
6 # Default target: build the tests
7 .PHONY : all
8 all: $(WRAPPERS) Array1.cxx Array1.h Array2.cxx Array2.h ArrayZ.cxx ArrayZ.h \
9 Farray.cxx Farray.h Vector.cxx Vector.h \
10 Matrix.cxx Matrix.h Tensor.cxx Tensor.h Fortran.h Fortran.cxx \
11 Flat.h Flat.cxx
12 ./setup.py build_ext -i
13
14 # Test target: run the tests
15 .PHONY : test
16 test: all
17 python testVector.py
18 python testMatrix.py
19 python testTensor.py
20 python testArray.py
21 python testFarray.py
22 python testFortran.py
23 python testFlat.py
24
25 # Rule: %.i -> %_wrap.cxx
26 %_wrap.cxx: %.i %.h ../numpy.i
27 swig -c++ -python $<
28 %_wrap.cxx: %.i %1.h %2.h ../numpy.i
29 swig -c++ -python $<
30
31 # Clean target
32 .PHONY : clean
33 clean:
34 $(RM) -r build
35 $(RM) *.so
36 $(RM) $(WRAPPERS)
37 $(RM) $(PROXIES)