1. petsc
  2. PETSc
  3. petsc

Commits

Jed Brown  committed b829767

make: teach gmakefile about F90 modules

  • Participants
  • Parent commits 17e1e75
  • Branches master

Comments (0)

Files changed (1)

File gmakefile

View file
 	@$(PETSC_GENDEPS.cu) $< -o $(@:%.o=%.d) # Generate the dependencies for later
 
 $(OBJDIR)/%.o : %.F | $$(@D)/.DIR
-	$(PETSC_COMPILE.F) $< -o $@
+	$(PETSC_COMPILE.F) $< -o $@ $(FC_MODULE_OUTPUT_FLAG)$(PETSC_ARCH)/include
 
 %/.DIR :
 	@mkdir -p $(@D)
 .PHONY: clean all print
 
 clean:
-	rm -rf $(OBJDIR) $(libpetsc_shared) $(libpetscpkgs_shared) $(PETSC_ARCH)/conf/files
+	rm -rf $(OBJDIR) $(libpetsc_shared) $(libpetscpkgs_shared) ${PETSC_ARCH}/include/*.mod $(PETSC_ARCH)/conf/files
 
 # make print VAR=the-variable
 print: