Some more amake simplifications

This commit is contained in:
ceriel 1990-11-22 12:56:23 +00:00
parent 32598a47a2
commit 6dbb3945ff
3 changed files with 15 additions and 28 deletions

View file

@ -9,39 +9,17 @@ AMAKELIB = { . , /usr/local/lib/amake } ;
%default grind ; %default grind ;
TOKENNAMES = tokenname.c [ %declare tokenname.c [
gen_tokens, gen_tokens,
cc-dest = symbol2str.c, cc-dest = symbol2str.c,
LL-dest = tokenfile.g LL-dest = tokenfile.g
]; ];
DBS_LLTARGETS = {
db_symtab.c,
DBSpars.c,
DBSpars.h
} ;
DBS_LLSRC = {
db_symtab.g
} ;
CMD_LLTARGETS = {
tokenfile.c,
commands.c,
Lpars.c,
Lpars.h
} ;
CMD_LLSRC = { CMD_LLSRC = {
tokenname.c, tokenname.c,
commands.g commands.g
} ; } ;
GENNEXTSRC = {
file.h,
next.c
} ;
CSRC = { CSRC = {
main.c, main.c,
list.c, list.c,
@ -116,8 +94,14 @@ CFLAGS = {
$DBFLAGS $DBFLAGS
} ; } ;
LINTFLAGS = { DBS_LLTARGETS = {
$INCLUDES db_symtab.c,
DBSpars.c,
DBSpars.h
} ;
DBS_LLSRC = {
db_symtab.g
} ; } ;
%cluster { %cluster {
@ -126,6 +110,10 @@ LINTFLAGS = {
%use LLgen(prefix => DBS) ; %use LLgen(prefix => DBS) ;
} ; } ;
LINTFLAGS = {
$INCLUDES
} ;
%cluster { %cluster {
%targets lint.out[type = lint-output]; %targets lint.out[type = lint-output];
%sources $CSRC + $CMD_LLSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ; %sources $CSRC + $CMD_LLSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ;
@ -134,5 +122,5 @@ LINTFLAGS = {
%cluster { %cluster {
%targets grind[type = program]; %targets grind[type = program];
%sources $CMD_LLSRC + $CSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ; %sources $CSRC + $CMD_LLSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ;
} ; } ;

View file

@ -37,4 +37,3 @@
exec($cmd, args => if($verbose, {'-vvv'}, {}) + $flags + $src); exec($cmd, args => if($verbose, {'-vvv'}, {}) + $flags + $src);
echo({'LLgen ', $src, ' done'}); echo({'LLgen ', $src, ' done'});
}; };

View file

@ -4,7 +4,7 @@ MAKE_TOKCASE = make.tokcase;
%tool gen_tokens ( %tool gen_tokens (
csrc: %in [type = C-src, gen_tokens, persistent]; csrc: %in [type = C-src, gen_tokens, persistent];
tokfile: %out [type = LLgen-src] => get($csrc, LL-dest); tokfile: %out [type = LLgen-src] => get($csrc, LL-dest);
symbols: %out [type = C-src, b] => get($csrc, cc-dest); symbols: %out [type = C-src] => get($csrc, cc-dest);
mktok: %in [type = command] => $MAKE_TOKFILE; mktok: %in [type = command] => $MAKE_TOKFILE;
mkcase: %in [type = command] => $MAKE_TOKCASE; mkcase: %in [type = command] => $MAKE_TOKCASE;
) )