-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
45 lines (38 loc) · 1.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Top-level Makefile for TransferScheme
include Makefile.in
default:
@cd src && ${MAKE} || exit 1
@cd lib && ${MAKE} || exit 1
@cd funtofem; \
echo "ctypedef double F2FScalar" > FuntofemTypedefs.pxi; \
echo "F2F_NPY_SCALAR = np.NPY_DOUBLE" > FuntofemDefs.pxi; \
echo "dtype = np.double" >> FuntofemDefs.pxi;
debug:
@cd src && ${MAKE} $@ || exit 1
@cd lib && ${MAKE} || exit 1
@cd funtofem; \
echo "ctypedef double F2FScalar" > FuntofemTypedefs.pxi; \
echo "F2F_NPY_SCALAR = np.NPY_DOUBLE" > FuntofemDefs.pxi; \
echo "dtype = np.double" >> FuntofemDefs.pxi;
complex:
@cd src && ${MAKE} $@ || exit 1
@cd lib && ${MAKE} || exit 1
@cd funtofem; \
echo "ctypedef complex F2FScalar" > FuntofemTypedefs.pxi; \
echo "F2F_NPY_SCALAR = np.NPY_CDOUBLE" > FuntofemDefs.pxi; \
echo "dtype = complex" >> FuntofemDefs.pxi;
complex_debug:
@cd src && ${MAKE} $@ || exit 1
@cd lib && ${MAKE} || exit 1
@cd funtofem; \
echo "ctypedef complex F2FScalar" > FuntofemTypedefs.pxi; \
echo "F2F_NPY_SCALAR = np.NPY_CDOUBLE" > FuntofemDefs.pxi; \
echo "dtype = complex" >> FuntofemDefs.pxi;
interface:
${PIP} install -e .
complex_interface:
CFLAGS=-DFUNTOFEM_USE_COMPLEX ${PIP} install -e .
clean:
@cd src && ${MAKE} $@ || exit 1
@cd lib && ${MAKE} $@ || exit 1
@rm funtofem/*.so || exit 1