Skip to content

Commit e061d4e

Browse files
Update NUCCOR Makefile to improve scriptability for automation
1 parent 476ead0 commit e061d4e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Fortran/NUCCOR/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
FC = gfortran -O3 -fopenmp
1+
FC ?= gfortran
2+
FLAGS ?= -O3 -fopenmp
23
objects = mtc_patch.o mtc.o mtc_openmp.o mtc_main.o
34

45
INCLUDE=
56

67
all: ${objects}
7-
${FC} -o mtc.x ${objects}
8+
${FC} ${FLAGS} -o mtc.x ${objects}
89

910
%.o: %.f90
10-
${FC} -c $< ${INCLUDE}
11+
${FC} ${FLAGS} -c $< ${INCLUDE}
1112

1213
%.o: %.F90
13-
${FC} -c $< ${INCLUDE}
14+
${FC} ${FLAGS} -c $< ${INCLUDE}
1415

1516
.PHONY. : clean
1617
clean:

0 commit comments

Comments
 (0)