Recognize the lexer and parser sources.

This commit is contained in:
Dag-Erling Smørgrav 2015-01-03 00:31:52 +00:00
parent dd667a0656
commit 7ca2a8903f

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;