SHELL=  /bin/sh
ISIZE = 4
RSIZE = 8
COMP=   ifort
FFLAGS= -O2 -g -check bounds -check format -i$(ISIZE) -r$(RSIZE)

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

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

CMD =   supvit_g2

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

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