Skip to content

Commit

Permalink
Added option for F90 files (SHYFEM-model#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobj authored and georgu committed Jul 1, 2019
1 parent 75b8670 commit d25b561
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fembin/mkdp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#
# 26.02.2015 ggu adapted for f90 files
# 04.01.2016 ggu sort targets and dependencies alphabetically
# 24.06.2019 mbj adapted for F90 files
#
#------------------------------------------------------

Expand Down Expand Up @@ -98,6 +99,7 @@ sub handle_file {
my $fileo = $file;
$fileo =~ s/\.f$/.o/;
$fileo =~ s/\.f90$/.o/;
$fileo =~ s/\.F90$/.o/;
my $line = "$module.mod: $fileo";
$line = "$::moddir/$line" if $::moddir;
push(@$rlines,$line);
Expand Down Expand Up @@ -193,6 +195,7 @@ sub write_inc {

$file =~ s/\.[fc]$/.o:/;
$file =~ s/\.f90$/.o:/;
$file =~ s/\.F90$/.o:/;
foreach my $f (@list) {
$file .= " $f";
}
Expand Down

0 comments on commit d25b561

Please sign in to comment.