#   makefile for the post processing program         plot
# 

include ../make.inc
################################################################
#
#    add the name of  YOUR  compiler/operating system to ../make.inc
#    and modify the compiler options FFLAGS  ---   if necessary   
#
#    NOTE: the executable will be copied to the parent 
#          directory (../) of the current working directory
#
################################################################

RM = rm -f
CP = cp

BINDIR = ..

.SUFFIXES: .o .f

.f.o:
	$(FC) $(FFLAGS) -c $<

all: plot

# program modules used 

PLOT =  mod_plot.o inigaubrd.o plotlccurves.o  scalen.o plotclxps.o \
broaden.o inilorbrd.o plotdos.o plotnrxas.o plotrxes.o  \
plotkapdos.o plotpolar.o plotbsf.o plotnraesaps.o \
plot.o plotrxas.o  rdhead.o rdhead1.o wcorehole.o   txttext.o \
cpr4vec.o plotband.o plotxps.o vecgaubrd.o xmgr.o \
fillup.o plotcurves.o rdexpdata.o veclorbrd.o  xraymoke.o \
findextr.o  plotexp.o rdrxas.o ylag.o plotsprvbxps.o \
kwposfil.o scaninp.o table.o cnvtouc.o\
plotsprcvvaes.o plotcompton.o plotsprvbarp.o plotbsf_spol.o\
creategnuplotbsf.o createxmv.o \
plotspec.o


plot: $(PLOT)
	$(FC) $(LFLAGS) $(LIBS) -o $@ $(PLOT)
	$(CP) $@ $(BINDIR)/plot$(VERS)

clean:
	$(RM) *.o plot $(BINDIR)/plot$(VERS) 

reset:
	$(RM) *.o plot $(BINDIR)/plot$(VERS) 
