/[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

Annotation of /M6502/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 84 - (hide annotations)
Wed Aug 1 22:01:15 2007 UTC (16 years, 9 months ago) by dpavlin
File MIME type: text/plain
File size: 1467 byte(s)
commented enough code so that my minimal example doesn't segfault
1 dpavlin 29 use 5.008;
2     use ExtUtils::MakeMaker;
3     # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4     # the contents of the Makefile that is written.
5 dpavlin 81
6     my $M6502_OPTIONS = '-DEXEC6502 -DFAST_RDOP -DLSB_FIRST ';
7     $M6502_OPTIONS .= '-DDEBUG ';
8    
9 dpavlin 29 WriteMakefile(
10     NAME => 'M6502',
11     VERSION_FROM => 'M6502.pm', # finds $VERSION
12     PREREQ_PM => {
13     'ExtUtils::Embed' => 0,
14     'Class::Accessor' => 0,
15     'Data::Dump' => 0,
16     'Carp' => 0,
17 dpavlin 57 'Test::Exception' => 0,
18 dpavlin 73 'SDL' => '2.1.2',
19 dpavlin 29 }, # e.g., Module::Name => 1.1
20     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
21     (ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module
22     AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
23     LIBS => [''], # e.g., '-lm'
24 dpavlin 81 DEFINE => '',
25 dpavlin 79 INC => '-I. -I./src/', # e.g., '-I. -I/usr/include/other'
26 dpavlin 29 # Un-comment this if you add C files to link with later:
27 dpavlin 80 OBJECT => '$(O_FILES) cpu.o', # link all the C files too
28 dpavlin 33 OPTIMIZE => '-g',
29 dpavlin 80 depend => {
30 dpavlin 81 # M6502 options
31     'cpu$(OBJ_EXT)' => qq{src/M6502.c\n\t\$(CC) \$(CCCDLFLAGS) -c -o cpu\$(OBJ_EXT) $M6502_OPTIONS src/M6502.c},
32 dpavlin 80 },
33     # clean => {
34     # 'FILES' => 'cpu.o',
35     # },
36 dpavlin 29 );
37    
38     sub MY::postamble {
39     return <<'MAKE_FRAG';
40    
41 dpavlin 82 run:
42     perl -Mblib -MArch -le 'print Orao->new->boot;'
43 dpavlin 29
44 dpavlin 82 gdb:
45     gdb -x run --args perl t/10-orao.t
46    
47 dpavlin 57 html: all
48     test -d html || mkdir html
49     allpod2xhtml.pl $(INST_LIB) html
50    
51 dpavlin 29 MAKE_FRAG
52     }
53    

  ViewVC Help
Powered by ViewVC 1.1.26