Merge pull request #212 from DOCGroup/jwillemsen-patch-1
[MPC.git] / modules / Depgen / NMakeObjectGenerator.pm
blobe718fa3441258049add87a104a3ebef469d12d4a
1 # ************************************************************
2 # Description : Generates object files for NMake Makefiles.
3 # Author : Chad Elliott
4 # Create Date : 5/23/2003
5 # ************************************************************
7 package WinProjectBaseEx;
9 use WinProjectBase;
10 use DirectoryManager;
12 use vars qw(@ISA);
13 @ISA = qw(WinProjectBase DirectoryManager);
15 sub new {
16 return bless {}, $_[0];
22 package NMakeObjectGenerator;
24 # ************************************************************
25 # Pragmas
26 # ************************************************************
28 use strict;
29 use ObjectGenerator;
31 use vars qw(@ISA);
32 @ISA = qw(ObjectGenerator);
34 # ************************************************************
35 # Data Section
36 # ************************************************************
38 my $wpb = new WinProjectBaseEx();
40 # ************************************************************
41 # Subroutine Section
42 # ************************************************************
44 sub process {
45 my $noext = $wpb->translate_directory($_[1]);
46 $noext =~ s/\.[^\.]+$//o;
47 return [ "\"\$(INTDIR)\\$noext.obj\"" ];