SHELL=  /bin/sh
ISIZE = 4
RSIZE = 8
#COMP=   ifort
COMP= ftn
#FFLAGS= -O2 -g -check bounds -check format -i$(ISIZE) -r$(RSIZE)
FFLAGS= -O3 -g -traceback -convert big_endian -i$(ISIZE) -r$(RSIZE)

supvit_g1:     supvit_main_g1.f supvit_modules.o
	@echo " "
	@echo "  Compiling program that sorts and updates vitals records...."
	$(COMP) $(FFLAGS) supvit_modules.o supvit_main_g1.f $(LIBS_SUP) -o supvit_g1
	@echo " "

supvit_modules.o:   supvit_modules.f
	@echo " "
	@echo "  Compiling the modules....."
	$(COMP) -c supvit_modules.f -o supvit_modules.o
	@echo " "

CMD =   supvit_g1

clean:
	-rm -f  *.o  *.mod

install:
	mv $(CMD) ../../exec/$(CMD)