2008-06-11 18:50:07 -06:00
|
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
include ../../Make.inc
|
|
|
|
O:=$(HOST_O)
|
2008-06-11 18:50:07 -06:00
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
LIB=gc.a
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
go.h\
|
|
|
|
y.tab.h\
|
2009-09-02 10:09:32 -06:00
|
|
|
md5.h\
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
YFILES=\
|
|
|
|
go.y\
|
|
|
|
|
|
|
|
OFILES=\
|
2009-08-04 19:43:32 -06:00
|
|
|
align.$O\
|
|
|
|
bits.$O\
|
|
|
|
builtin.$O\
|
2009-08-07 13:50:26 -06:00
|
|
|
closure.$O\
|
2009-08-04 19:43:32 -06:00
|
|
|
const.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
dcl.$O\
|
|
|
|
export.$O\
|
2009-08-04 19:43:32 -06:00
|
|
|
gen.$O\
|
|
|
|
init.$O\
|
|
|
|
lex.$O\
|
2009-09-02 10:09:32 -06:00
|
|
|
md5.$O\
|
2008-08-09 18:29:26 -06:00
|
|
|
mparith1.$O\
|
|
|
|
mparith2.$O\
|
|
|
|
mparith3.$O\
|
2009-03-30 22:31:29 -06:00
|
|
|
obj.$O\
|
2009-07-29 12:51:34 -06:00
|
|
|
print.$O\
|
2009-08-05 03:33:30 -06:00
|
|
|
range.$O\
|
2009-08-04 19:43:32 -06:00
|
|
|
reflect.$O\
|
2009-08-04 13:57:48 -06:00
|
|
|
select.$O\
|
2009-08-04 19:43:32 -06:00
|
|
|
sinit.$O\
|
|
|
|
subr.$O\
|
|
|
|
swt.$O\
|
|
|
|
typecheck.$O\
|
|
|
|
unsafe.$O\
|
|
|
|
walk.$O\
|
2010-01-27 00:13:22 -07:00
|
|
|
y1.tab.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
NOINSTALL=1
|
|
|
|
include ../../Make.clib
|
2008-06-11 18:50:07 -06:00
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
install: $(LIB)
|
2008-09-18 16:06:43 -06:00
|
|
|
|
2010-01-27 00:13:22 -07:00
|
|
|
y1.tab.c: y.tab.c # make yystate global, yytname mutable
|
2011-05-26 12:28:23 -06:00
|
|
|
cat y.tab.c | sed '/ int yystate;/d; s/int yychar;/int yychar, yystate;/; s/static const char \*const yytname/const char *yytname/; s/char const \*yymsgp/char *yymsgp/' >y1.tab.c
|
2010-01-27 00:13:22 -07:00
|
|
|
|
|
|
|
yerr.h: bisonerrors go.errors y.tab.h # y.tab.h rule generates y.output too
|
|
|
|
awk -f bisonerrors y.output go.errors >yerr.h
|
|
|
|
|
|
|
|
subr.$O: yerr.h
|
|
|
|
|
2010-01-22 17:58:33 -07:00
|
|
|
builtin.c: builtin.c.boot
|
|
|
|
cp builtin.c.boot builtin.c
|
2008-06-11 18:50:07 -06:00
|
|
|
|
2009-07-31 10:29:28 -06:00
|
|
|
subr.$O: opnames.h
|
|
|
|
|
|
|
|
opnames.h: mkopnames go.h
|
|
|
|
./mkopnames go.h >opnames.h
|
|
|
|
|
2010-08-24 18:00:33 -06:00
|
|
|
CLEANFILES+=*.[568] [568].out y1.tab.c yerr.h mkbuiltin1 builtin.c _builtin.c opnames.h
|