]> Creatis software - gdcm.git/blob - Testing/ExceptionAndPython/Makefile
Fix mistypings
[gdcm.git] / Testing / ExceptionAndPython / Makefile
1 all: main foo.so
2         
3
4 main:
5         g++ -g -Wall -Wunused-variable  foo_main.cxx -o main
6
7 foo.so:
8         g++ -c -g -Wall -Wunused-variable  foo.cxx -o foo.o
9         swig -python -c++  -o foo_wrap.cxx foo.i
10         g++ -c -g "-I`python -c "import sys; print sys.exec_prefix"`/include/python`python -c "import sys; print sys.version[:3]"`" foo_wrap.cxx -o foo_wrap.o
11         g++ -shared foo_wrap.o foo.o -o _foo.so -g
12 clean:
13         rm -f *.o *.so foo.py foo.pyc foo_wrap.cxx main