I started grouping similar modules in subfolders to ease the expansion process.
7 lines
196 B
Makefile
7 lines
196 B
Makefile
all: moduleAverage.o moduleOutput.o
|
|
|
|
moduleAverage.o: moduleOutput.o moduleAverage.f90
|
|
$(FC) $(FCFLAGS) -c $(subst .o,.f90,$@) -o $(OBJDIR)/$@
|
|
|
|
%.o: %.f90
|
|
$(FC) $(FCFLAGS) -c $< -o $(OBJDIR)/$@
|