-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 545 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 545 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Makefile for libBoys
#
TARGET = libboys.so
# Compiler
FC=gfortran
# Compiler flags
FLAGS=-m64 -cpp -ffixed-line-length-none -ffree-line-length-none -fdefault-integer-8 -finit-local-zero -Ofast -mtune=native -march=native -ffast-math -march=native -mfpmath=sse -msse2 -ffast-math -g -fPIC
# Linker
LD=ld
# Linker flags
LDFLAGS=-shared -fPIC -Wl,-soname,libboys.so
default:
$(FC) $(FLAGS) -c libboys_data.f90
$(FC) $(FLAGS) -c libboys.f90
$(FC) $(LDFLAGS) -o $(TARGET) libboys_data.o libboys.o
clean:
rm -f $(TARGET) *.mod *.o