1990-08-31 18:22:53 +00:00
|
|
|
AMAKELIB = { . , /usr/local/lib/amake } ;
|
|
|
|
|
|
|
|
%include ack-defs.amk ;
|
|
|
|
%include common.amk ;
|
|
|
|
%include cc_hh_tools.amk ;
|
|
|
|
%include tok_tools.amk ;
|
|
|
|
%include op_tools.amk ;
|
|
|
|
%include char_tools.amk ;
|
|
|
|
%include LLgen.amk ;
|
|
|
|
%include cc-c.amk ;
|
|
|
|
%include loader.amk ;
|
|
|
|
%include lint.amk ;
|
|
|
|
|
|
|
|
%default grind ;
|
|
|
|
|
|
|
|
TOKENNAMES = tokenname.c [
|
|
|
|
gen_tokens,
|
|
|
|
cc-dest = symbol2str.c,
|
|
|
|
LL-dest = tokenfile.g
|
|
|
|
];
|
|
|
|
|
|
|
|
DBS_LLTARGETS = {
|
1990-10-29 11:38:35 +00:00
|
|
|
db_symtab.c[type=C-src],
|
1990-08-31 18:22:53 +00:00
|
|
|
DBSpars.c[type=C-src],
|
|
|
|
DBSpars.h[type=C-incl]
|
|
|
|
} ;
|
|
|
|
|
|
|
|
DBS_LLSRC = {
|
1990-10-29 11:38:35 +00:00
|
|
|
db_symtab.g
|
1990-08-31 18:22:53 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
CMD_LLTARGETS = {
|
|
|
|
tokenfile.c[type=C-src],
|
|
|
|
commands.c[type=C-src],
|
|
|
|
Lpars.c[type=C-src],
|
|
|
|
Lpars.h[type=C-incl]
|
|
|
|
} ;
|
|
|
|
|
|
|
|
CMD_LLSRC = {
|
|
|
|
tokenname.c,
|
|
|
|
commands.g
|
|
|
|
} ;
|
|
|
|
|
|
|
|
GENNEXTSRC = {
|
|
|
|
file.h[type=C-incl],
|
|
|
|
next.c[type=C-src]
|
|
|
|
} ;
|
|
|
|
|
|
|
|
CSRC = {
|
|
|
|
main.c,
|
|
|
|
list.c,
|
|
|
|
tree.c,
|
|
|
|
expr.c,
|
|
|
|
position.c,
|
|
|
|
idf.c,
|
|
|
|
run.c,
|
|
|
|
symbol.c,
|
|
|
|
print.c,
|
|
|
|
type.c,
|
|
|
|
rd.c,
|
1990-10-29 11:38:35 +00:00
|
|
|
do_comm.c,
|
1990-09-14 14:37:26 +00:00
|
|
|
modula-2.c,
|
|
|
|
c.c
|
1990-08-31 18:22:53 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
HSRC = {
|
|
|
|
tokenname.h,
|
|
|
|
operator.h,
|
|
|
|
class.h,
|
|
|
|
position.h,
|
|
|
|
idf.h,
|
|
|
|
message.h,
|
|
|
|
avl.h,
|
|
|
|
scope.h,
|
|
|
|
langdep.h,
|
|
|
|
sizes.h,
|
1990-09-07 14:56:24 +00:00
|
|
|
token.h,
|
|
|
|
expr.h,
|
1990-08-31 18:22:53 +00:00
|
|
|
rd.h
|
|
|
|
} ;
|
|
|
|
|
|
|
|
HHSRC = {
|
|
|
|
file.hh,
|
|
|
|
type.hh,
|
|
|
|
symbol.hh,
|
|
|
|
tree.hh,
|
|
|
|
avl.cc,
|
|
|
|
scope.cc,
|
|
|
|
itemlist.cc,
|
|
|
|
langdep.cc
|
|
|
|
} ;
|
|
|
|
|
|
|
|
LIBRARIES = {
|
|
|
|
$EMHOME/modules/lib/libassert.a,
|
|
|
|
$EMHOME/modules/lib/liballoc.a,
|
|
|
|
$EMHOME/modules/lib/malloc.o,
|
|
|
|
$EMHOME/modules/lib/libstring.a,
|
|
|
|
$EMHOME/modules/lib/libobject.a,
|
|
|
|
$EMHOME/modules/lib/libsystem.a
|
|
|
|
} ;
|
|
|
|
|
1990-10-11 08:42:07 +00:00
|
|
|
DBFLAGS = { -O, -DDEBUG } ;
|
1990-08-31 18:22:53 +00:00
|
|
|
PROFFLAGS = { } ;
|
|
|
|
|
|
|
|
LDFLAGS = {
|
|
|
|
-Bstatic,
|
|
|
|
$PROFFLAGS,
|
|
|
|
$DBFLAGS
|
|
|
|
} ;
|
|
|
|
|
|
|
|
INCLUDES = {
|
|
|
|
-I$EMHOME/modules/h,
|
|
|
|
-I$EMHOME/modules/pkg,
|
|
|
|
-I$EMHOME/h
|
|
|
|
} ;
|
|
|
|
|
|
|
|
CFLAGS = {
|
|
|
|
$INCLUDES,
|
|
|
|
$PROFFLAGS,
|
|
|
|
$DBFLAGS
|
|
|
|
} ;
|
|
|
|
|
|
|
|
LINTFLAGS = {
|
|
|
|
$INCLUDES
|
|
|
|
} ;
|
|
|
|
|
|
|
|
%cluster {
|
|
|
|
%targets $DBS_LLTARGETS ;
|
|
|
|
%sources $DBS_LLSRC ;
|
|
|
|
%use LLgen(prefix => DBS) ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
%cluster {
|
|
|
|
%targets lint.out[type = lint-output];
|
1990-11-12 13:46:31 +00:00
|
|
|
%sources $CSRC + $CMD_LLSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ;
|
1990-08-31 18:22:53 +00:00
|
|
|
%use lint(realdest => lint.out) ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
%cluster {
|
|
|
|
%targets grind[type = program];
|
|
|
|
%sources $CMD_LLSRC + $CSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ;
|
|
|
|
} ;
|