Recognize the lexer and parser sources.

This commit is contained in:
des 2015-01-03 00:31:52 +00:00
parent 9732e3fe32
commit 5606bb1e5a

View File

@ -51,7 +51,11 @@ sub get_sources($) {
close(MAKE);
chomp($objs);
$objs =~ s/\.l?o\b/.c/g;
return (split(/\s+/, $objs));
return map {
/lexer/ && s/c$/l/;
/parser/ && s/c$/y/;
$_;
} split(/\s+/, $objs);
}
MAIN:{
@ -70,4 +74,3 @@ MAIN:{
}
1;