#!/bin/bash #the compile flags FFLAGS="-Wall -Wextra -pedantic -fcheck=all -fcheck=do -fwhole-file -funroll-loops -ftree-vectorize -Wsurprising -Wconversion-extra" #compile the fortran files gfortran -std=f2008 $FFLAGS -c opengl_kinds.f90 #must be first one gfortran -std=f2008 $FFLAGS -c opengl_freeglut.f90 gfortran -std=f2008 $FFLAGS -c opengl_glu.f90 gfortran -std=f2008 $FFLAGS -c opengl_gl.f90 gcc -Wall -Wextra -pedantic -I/usr/include -c glut_fonts.c