Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / bin / DependencyGenerator / GNUDependencyWriter.pm
blobdd59ce6b80388cc2e0f48606ef3f81d8c3cad17d
1 package GNUDependencyWriter;
3 # ************************************************************
4 # Description : Generates GNU Makefile dependencies.
5 # Author : Chad Elliott
6 # Create Date : 2/10/2002
7 # ************************************************************
9 # ************************************************************
10 # Pragmas
11 # ************************************************************
13 use strict;
14 use DependencyWriter;
16 use vars qw(@ISA);
17 @ISA = qw(DependencyWriter);
19 # ************************************************************
20 # Subroutine Section
21 # ************************************************************
23 sub process {
24 my($objects) = $_[1];
25 my($files) = $_[2];
27 ## Sort the dependencies to make them reproducible
28 return '$(sort ' . join(' ', @$objects). "): \\\n "
29 . join(" \\\n ", sort @$files) . "\n";