--- M6502/Makefile.PL 2007/07/30 17:32:41 29 +++ M6502/Makefile.PL 2007/07/31 09:37:01 42 @@ -15,20 +15,21 @@ (ABSTRACT_FROM => 'M6502.pm', # retrieve abstract from module AUTHOR => 'Dobrica Pavlinusic ') : ()), LIBS => [''], # e.g., '-lm' - DEFINE => '', # e.g., '-DHAVE_SOMETHING' + DEFINE => '-DEXEC6502', INC => '-I.', # e.g., '-I. -I/usr/include/other' # Un-comment this if you add C files to link with later: OBJECT => '$(O_FILES)', # link all the C files too + OPTIMIZE => '-g', ); sub MY::postamble { return <<'MAKE_FRAG'; -orao: $(INST_ARCHAUTODIR)/$(NAME).$(SO) - $(CC) -o orao perl.o $(INST_ARCHAUTODIR)/$(NAME).$(SO) `perl -MExtUtils::Embed -e ldopts` +emulator: $(INST_ARCHAUTODIR)/$(NAME).$(SO) config.h perl.c + $(CC) -o emulator perl.o $(INST_ARCHAUTODIR)/$(NAME).$(SO) `perl -MExtUtils::Embed -e ldopts` -run: orao - ( ./orao 2>&1 ) | head -30 +run: emulator + ( ./emulator 2>&1 ) | tee log | head -50 MAKE_FRAG }