source: issm/trunk-jpl/src/py/modules/Test/Makefile@ 11975

Last change on this file since 11975 was 11975, checked in by Eric.Larour, 13 years ago

Some prototyping of Python modules. For a history of how to make the NumPY C API work

File size: 845 bytes
Line 
1all: Test2.so
2
3Write.o: Write.cpp
4 g++ -I$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/include/python3.2 \
5 -I$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/lib/python3.2/site-packages/numpy/core/include/numpy \
6 -DNPY_NO_DEPRECATED_API -c -o Write.o Write.cpp
7
8Test2.o: Test2.cpp
9 g++ -I$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/include/python3.2 \
10 -I$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/lib/python3.2/site-packages/numpy/core/include/numpy \
11 -DNPY_NO_DEPRECATED_API -c -o Test2.o Test2.cpp
12
13
14Test2.so: Test2.o Write.o
15 g++ -dynamiclib -o Test2.so Write.o Test2.o -L$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/lib -lpython3.2
16
17clean:
18 rm Test2.so Test2.o Write.o
Note: See TracBrowser for help on using the repository browser.