-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmakefile
More file actions
18 lines (13 loc) · 715 Bytes
/
makefile
File metadata and controls
18 lines (13 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
COMP = gfortran
COMP2 = python3 -m numpy.f2py
files = source/lap.f90 source/utils.f90 source/tiling.f90 source/potential.f90 source/transform.f90
functions = munkres free_trans rot_mat center eye norm split det sort sphere circle distance derivative closest fixed_tmat fixed_tmat_int intoptimization fastoptimization optimize_vec
flags = --f90exec=gfortran --fcompiler=gnu95 --f90flags="-Wall -g -Og -fbacktrace -fopenmp" -lgomp
#-I/usr/lib64/openmpi/lib/ -L/usr/lib64/openmpi/lib/ -lmpi
all: fmodules
fmodules: $(files)
$(COMP2) -c $(flags) -m p2ptrans.$@ $(files) only: $(functions)
gfortran: $(files) source/lap.f90
$(COMP) -c -fPIC -fopenmp -Wall -g -Og source/lap.f90 $(files)
clean:
rm -f *.mod *.so