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.
|
|
|
|
|
2008-08-04 00:03:31 -06:00
|
|
|
include ../../Make.conf
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
LIB=\
|
|
|
|
gc.a$O\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
go.h\
|
|
|
|
y.tab.h\
|
|
|
|
|
|
|
|
YFILES=\
|
|
|
|
go.y\
|
|
|
|
|
|
|
|
OFILES=\
|
2009-07-07 12:03:04 -06:00
|
|
|
reflect.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
y.tab.$O\
|
|
|
|
lex.$O\
|
|
|
|
subr.$O\
|
|
|
|
dcl.$O\
|
2009-05-21 14:46:07 -06:00
|
|
|
sinit.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
export.$O\
|
|
|
|
walk.$O\
|
2009-03-05 16:49:34 -07:00
|
|
|
swt.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
const.$O\
|
2008-08-09 18:29:26 -06:00
|
|
|
mparith1.$O\
|
|
|
|
mparith2.$O\
|
|
|
|
mparith3.$O\
|
2009-03-05 19:26:12 -07:00
|
|
|
builtin.$O\
|
2008-06-13 19:16:23 -06:00
|
|
|
compat.$O\
|
2009-03-30 17:13:11 -06:00
|
|
|
bits.$O\
|
2009-03-30 18:09:28 -06:00
|
|
|
align.$O\
|
2009-03-30 20:15:07 -06:00
|
|
|
gen.$O\
|
2009-03-30 22:31:29 -06:00
|
|
|
obj.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
$(LIB): $(OFILES)
|
2008-06-12 14:38:54 -06:00
|
|
|
ar rsc $(LIB) $(OFILES)
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
|
2008-09-18 16:06:43 -06:00
|
|
|
y.tab.h: $(YFILES)
|
2009-01-06 10:53:30 -07:00
|
|
|
bison -y $(YFLAGS) $(YFILES)
|
2008-06-11 18:50:07 -06:00
|
|
|
|
2008-09-18 16:06:43 -06:00
|
|
|
y.tab.c: y.tab.h
|
2008-09-22 11:56:54 -06:00
|
|
|
test -f y.tab.c && touch y.tab.c
|
2008-09-18 16:06:43 -06:00
|
|
|
|
2009-05-12 17:15:52 -06:00
|
|
|
builtin.c: sys.go unsafe.go mkbuiltin1.c mkbuiltin
|
2009-03-12 18:55:11 -06:00
|
|
|
./mkbuiltin >builtin.c || \
|
2009-03-05 19:26:12 -07:00
|
|
|
(echo 'mkbuiltin failed; using bootstrap copy of builtin.c'; cp builtin.c.boot builtin.c)
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
clean:
|
2009-03-05 19:26:12 -07:00
|
|
|
rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB) mkbuiltin1 builtin.c _builtin.c
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
install: $(LIB)
|