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
|
#
# This file is part of the SIESTA package.
#
# Copyright (c) Fundacion General Universidad Autonoma de Madrid:
# E.Artacho, J.Gale, A.Garcia, J.Junquera, P.Ordejon, D.Sanchez-Portal
# and J.M.Soler, 1996-2006.
#
# Use of this software constitutes agreement with the full conditions
# given in the SIESTA license, as signed by all legitimate users.
#
# Makefile for PDOS XML processing
#
# The VPATH directive below helps to re-use f2kcli.F90 from the top Src.
# Other points to note, until we switch to a better building system:
#
# The arch.make file is supposed to be in $(OBJDIR). This is normally
# the top Obj, but if you are using architecture-dependent build directories
# you might want to change this. (If you do not understand this, you do not
# need to change anything. Power users can do "make OBJDIR=Whatever".)
#
# If your main Siesta build used an mpi compiler, you might need to
# define an FC_SERIAL symbol in your top arch.make, to avoid linking
# in the mpi libraries even if we explicitly undefine MPI below.
#
#
.SUFFIXES:
.SUFFIXES: .f .F .o .a .f90 .F90
#
.PHONY: xmlparser clean
#
default: pdosxml
OBJDIR=Obj
VPATH=../../Src
#
include ../../$(OBJDIR)/arch.make
#
FC_DEFAULT:=$(FC)
FC_SERIAL?=$(FC_DEFAULT)
FC:=$(FC_SERIAL) # Make it non-recursive
#
INCFLAGS:=$(INCFLAGS) -I../../$(OBJDIR)/xmlparser # To pick up mod files
#
LIBS= ../../$(OBJDIR)/libxmlparser.a
#
OBJS= m_orbital_chooser.o m_pdos.o f2kcli.o pdosxml.o
#
pdosxml: xmlparser $(OBJS)
$(FC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
#
clean:
rm -f *.o pdosxml *.o *.*d
#
xmlparser:
@echo "Making sure that the xmlparser library is compiled..."
(cd ../../$(OBJDIR)/xmlparser ; make "VPATH=$(VPATH)/xmlparser")
#
|