summaryrefslogtreecommitdiff
path: root/ACE/bin/DependencyGenerator/GNUDependencyWriter.pm
diff options
context:
space:
mode:
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;