~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to wrappers/numpy/Makefile

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
MPI=n
 
2
CYTHON=n
 
3
 
 
4
OBJ = adios.so
 
5
 
 
6
ifeq ($(CYTHON), y)
 
7
        OBJ := adios.cpp $(OBJ)
 
8
endif
 
9
 
 
10
ifeq ($(MPI),y)
 
11
        OBJ += adios_mpi.so
 
12
        ifeq ($(CYTHON), y)
 
13
                OBJ := adios_mpi.cpp $(OBJ)
 
14
        endif
 
15
endif
 
16
 
 
17
 
 
18
default:
 
19
        @echo "ADIOS wrapper for Python/Numpy"
 
20
        @echo "Have 'adios_config' and 'python' in the path and run"
 
21
        @echo "> make python"
 
22
        @echo ""
 
23
        @echo "MPI-enabled ADIOS wrapper can be built (MPI4Py is required):"
 
24
        @echo "> make MPI=y python"
 
25
        @echo ""
 
26
 
 
27
python: $(OBJ)
 
28
 
 
29
adios.cpp:  adios.pyx
 
30
        cython --cplus adios.pyx
 
31
 
 
32
adios.so:  
 
33
        python setup.py build
 
34
 
 
35
adios_mpi.cpp:  adios_mpi.pyx
 
36
        cython --cplus adios_mpi.pyx
 
37
 
 
38
adios_mpi.so:  
 
39
        python setup_mpi.py build
 
40
 
 
41
clean:
 
42
        rm -rf build
 
43
 
 
44
install:
 
45
        @echo "Run (you may need an admin previlege):"
 
46
        @echo "> python setup.py install"
 
47
        @echo ""
 
48
        @echo "You may specify PREFIX:"
 
49
        @echo "> python setup.py install --prefix=/dir/to/install"
 
50
        @echo ""
 
51
        @echo "You can also install in your local directory, run"
 
52
        @echo "> python setup.py install --user"
 
53