diff options
Diffstat (limited to 'ACE/bin/DependencyGenerator/GNUIDLDependencyWriter.pm')
-rw-r--r-- | ACE/bin/DependencyGenerator/GNUIDLDependencyWriter.pm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/bin/DependencyGenerator/GNUIDLDependencyWriter.pm b/ACE/bin/DependencyGenerator/GNUIDLDependencyWriter.pm new file mode 100644 index 00000000000..acdf29547f8 --- /dev/null +++ b/ACE/bin/DependencyGenerator/GNUIDLDependencyWriter.pm @@ -0,0 +1,40 @@ +package GNUIDLDependencyWriter; + +# ************************************************************ +# Description : Generates GNU IDL Makefile dependencies. +# Author : Chip Jones +# Create Date : 11/01/2011 +# $Id$ +# ************************************************************ + +# ************************************************************ +# Pragmas +# ************************************************************ + +use strict; +use DependencyWriter; + +use vars qw(@ISA); +@ISA = qw(DependencyWriter); + +# ************************************************************ +# Subroutine Section +# ************************************************************ + +sub process { + my($objects) = $_[1]; + my($files) = $_[2]; + + ## Sort the dependencies to make them reproducible + if (scalar @$files > 0) { + return '$(sort ' . join(' ', @$objects) . "): \\\n " + . join(" \\\n ", sort @$files) . "\n"; + } + else { + return; + } + +} + + +1; |