# Makefile created by mkmf $Id: mkmf,v 1.1 2003/01/11 15:56:08 baroni Exp $ 

include /home/degironc/Desktop/Scuola_CECAM_2010/LAB_ES/include/make.inc

all: cpmd
utilities.o: utilities.f90 constants.o
	$(FC) $(FFLAGS) -c	utilities.f90
posver.o: posver.f90 mdmodule.o constants.o cp.o pw_types.o utilities.o
	$(FC) $(FFLAGS) -c	posver.f90
hamiltonian.o: hamiltonian.f90 constants.o utilities.o scf.o pw_types.o reciprocal_lattice.o
	$(FC) $(FFLAGS) -c	hamiltonian.f90
electron_configuration_read.o: electron_configuration_read.f90 constants.o pw_types.o structure.o reciprocal_lattice.o appelbaum_and_hamann.o energy_bands.o mdmodule.o
	$(FC) $(FFLAGS) -c	electron_configuration_read.f90
constants.o: constants.f90
	$(FC) $(FFLAGS) -c	constants.f90
ewald.o: ewald.f90 constants.o utilities.o structure.o reciprocal_lattice.o
	$(FC) $(FFLAGS) -c	ewald.f90
functionals.o: functionals.f90 constants.o utilities.o
	$(FC) $(FFLAGS) -c	functionals.f90
appelbaum_and_hamann.o: appelbaum_and_hamann.f90 constants.o utilities.o reciprocal_lattice.o structure.o
	$(FC) $(FFLAGS) -c	appelbaum_and_hamann.f90
cp.o: cp.f90 constants.o pw_types.o structure.o reciprocal_lattice.o energy_bands.o hamiltonian.o scf.o
	$(FC) $(FFLAGS) -c	cp.f90
structure.o: structure.f90 constants.o utilities.o
	$(FC) $(FFLAGS) -c	structure.f90
lapack_wrap.o: lapack_wrap.f90 constants.o utilities.o
	$(FC) $(FFLAGS) -c	lapack_wrap.f90
iterative.o: iterative.f90 constants.o pw_types.o lapack_wrap.o hamiltonian.o utilities.o
	$(FC) $(FFLAGS) -c	iterative.f90
set_vbare.o: set_vbare.f90 constants.o pw_types.o structure.o
	$(FC) $(FFLAGS) -c	set_vbare.f90
scf.o: scf.f90 constants.o utilities.o pw_types.o structure.o functionals.o ewald.o
	$(FC) $(FFLAGS) -c	scf.f90
plot_field.o: plot_field.f90 constants.o pw_types.o utilities.o
	$(FC) $(FFLAGS) -c	plot_field.f90
pw_types.o: pw_types.f90 constants.o utilities.o reciprocal_lattice.o fourier.o
	$(FC) $(FFLAGS) -c	pw_types.f90
fourier.o: fourier.f90 constants.o utilities.o
	$(FC) $(FFLAGS) -c	fourier.f90
energy_bands.o: energy_bands.f90 constants.o pw_types.o utilities.o lapack_wrap.o scf.o hamiltonian.o iterative.o reciprocal_lattice.o structure.o
	$(FC) $(FFLAGS) -c	energy_bands.f90
mdmodule.o: mdmodule.f90 constants.o pw_types.o
	$(FC) $(FFLAGS) -c	mdmodule.f90
reciprocal_lattice.o: reciprocal_lattice.f90 constants.o utilities.o structure.o
	$(FC) $(FFLAGS) -c	reciprocal_lattice.f90
SRC = utilities.f90 posver.f90 hamiltonian.f90 electron_configuration_read.f90 constants.f90 ewald.f90 functionals.f90 appelbaum_and_hamann.f90 cp.f90 structure.f90 lapack_wrap.f90 iterative.f90 set_vbare.f90 scf.f90 plot_field.f90 pw_types.f90 fourier.f90 energy_bands.f90 mdmodule.f90 reciprocal_lattice.f90
OBJ = utilities.o posver.o hamiltonian.o electron_configuration_read.o constants.o ewald.o functionals.o appelbaum_and_hamann.o cp.o structure.o lapack_wrap.o iterative.o set_vbare.o scf.o plot_field.o pw_types.o fourier.o energy_bands.o mdmodule.o reciprocal_lattice.o
clean: neat
	-rm -f .cppdefs $(OBJ) cpmd
neat:
	-rm -f $(TMPFILES)
TAGS: $(SRC)
	etags $(SRC)
tags: $(SRC)
	ctags $(SRC)
cpmd: $(OBJ)
	$(LD) $(OBJ) -o cpmd $(LDFLAGS)
