/[VRac]/Z80/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 /Z80/Makefile.PL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations)
Sun Aug 5 01:36:37 2007 UTC (16 years, 8 months ago) by dpavlin
File MIME type: text/plain
File size: 1432 byte(s)
cleanup build system
1 dpavlin 112 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    
6 dpavlin 129 my $Z80_OPTIONS = '-DEXECZ80 -DFAST_RDOP -DLSB_FIRST ';
7 dpavlin 112 $Z80_OPTIONS .= '-DDEBUG ';
8    
9     my $run = './t/05-Z80.t -d';
10    
11     WriteMakefile(
12     NAME => 'Z80',
13     VERSION_FROM => 'Z80.pm', # finds $VERSION
14     PREREQ_PM => {
15     'Class::Accessor' => 0,
16     'Data::Dump' => 0,
17     'Carp' => 0,
18     'Test::Exception' => 0,
19     }, # e.g., Module::Name => 1.1
20     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
21     (ABSTRACT_FROM => 'Z80.pm', # retrieve abstract from module
22     AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
23     LIBS => [''], # e.g., '-lm'
24     DEFINE => '',
25     INC => '-I. -I./src/', # e.g., '-I. -I/usr/include/other'
26     # Un-comment this if you add C files to link with later:
27     OBJECT => '$(O_FILES) cpu.o', # link all the C files too
28     OPTIMIZE => '-g',
29     depend => {
30     # Z80 options
31     'cpu$(OBJ_EXT)' => qq{src/Z80.c\n\t\$(CC) \$(CCCDLFLAGS) -c -o cpu\$(OBJ_EXT) $Z80_OPTIONS src/Z80.c},
32     },
33     clean => {
34     'FILES' => 'html',
35     },
36     );
37    
38     sub MY::postamble {
39     return <<"MAKE_FRAG";
40    
41     run: all
42 dpavlin 124 perl -Mblib -MGalaksija -le 'Galaksija->new->run;'
43 dpavlin 112
44     gdb: all
45     gdb -x run --args perl $run
46    
47     html: all
48     test -d html || mkdir html
49     allpod2xhtml.pl \$(INST_LIB) html
50    
51     MAKE_FRAG
52     }
53    

  ViewVC Help
Powered by ViewVC 1.1.26