-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (23 loc) · 924 Bytes
/
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
#The compiler:
FC=gfortran #-O -g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all
CPP=/lib/cpp -ffreestanding -C -ansi
CC=gcc -DHAVE_CONFIG_H -I. -I.. -g -O0 -MT aux.o -MD -MP -MF .deps/aux.Tpo -c
FCFLAGS= -O3 -I/opt/etsf/include/ -lxcf90 -lxc
CPPFLAGS= -I.
LDFLAGS= -O3 -lblas -llapack path/libnag.a -L/opt/etsf/lib -lxcf90 -lxc
#Executable
PROGRAM=hippo
OBJECT= common.o auxil.o main.o vary_occ.o \
vary_occ_NAG.o construct_f.o non_loc_eff_pot.o \
vary_occ_theta.o OEP.o aux_OEP.o vary_occ_theta_n.o \
readgamess.o functionals.o total_energy.o vary_orbs_direct.o \
grid_module.o TotalSpinSq.o FermiDirac.o Model_OEP.o \
Effective_orbital.o invtest_analyt.o \
#"make" for all:
all: $(PROGRAM)
hippo: $(OBJECT)
$(FC) $(FCFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.f90
$(FC) $(FCFLAGS) -c $<
clean:
rm -f *.o *.mod *.MOD