10 |
'Class::Accessor' => 0, |
'Class::Accessor' => 0, |
11 |
'Data::Dump' => 0, |
'Data::Dump' => 0, |
12 |
'Carp' => 0, |
'Carp' => 0, |
13 |
|
'Test::Exception' => 0, |
14 |
}, # e.g., Module::Name => 1.1 |
}, # e.g., Module::Name => 1.1 |
15 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
16 |
(ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module |
(ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module |
17 |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
18 |
LIBS => [''], # e.g., '-lm' |
LIBS => [''], # e.g., '-lm' |
19 |
DEFINE => '', # e.g., '-DHAVE_SOMETHING' |
DEFINE => '-DEXEC6502 -DFAST_RDOP -DLSB_FIRST', # M6502 options |
20 |
INC => '-I.', # e.g., '-I. -I/usr/include/other' |
INC => '-I.', # e.g., '-I. -I/usr/include/other' |
21 |
# Un-comment this if you add C files to link with later: |
# Un-comment this if you add C files to link with later: |
22 |
OBJECT => '$(O_FILES)', # link all the C files too |
OBJECT => '$(O_FILES)', # link all the C files too |
23 |
|
OPTIMIZE => '-g', |
24 |
); |
); |
25 |
|
|
26 |
sub MY::postamble { |
sub MY::postamble { |
27 |
return <<'MAKE_FRAG'; |
return <<'MAKE_FRAG'; |
28 |
|
|
29 |
orao: $(INST_ARCHAUTODIR)/$(NAME).$(SO) |
emulator: $(INST_ARCHAUTODIR)/$(NAME).$(SO) config.h perl.c |
30 |
$(CC) -o orao perl.o $(INST_ARCHAUTODIR)/$(NAME).$(SO) `perl -MExtUtils::Embed -e ldopts` |
$(CC) -o emulator perl.o $(INST_ARCHAUTODIR)/$(NAME).$(SO) `perl -MExtUtils::Embed -e ldopts` |
31 |
|
|
32 |
run: orao |
run: emulator |
33 |
( ./orao 2>&1 ) | head -30 |
#( ./emulator 2>&1 ) | tee log | head -50 |
34 |
|
./emulator |
35 |
|
|
36 |
|
html: all |
37 |
|
test -d html || mkdir html |
38 |
|
allpod2xhtml.pl $(INST_LIB) html |
39 |
|
|
40 |
MAKE_FRAG |
MAKE_FRAG |
41 |
} |
} |