Skip to content

Instantly share code, notes, and snippets.

@jflopezfernandez
Last active July 24, 2017 08:40
Show Gist options
  • Save jflopezfernandez/f4d4af64069b4628dc7bd756628c2a5e to your computer and use it in GitHub Desktop.
Save jflopezfernandez/f4d4af64069b4628dc7bd756628c2a5e to your computer and use it in GitHub Desktop.
Fortran Makefile [Debug]
FC := ifort
CFLAGS :=
LFLAGS :=
SRCS := $(wildcard *.f90)
OBJS := $(patsubst %.f90,%.o,$(SRCS))
PROGRAM := dipgen
$(PROGRAM): $(OBJS)
$(FC) -o $(PROGRAM) $(OBJS)
$(OBJS): $(SRCS)
$(FC) -c $(SRCS)
clean:
rm -rf $(OBJS)
rm -rf $(PROGRAM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment