Skip to content
Snippets Groups Projects
makefile 425 B
Newer Older
  • Learn to ignore specific revisions
  • Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    RUN = drag.exe
    COMPILER ?= intel
    FC_KEYS ?= 
    
    # set compiler
    ifeq ($(COMPILER),intel)
      FC = ifort
    endif
    ifeq ($(COMPILER),gnu)
      FC = gfortran
    endif 
    
    
    Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    OBJ_F90 = inputdata.o param.o prmt.o
    
    Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    OBJ_F = DRAG.o drag3.o
    
    Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    OBJ = $(OBJ_F90) $(OBJ_F)
    
    Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    
    
    Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    $(RUN): $(OBJ)
    	$(FC) $(FC_KEYS) $(OBJ) -o $(RUN)
    
    Evgeny Mortikov's avatar
    Evgeny Mortikov committed
    
    $(OBJ_F90): %.o: %.f90
    	$(FC) $(FC_KEYS) -o $@ -c $<
    
    $(OBJ_F): %.o: %.F
    	$(FC) $(FC_KEYS) -o $@ -c $<
    
    clean: 
    	rm -f $(OBJ) $(RUN)
    
    Victoria Suiazova's avatar
    Victoria Suiazova committed