Makefile 1.89 KB
Newer Older
Marco Govoni's avatar
Marco Govoni committed
1
2
3
4
5
6
7
# Makefile for Wstat

include ../../make.inc

# location of needed modules
MODFLAGS= $(MOD_FLAG)../../iotk/src $(MOD_FLAG)../../Modules $(MOD_FLAG)../../LAXlib \
          $(MOD_FLAG)../../FFTXlib $(MOD_FLAG)../../PW/src \
8
          $(MOD_FLAG)../Libraries/Forpy \
Marco Govoni's avatar
Marco Govoni committed
9
          $(MOD_FLAG)../Libraries/Json \
Govoni's avatar
Govoni committed
10
          $(MOD_FLAG)../Libraries/Base64 \
Marco Govoni's avatar
Marco Govoni committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
          $(MOD_FLAG)../Modules \
          $(MOD_FLAG)../Tools \
          $(MOD_FLAG)../FFT_kernel \
          $(MOD_FLAG)../Coulomb_kernel \
          $(MOD_FLAG)../Para_kernel \
          $(MOD_FLAG)../Hamiltonian_kernel \
          $(MOD_FLAG)../DFPT_kernel \
          $(MOD_FLAG)../IO_kernel \
          $(MOD_FLAG).
IFLAGS=


WSTAT_OBJS = \
wstat_readin.o \
wstat_setup.o \
wstat_restart.o \
wstat_memory_report.o \
wstat_tools.o \
Marco Govoni's avatar
Marco Govoni committed
29
apply_operator.o \
Marco Govoni's avatar
Marco Govoni committed
30
31
32
33
davidson_diago.o \
wstat.o

PWOBJS = ../../PW/src/libpw.a 
Marco Govoni's avatar
Marco Govoni committed
34
QEMODS = ../../Modules/libqemod.a ../../FFTXlib/libqefft.a ../../LAXlib/libqela.a ../Libraries/Forpy/libforpy.a ../Libraries/Json/libjson.a ../Libraries/Base64/libbase64.a 
Marco Govoni's avatar
Marco Govoni committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
WESTLIBS = \
../IO_kernel/lib_io_kernel.a \
../DFPT_kernel/lib_dfpt_kernel.a \
../Hamiltonian_kernel/lib_hamiltonian_kernel.a \
../Para_kernel/lib_para_kernel.a \
../Coulomb_kernel/lib_coulomb_kernel.a \
../FFT_kernel/lib_fft_kernel.a \
../Tools/libtools.a \
../Modules/libmodules.a


TLDEPS= bindir mods libs pw

all : title tldeps wstat.x

wstat.x : $(PWOBJS) $(WSTAT_OBJS) $(QEMODS) $(LIBOBJS)
	$(LD) $(LDFLAGS) -o wstat.x \
Marco Govoni's avatar
Marco Govoni committed
52
		$(WSTAT_OBJS) $(WESTLIBS) $(PWOBJS) $(QEMODS) $(LIBOBJS) $(LIBS) $(PYT_LDFLAGS)
Marco Govoni's avatar
Marco Govoni committed
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	- ( cd ../../bin ; ln -fs ../West/Wstat/wstat.x . )
tldeps:
	test -n "$(TLDEPS)" && ( cd ../.. ; $(MAKE) $(MFLAGS) $(TLDEPS) || exit 1) || :

clean :
	- /bin/rm -f *.x *.o *.a *~ *_tmp.f90 *.d *.mod *.i *.L
	- /bin/rm -f ../../bin/wstat.x

title :
	@echo "              "
	@echo "##############"
	@echo "### Wstat ####"
	@echo "##############"
	@echo "              "

include make.depend