/[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 80 - (hide annotations)
Wed Aug 1 15:34:43 2007 UTC (16 years, 9 months ago) by dpavlin
File MIME type: text/plain
File size: 1489 byte(s)
move to XS compilation
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     WriteMakefile(
6     NAME => 'M6502',
7     VERSION_FROM => 'M6502.pm', # finds $VERSION
8     PREREQ_PM => {
9     'ExtUtils::Embed' => 0,
10     'Class::Accessor' => 0,
11     'Data::Dump' => 0,
12     'Carp' => 0,
13 dpavlin 57 'Test::Exception' => 0,
14 dpavlin 73 'SDL' => '2.1.2',
15 dpavlin 29 }, # e.g., Module::Name => 1.1
16     ($] >= 5.005 ? ## Add these new keywords supported since 5.005
17     (ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module
18     AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
19     LIBS => [''], # e.g., '-lm'
20 dpavlin 69 DEFINE => '-DEXEC6502 -DFAST_RDOP -DLSB_FIRST', # M6502 options
21 dpavlin 79 INC => '-I. -I./src/', # e.g., '-I. -I/usr/include/other'
22 dpavlin 29 # Un-comment this if you add C files to link with later:
23 dpavlin 80 OBJECT => '$(O_FILES) cpu.o', # link all the C files too
24 dpavlin 33 OPTIMIZE => '-g',
25 dpavlin 80 depend => {
26     'cpu.o' => qq{src/M6502.c\n\t\$(CC) -c -o cpu.o src/M6502.c},
27     },
28     # clean => {
29     # 'FILES' => 'cpu.o',
30     # },
31 dpavlin 29 );
32    
33     sub MY::postamble {
34     return <<'MAKE_FRAG';
35    
36 dpavlin 42 emulator: $(INST_ARCHAUTODIR)/$(NAME).$(SO) config.h perl.c
37 dpavlin 30 $(CC) -o emulator perl.o $(INST_ARCHAUTODIR)/$(NAME).$(SO) `perl -MExtUtils::Embed -e ldopts`
38 dpavlin 29
39 dpavlin 30 run: emulator
40 dpavlin 44 #( ./emulator 2>&1 ) | tee log | head -50
41     ./emulator
42 dpavlin 29
43 dpavlin 57 html: all
44     test -d html || mkdir html
45     allpod2xhtml.pl $(INST_LIB) html
46    
47 dpavlin 29 MAKE_FRAG
48     }
49    

  ViewVC Help
Powered by ViewVC 1.1.26