update makefiles in lib/linalg to support .F files in addition to .f files

This commit is contained in:
Axel Kohlmeyer
2018-06-15 15:35:34 -04:00
parent f312fbfe32
commit fe483a769f
2 changed files with 8 additions and 6 deletions

View File

@ -7,13 +7,14 @@ SHELL = /bin/sh
# ------ FILES ------
SRC = $(wildcard *.f)
SRC1 = $(wildcard *.F)
FILES = $(SRC) Makefile.* README
FILES = $(SRC) $(SRC1) Makefile.* README
# ------ DEFINITIONS ------
LIB = liblinalg.a
OBJ = $(SRC:.f=.o)
OBJ = $(SRC:.f=.o) $(SRC1:.F=.o)
# ------ SETTINGS ------
@ -34,7 +35,7 @@ lib: $(OBJ)
# ------ COMPILE RULES ------
%.o:%.F
$(F90) $(F90FLAGS) -c $<
$(FC) $(FFLAGS) -c $<
%.o:%.f
$(FC) $(FFLAGS) -c $<

View File

@ -7,13 +7,14 @@ SHELL = /bin/sh
# ------ FILES ------
SRC = $(wildcard *.f)
SRC1 = $(wildcard *.F)
FILES = $(SRC) Makefile.* README
FILES = $(SRC) $(SRC1) Makefile.* README
# ------ DEFINITIONS ------
LIB = liblinalg.a
OBJ = $(SRC:.f=.o)
OBJ = $(SRC:.f=.o) $(SRC1:.F=.o)
# ------ SETTINGS ------
@ -34,7 +35,7 @@ lib: $(OBJ)
# ------ COMPILE RULES ------
%.o:%.F
$(F90) $(F90FLAGS) -c $<
$(FC) $(FFLAGS) -c $<
%.o:%.f
$(FC) $(FFLAGS) -c $<