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 | |
---|
1 | all: Test2.so
|
---|
2 |
|
---|
3 | Write.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 |
|
---|
8 | Test2.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 |
|
---|
14 | Test2.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 |
|
---|
17 | clean:
|
---|
18 | rm Test2.so Test2.o Write.o
|
---|
Note:
See
TracBrowser
for help on using the repository browser.