15 |
(ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module |
(ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module |
16 |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
17 |
LIBS => [''], # e.g., '-lm' |
LIBS => [''], # e.g., '-lm' |
18 |
DEFINE => '', # e.g., '-DHAVE_SOMETHING' |
DEFINE => '-DEXEC6502', |
19 |
INC => '-I.', # e.g., '-I. -I/usr/include/other' |
INC => '-I.', # e.g., '-I. -I/usr/include/other' |
20 |
# Un-comment this if you add C files to link with later: |
# Un-comment this if you add C files to link with later: |
21 |
OBJECT => '$(O_FILES)', # link all the C files too |
OBJECT => '$(O_FILES)', # link all the C files too |
25 |
sub MY::postamble { |
sub MY::postamble { |
26 |
return <<'MAKE_FRAG'; |
return <<'MAKE_FRAG'; |
27 |
|
|
28 |
emulator: $(INST_ARCHAUTODIR)/$(NAME).$(SO) config.h |
emulator: $(INST_ARCHAUTODIR)/$(NAME).$(SO) config.h perl.c |
29 |
$(CC) -o emulator 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` |
30 |
|
|
31 |
run: emulator |
run: emulator |
32 |
( ./emulator 2>&1 ) | head -50 |
( ./emulator 2>&1 ) | tee log | head -50 |
33 |
|
|
34 |
MAKE_FRAG |
MAKE_FRAG |
35 |
} |
} |