/[VRac]/M6502/Makefile.PL
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /M6502/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 82 by dpavlin, Wed Aug 1 21:40:17 2007 UTC revision 95 by dpavlin, Thu Aug 2 13:19:19 2007 UTC
# Line 6  use ExtUtils::MakeMaker; Line 6  use ExtUtils::MakeMaker;
6  my $M6502_OPTIONS = '-DEXEC6502 -DFAST_RDOP -DLSB_FIRST ';  my $M6502_OPTIONS = '-DEXEC6502 -DFAST_RDOP -DLSB_FIRST ';
7  $M6502_OPTIONS .= '-DDEBUG ';  $M6502_OPTIONS .= '-DDEBUG ';
8    
9    my $run = './t/05-M6502.t -d';
10    
11  WriteMakefile(  WriteMakefile(
12      NAME              => 'M6502',      NAME              => 'M6502',
13      VERSION_FROM      => 'M6502.pm', # finds $VERSION      VERSION_FROM      => 'M6502.pm', # finds $VERSION
# Line 30  WriteMakefile( Line 32  WriteMakefile(
32                  # M6502 options                  # M6502 options
33                  'cpu$(OBJ_EXT)' => qq{src/M6502.c\n\t\$(CC) \$(CCCDLFLAGS) -c -o cpu\$(OBJ_EXT) $M6502_OPTIONS src/M6502.c},                  'cpu$(OBJ_EXT)' => qq{src/M6502.c\n\t\$(CC) \$(CCCDLFLAGS) -c -o cpu\$(OBJ_EXT) $M6502_OPTIONS src/M6502.c},
34          },          },
35  #       clean => {          clean => {
36  #               'FILES' => 'cpu.o',                  'FILES' => 'html',
37  #       },          },
38  );  );
39    
40  sub MY::postamble {  sub MY::postamble {
41          return <<'MAKE_FRAG';          return <<"MAKE_FRAG";
   
 emulator: $(INST_ARCHAUTODIR)/$(NAME).$(SO) config.h perl.c  
         $(CC) -o emulator perl.o $(INST_ARCHAUTODIR)/$(NAME).$(SO) `perl -MExtUtils::Embed -e ldopts`  
42    
43  run:  run: all
44          perl -Mblib -MArch -le 'print Orao->new->boot;'          perl -Mblib -MOrao -le 'Orao->new->run;'
45    
46  gdb:  gdb: all
47          gdb -x run --args perl t/10-orao.t          gdb -x run --args perl $run
48    
49  html: all  html: all
50          test -d html || mkdir html          test -d html || mkdir html
51          allpod2xhtml.pl $(INST_LIB) html          allpod2xhtml.pl \$(INST_LIB) html
52    
53  MAKE_FRAG  MAKE_FRAG
54  }  }

Legend:
Removed from v.82  
changed lines
  Added in v.95

  ViewVC Help
Powered by ViewVC 1.1.26