-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·46 lines (32 loc) · 1.01 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
46
CFLG = -c -fPIC -O3 -Iinclude -IintegrT
LFLG = -fPIC -O3 -lgfortran
SRC = main.cpp
LIBS = con512tpl/mod.a svd/svd.a nrused/nr.a integrT/integT.a fort/fort.a hompack/homol.a
COBJ = $(SRC:.cpp=.o)
CEL = isodyn.out
all: $(CEL)
$(CEL): $(COBJ) $(LIBS)
g++ $(COBJ) $(LIBS) $(LFLG) -o $(CEL)
# g++ -O3 -lgfortran main.o svd/svd.a /opt/NAG/fll6a22dfl/lib/libnag_nag.a con512tpl/mod.a nrused/nr.a integrT/integT.a
# g++ -O3 -lgfortran -m64 main.o svd/svd.a con512tpl/mod.a nrused/nr.a integrT/integT.a -o isodyn.out
# g++ -O3 -lf52 -lf2c -u MAIN__ main.o svd/svd.a con512tpl/mod.a nrused/nr.a integrT/integT.a -o isodyn.out
.cpp.o:
g++ -std=c++11 $(CFLG) $< -o $@
con512tpl/mod.a:
make -C con512tpl
svd/svd.a:
make -C svd
integrT/integT.a:
make -C integrT
nrused/nr.a:
make -C nrused
clean:
rm -f isodyn.out *.o *~
make clean -C con512tpl
make clean -C svd
# make clean -C nrused
# make clean -C integrT
install:
cp isodyn.out /usr/local/bin/isodyn
cp plkin.p /usr/local/bin/plkin.p
chmod a+x /usr/local/bin/plkin.p