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

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 \
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
          $(MOD_FLAG)../Modules \
          $(MOD_FLAG).
IFLAGS=


TOOLS_OBJS = \
17
18
io_push.o \
fetch_input.o \
Marco Govoni's avatar
Marco Govoni committed
19
20
set_dirs.o \
west_print_clocks.o \
Marco Govoni's avatar
Marco Govoni committed
21
22
23
exx_go.o \
exx_ungo.o \
report_dynamical_memory.o \
24
parse_command_arguments.o \
25
26
class_bz_grid.o \
types_bz_grid.o \
Marco Govoni's avatar
Marco Govoni committed
27
28
29
30
31
32
33
34
35
36
37
38
do_setup.o \
linear_algebra_kernel.o \
human_readable_time.o \
destroy_pw_arrays.o \
init_pw_arrays.o \
clean_scratchfiles.o \
set_nbndocc.o \
get_alpha_pv.o \
set_iks_l2g.o \
v_x.o \
gradcorr_x.o \
west_environment.o \
39
set_npwq.o \
Marco Govoni's avatar
Marco Govoni committed
40
41
42
43
44
set_eprec.o \
read_pwout.o \
bar.o  

PWOBJS = ../../PW/src/libpw.a
45
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

TLDEPS= bindir mods libs pw

all : title tldeps libtools.a

tldeps:
	test -n "$(TLDEPS)" && ( cd ../.. ; $(MAKE) $(MFLAGS) $(TLDEPS) || exit 1) || :

libtools.a : $(TOOLS_OBJS)
	$(AR) $(ARFLAGS) $@ $?
	$(RANLIB) $@

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

title :
	@echo "              "
	@echo "##############"
	@echo "### Tools ####"
	@echo "##############"
	@echo "              "

include make.depend