diff options
Diffstat (limited to 'src/make.code.deps')
-rw-r--r-- | src/make.code.deps | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/make.code.deps b/src/make.code.deps new file mode 100644 index 0000000..e8ea1b9 --- /dev/null +++ b/src/make.code.deps @@ -0,0 +1,11 @@ +# Main make.code.deps file for thorn TGRtensor -*-Makefile-*- +# $Header$ + +USESTHORNS = + +# Automatically create dependencies for Fortran modules and Fortran includes +define F90_DEPENDENCIES +$(F_DEPEND) $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DFCODE $< $(F_DEPEND_OUT) +$(DEPENDENCY_FIXER) +dir=`pwd`; $(CPP) $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DFCODE $< | $(PERL) $(SRCDIR)/depend.pl - $< $(basename $(notdir $<)).F90.o $(SRCDIR)/ ./ .F90 .F90.o $(USESTHORNS:%=$$dir/../%/) >> $@ || { rm $@; exit 1; } +endef |