Last active
July 24, 2017 08:40
-
-
Save jflopezfernandez/f4d4af64069b4628dc7bd756628c2a5e to your computer and use it in GitHub Desktop.
Fortran Makefile [Debug]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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