-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.intel
80 lines (62 loc) · 2.38 KB
/
Makefile.intel
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FFLAGC = -g -fpp -O2 -openmp -DHORNOS
opt =
profile =
obj = lev00
ildir =
CFLAGC = -g -fpp -O2 -openmp -DHORNOS
MKL_PATH = $(INTEL_MKL_HOME)/lib/intel64
IFC_PATH = $(INTEL_IFORT_HOME)/lib/intel64
LIBS = $(IFC_PATH)/libiomp5.a -lpthread
input =
FCOMPL = ifort
CCOMPL = icc
# list of other directories for source files
.PREFIXES: .
.SUFFIXES:
.SUFFIXES: .f90 .c .s .o .fil
.f90.o:
$(FCOMPL) -c $(ildir) $(FFLAGC) $(opt) $(profile) $<
.f.fil:
$(FCOMPL) -il $(FFLAGC) $<
.s.o:
as $<
.c.o:
$(CCOMPL) -c $(CFLAGC) $(profile) $<
#OBJ_mod = atoms.o menu.o box.o kpoints.o mendeleev.o \
# code.o param.o dos_inc.o explore.o siesta_eig.o
OBJECTS = atoms.o menu.o box.o kpoints.o mendeleev.o \
code.o param.o dos_inc.o explore.o siesta_eig.o \
device.o bastr.o do_param.o get_param_siesta.o \
hat.o read_siesta_input.o read_vasp_geom.o lev00.o \
tools.o tools_strings.o prep_dos.o dos_add.o \
mainmenu.o read_vasp_psi2.o plotting.o prep_disp.o \
dipole.o density.o write_dens.o lev_coulmb.o hould.o \
invers.o manip_dens.o plot_add.o read_density.o \
simulate.o read_siesta_pdos.o ttag.o choose_tasks.o stm_TH.o
INLINE =
APPLIC: $(INLINE) $(OBJECTS)
$(FCOMPL) $(FFLAGC) $(profile) -o $(obj) $(OBJECTS) $(LIBS)
test:
@echo START TEST ON $(input) , opt = $(opt)
@echo start test on $(input) , opt = $(opt) >> TIME.LOG
@date >> TIME.LOG
@( time $(obj) < $(input) > $(input).out ) 2>> TIME.LOG
@echo - - - - - - - - - - - >> TIME.LOG
clean:
@rm -f $(INLINE) $(OBJECTS) $(OBJ_mod) *.mod
# include file dependencies
lev00.o mainmenu.o :: param.f90 atoms.f90 code.f90 kpoints.f90 dos_inc.f90
device.o dipole.o simulate.o :: param.f90 atoms.f90 menu.f90
do_param.o get_param_siesta.o write_dens.o read_density.o read_siesta_pdos.o siesta_eig.o :: param.f90 \
atoms.f90 code.f90
read_siesta_input.o read_vasp_geom.o :: param.f90 atoms.f90 code.f90 \
kpoints.f90 mendeleev.f90
prep_dos.o :: param.f90 atoms.f90 kpoints.f90 dos_inc.f90
dos_add.o :: param.f90 dos_inc.f90
read_vasp_psi2.o prep_disp.o :: param.f90 atoms.f90 dos_inc.f90
density.o :: param.f90 atoms.f90 menu.f90 box.f90
lev_coulmb.o :: param.f90 atoms.f90 menu.f90 code.f90
manip_dens.o :: param.f90 code.f90
plot_add.o :: param.f90 menu.f90 explore.f90
choose_tasks.o :: param.f90 dos_inc.f90 atoms.f90
stm_TH.o :: param.f90 atoms.f90 menu.f90