Recognize the lexer and parser sources.
This commit is contained in:
parent
dd667a0656
commit
7ca2a8903f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user