#==========================================#
#          Compile run.out                 #
#  Last edited : 2018/10/26 By Yikai HSIEH #
#==========================================#

# for system A
#CC		    = ftn            # Compiler
#FLAGS		= -O3 -parallel -C -mcmodel=medium -shared-intel -fpic -dynamic
# for system B or C
#------------------------------------------
CC          = ifort         # Compiler
FLAGS       = -O3 -parallel -mcmodel=medium -shared-intel 
#------------------------------------------
# Main
#------------------------------------------
PROGRAM     =  run
OBJ         =  run.out       # output file name  
SRC         =  globals.f90 \
			   main.f90 \
               parameter.f90 \
			   fileopen_nowave.f90 \
			   fileopen.f90 \
			   Gmake.f90 \
			   Gmake_nowave.f90 \
		       graph.f90 \

$(PROGRAM):  $(SRC)
	$(CC) $(FLAGS) $(SRC) -o $(OBJ)

clean:
	rm -f *.o *.lst $(PROGRAM)
