diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2010-02-24 20:20:21 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2010-02-24 20:20:21 +0000 |
commit | 035b47c1a6985e2b884182ab0f3bb1afa714a48f (patch) | |
tree | 48d75721f242b7a0eb4398a65b672a152bdaa37f /ACE/MPC/modules/Depgen/NMakeObjectGenerator.pm | |
parent | a3894e5127aa8cf1892e717ab30f02e053cdb482 (diff) | |
download | ATCD-ACE+TAO+CIAO-5_7_6_NGC_Patches.tar.gz |
Diffstat (limited to 'ACE/MPC/modules/Depgen/NMakeObjectGenerator.pm')
-rw-r--r-- | ACE/MPC/modules/Depgen/NMakeObjectGenerator.pm | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ACE/MPC/modules/Depgen/NMakeObjectGenerator.pm b/ACE/MPC/modules/Depgen/NMakeObjectGenerator.pm new file mode 100644 index 00000000000..e718fa34412 --- /dev/null +++ b/ACE/MPC/modules/Depgen/NMakeObjectGenerator.pm @@ -0,0 +1,51 @@ +# ************************************************************ +# Description : Generates object files for NMake Makefiles. +# Author : Chad Elliott +# Create Date : 5/23/2003 +# ************************************************************ + +package WinProjectBaseEx; + +use WinProjectBase; +use DirectoryManager; + +use vars qw(@ISA); +@ISA = qw(WinProjectBase DirectoryManager); + +sub new { + return bless {}, $_[0]; +} + +1; + + +package NMakeObjectGenerator; + +# ************************************************************ +# Pragmas +# ************************************************************ + +use strict; +use ObjectGenerator; + +use vars qw(@ISA); +@ISA = qw(ObjectGenerator); + +# ************************************************************ +# Data Section +# ************************************************************ + +my $wpb = new WinProjectBaseEx(); + +# ************************************************************ +# Subroutine Section +# ************************************************************ + +sub process { + my $noext = $wpb->translate_directory($_[1]); + $noext =~ s/\.[^\.]+$//o; + return [ "\"\$(INTDIR)\\$noext.obj\"" ]; +} + + +1; |