#DEBUG   = -nbs -C -d2
#FFLAGC  = -g -Rb -Rc -Rs
#FFLAGC  = -g -Rb -Rc -W80
#FFLAGC  = -g -m64
#FFLAGC  = -O
opt     = 
#profile = -stack:fa00000
obj     = curr_gf
ildir   =  
#LIBS    = -L/Applications/Absoft15.0/lib64/ -lU77
input   = 

CFLAGC  = 

#FCOMPL  = af90  $(DEBUG) 
#FCOMPL  = af77  $(DEBUG) 
#FCOMPL  = ifort -Vaxlib $(DEBUG) 
#FCOMPL  = ifc -Vaxlib $(DEBUG) 
FCOMPL  = gfortran 
CCOMPL  = 
# list of other directories for source files
.PREFIXES: .

.SUFFIXES:
.SUFFIXES: .f90 .c .s .o .fil

.f90.o:
	$(FCOMPL) -c $(ildir) $(FFLAGC) $(opt) $(profile) $<

OBJECTS = prepar_surface.o calculation.o current.o

INLINE  = 

APPLIC: $(INLINE) $(OBJECTS)  $(OBJECTS1)  $(OBJECTS2)  $(OBJECTS3)
	$(FCOMPL) $(FFLAGC) $(profile) -o $(obj)  $(OBJECTS)  $(LIBS)

test:
	@echo START TEST ON $(input) , opt = $(opt)
	@echo start test on $(input) , opt = $(opt) >> TIME.LOG
	@date >> TIME.LOG
	@( time $(obj) < $(input) > $(input).out ) 2>> TIME.LOG
	@echo - - - - - - - - - - - >> TIME.LOG

clean:
	@rm -f $(INLINE) $(OBJECTS) $(OBJECTS1) $(OBJECTS2) $(OBJECTS3) *.mod

# include file dependencies

current.o : prepar_surface.f90
calculation : prepar_surface.f90


