-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 1.16 KB
/
Makefile
File metadata and controls
40 lines (31 loc) · 1.16 KB
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
##################################################
# set path to SCUFF-EM installation
##################################################
#SCUFFEM = /usr/local
SCUFFEM = ${SEI}/..
SCUFFINC = $(SCUFFEM)/include/scuff-em
SCUFFLIB = $(SCUFFEM)/lib
SCUFFLIB64 = $(SCUFFEM)/lib64
CPPFLAGS += -I$(SCUFFINC)
LDFLAGS += -L$(SCUFFLIB) -Wl,-rpath,$(SCUFFLIB)
LDFLAGS += -L$(SCUFFLIB64) -Wl,-rpath,$(SCUFFLIB64)
SCUFF_LIBS = -lscuff
##################################################
##################################################
##################################################
CPPFLAGS+=-I$(HOME)/include -I$(HOME)/codes/include -I. -fopenmp
LDFLAGS+=-L$(HOME)/codes/lib -L$(HOME)/lib
CXXFLAGS+=-O3
LB_LIBS = -llapack -lopenblas -lgomp -lgfortran
OTHER_LIBS = $(RDL_LIBS) $(LB_LIBS)
LIBS = $(SCUFF_LIBS) $(OTHER_LIBS) -lpthread
##################################################
##################################################
##################################################
all: tBeyn411
tBeyn411: tBeyn411.o ./libBeyn.a
$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
libBeyn.a: libBeyn.o libBeyn.h
ar r libBeyn.a libBeyn.o
clean:
/bin/rm *.o *.a