ack/util/grind/Amakefile

128 lines
1.7 KiB
Plaintext
Raw Normal View History

1990-08-31 18:22:53 +00:00
AMAKELIB = { . , /usr/local/lib/amake } ;
1990-11-20 13:02:27 +00:00
%include std-amake.amk ;
1990-08-31 18:22:53 +00:00
%include ack-defs.amk ;
%include cc_hh_tools.amk ;
%include tok_tools.amk ;
%include op_tools.amk ;
%include char_tools.amk ;
%default grind ;
1990-11-22 12:56:23 +00:00
%declare tokenname.c [
1990-08-31 18:22:53 +00:00
gen_tokens,
cc-dest = symbol2str.c,
LL-dest = tokenfile.g
];
CMD_LLSRC = {
tokenname.c,
commands.g
} ;
CSRC = {
main.c,
list.c,
tree.c,
expr.c,
position.c,
idf.c,
run.c,
symbol.c,
print.c,
type.c,
rd.c,
do_comm.c,
1990-09-14 14:37:26 +00:00
modula-2.c,
1990-12-11 13:53:01 +00:00
pascal.c,
1990-09-14 14:37:26 +00:00
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
} ;
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
} ;
1990-11-22 12:56:23 +00:00
DBS_LLTARGETS = {
db_symtab.c,
DBSpars.c,
DBSpars.h
} ;
DBS_LLSRC = {
db_symtab.g
1990-08-31 18:22:53 +00:00
} ;
%cluster {
%targets $DBS_LLTARGETS ;
%sources $DBS_LLSRC ;
%use LLgen(prefix => DBS) ;
} ;
1990-11-22 12:56:23 +00:00
LINTFLAGS = {
$INCLUDES
} ;
1990-08-31 18:22:53 +00:00
%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];
1990-11-22 12:56:23 +00:00
%sources $CSRC + $CMD_LLSRC + $DBS_LLTARGETS + $HHSRC + char.ct + operators.ot ;
1990-08-31 18:22:53 +00:00
} ;