summaryrefslogtreecommitdiff
path: root/ACE/bin/DependencyGenerator/GNUDependencyWriter.pm
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 14:51:23 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 14:51:23 +0000
commit99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch)
treebda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/bin/DependencyGenerator/GNUDependencyWriter.pm
parentc4078c377d74290ebe4e66da0b4975da91732376 (diff)
downloadATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz
undoing accidental deletion
Diffstat (limited to 'ACE/bin/DependencyGenerator/GNUDependencyWriter.pm')
-rw-r--r--ACE/bin/DependencyGenerator/GNUDependencyWriter.pm33
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/bin/DependencyGenerator/GNUDependencyWriter.pm b/ACE/bin/DependencyGenerator/GNUDependencyWriter.pm
new file mode 100644
index 00000000000..dd59ce6b803
--- /dev/null
+++ b/ACE/bin/DependencyGenerator/GNUDependencyWriter.pm
@@ -0,0 +1,33 @@
+package GNUDependencyWriter;
+
+# ************************************************************
+# Description : Generates GNU Makefile dependencies.
+# Author : Chad Elliott
+# Create Date : 2/10/2002
+# ************************************************************
+
+# ************************************************************
+# 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
+ return '$(sort ' . join(' ', @$objects). "): \\\n "
+ . join(" \\\n ", sort @$files) . "\n";
+}
+
+
+1;