1. petsc
  2. PETSc
  3. petsc

Commits

Jed Brown  committed 8c71473 Merge

Merge branch 'balay/gnumake-missing-ftn-mod-out-flg' into jed/gnumake

* balay/gnumake-missing-ftn-mod-out-flg:
gmake: workarround if FC_MODULE_OUTPUT_FLAG is not found

  • Participants
  • Parent commits f1b431d, 4bd7509
  • Branches master

Comments (0)

Files changed (1)

File gmakefile

View file
  • Ignore whitespace
 	@$(PETSC_GENDEPS.cu) $< -o $(@:%.o=%.d) # Generate the dependencies for later
 
 $(OBJDIR)/%.o : %.F | $$(@D)/.DIR
+ifeq ($(FC_MODULE_OUTPUT_FLAG),)
+	cd $(PETSC_ARCH)/include && $(FC) -c $(FC_FLAGS) $(FFLAGS) $(FCPPFLAGS) $(FC_DEPFLAGS) ../../$< -o ../../$@
+else
 	$(PETSC_COMPILE.F) $< -o $@ $(FC_MODULE_OUTPUT_FLAG)$(PETSC_ARCH)/include
+endif
 
 %/.DIR :
 	@mkdir -p $(@D)