File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ EXTENSIONS_DIR = ${PROJECT_DIR}/fidimag/extensions
3
3
PYTHON = python3
4
4
PYTEST = ${PYTHON} -m pytest
5
5
6
- CC =g++-8
6
+ CC =gcc-8
7
+ CXX =g++-8
7
8
8
9
FFTW_INC =local/include
9
10
FFTW_LIB =local/lib
@@ -14,6 +15,7 @@ SUNDIALS_LIB=local/lib
14
15
CPPFLAGS = -fPIC -g -Iinclude/ \
15
16
-I${FFTW_INC} -L${FFTW_LIB} \
16
17
-I${SUNDIALS_INC} -L${SUNDIALS_LIB} \
18
+ -Inative/include \
17
19
-lm \
18
20
-lfftw3_omp -lfftw3 \
19
21
-lsundials_cvodes -lsundials_nvecserial -lsundials_nvecopenmp \
@@ -25,19 +27,20 @@ SOURCES = $(shell echo native/src/*.cpp)
25
27
OBJECTS = $(SOURCES:.cpp=.o )
26
28
LIBRARY = local/lib/libfidimag.so
27
29
30
+ # #######
31
+ # Build
32
+ # #######
33
+
34
+
28
35
all : $(LIBRARY ) build
29
36
37
+
30
38
$(LIBRARY ) : $(OBJECTS )
31
39
$(CXX ) $(CPPFLAGS ) $(OBJECTS ) -o $@ $(LDFLAGS )
32
40
33
41
34
-
35
- # ####################
36
- # Cython Extensions #
37
- # ####################
38
-
39
42
build : $(LIBRARY )
40
- ${PYTHON} setup.py build_ext --inplace
43
+ CC= ${CC} CXX= ${CXX} ${PYTHON} setup.py build_ext --inplace
41
44
42
45
43
46
Original file line number Diff line number Diff line change 7
7
import glob
8
8
import os
9
9
10
+
11
+ print (os .environ ['CC' ], os .environ ['CXX' ])
10
12
version = '5.0alpha'
11
13
12
14
MODULE_DIR = os .path .dirname (os .path .abspath (__file__ ))
You can’t perform that action at this time.
0 commit comments