LEFT | RIGHT |
1 # Copyright 2009 The Go Authors. All rights reserved. | 1 # Copyright 2009 The Go Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style | 2 # Use of this source code is governed by a BSD-style |
3 # license that can be found in the LICENSE file. | 3 # license that can be found in the LICENSE file. |
4 | 4 |
5 include ../../Make.inc | 5 include ../../Make.inc |
6 O:=$(HOST_O) | 6 O:=$(HOST_O) |
7 | 7 |
8 LIB=gc.a | 8 LIB=gc.a |
9 | 9 |
10 HFILES=\ | 10 HFILES=\ |
(...skipping 26 matching lines...) Expand all Loading... |
37 reflect.$O\ | 37 reflect.$O\ |
38 select.$O\ | 38 select.$O\ |
39 sinit.$O\ | 39 sinit.$O\ |
40 subr.$O\ | 40 subr.$O\ |
41 swt.$O\ | 41 swt.$O\ |
42 typecheck.$O\ | 42 typecheck.$O\ |
43 unsafe.$O\ | 43 unsafe.$O\ |
44 walk.$O\ | 44 walk.$O\ |
45 y1.tab.$O\ | 45 y1.tab.$O\ |
46 | 46 |
| 47 HOST_CFLAGS+=-DGOEXPERIMENT='"$(GOEXPERIMENT)"'· |
| 48 |
47 NOINSTALL=1 | 49 NOINSTALL=1 |
48 include ../../Make.clib | 50 include ../../Make.clib |
49 | 51 |
50 install: $(LIB) | 52 install: $(LIB) |
51 | 53 |
52 y1.tab.c: y.tab.c # make yystate global, yytname mutable | 54 y1.tab.c: y.tab.c # make yystate global, yytname mutable |
53 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 \*yymsg
p/char *yymsgp/' >y1.tab.c | 55 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 \*yymsg
p/char *yymsgp/' >y1.tab.c |
54 | 56 |
55 yerr.h: bisonerrors go.errors y.tab.h # y.tab.h rule generates y.output too | 57 yerr.h: bisonerrors go.errors y.tab.h # y.tab.h rule generates y.output too |
56 awk -f bisonerrors y.output go.errors >yerr.h | 58 awk -f bisonerrors y.output go.errors >yerr.h |
57 | 59 |
58 subr.$O: yerr.h | 60 subr.$O: yerr.h |
59 | 61 |
60 builtin.c: builtin.c.boot | 62 builtin.c: builtin.c.boot |
61 cp builtin.c.boot builtin.c | 63 cp builtin.c.boot builtin.c |
62 | 64 |
63 fmt.$O: opnames.h | 65 fmt.$O: opnames.h |
64 | 66 |
65 opnames.h: mkopnames go.h | 67 opnames.h: mkopnames go.h |
66 ./mkopnames go.h >opnames.h | 68 ./mkopnames go.h >opnames.h |
67 | 69 |
68 CLEANFILES+=*.[568] [568].out y1.tab.c yerr.h mkbuiltin1 builtin.c _builtin.c op
names.h | 70 CLEANFILES+=*.[568] [568].out y1.tab.c yerr.h mkbuiltin1 builtin.c _builtin.c op
names.h |
69 | 71 |
70 mkbuiltin1: mkbuiltin1.$O | 72 mkbuiltin1: mkbuiltin1.$O |
71 $(HOST_LD) -o $@ mkbuiltin1.$O -L"$(GOROOT)"/lib -lbio -l9 -lm $(HOST_LD
FLAGS) | 73 $(HOST_LD) -o $@ mkbuiltin1.$O -L"$(GOROOT)"/lib -lbio -l9 -lm $(HOST_LD
FLAGS) |
72 | 74 |
LEFT | RIGHT |