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.
|
|
|
|
|
|
|
|
YFLAGS=-d
|
2008-06-12 14:26:16 -06:00
|
|
|
CFLAGS=-I$(GOROOT)/include
|
2008-06-11 18:50:07 -06:00
|
|
|
BIN=$(HOME)/bin
|
|
|
|
O=o
|
|
|
|
|
|
|
|
LIB=\
|
|
|
|
cc.a$O\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
cc.h\
|
|
|
|
y.tab.h\
|
|
|
|
compat.h\
|
|
|
|
|
|
|
|
YFILES=\
|
|
|
|
cc.y\
|
|
|
|
|
|
|
|
OFILES=\
|
|
|
|
y.tab.$O\
|
|
|
|
lex.$O\
|
|
|
|
mac.$O\
|
|
|
|
dcl.$O\
|
|
|
|
acid.$O\
|
|
|
|
pickle.$O\
|
|
|
|
bits.$O\
|
|
|
|
com.$O\
|
|
|
|
scon.$O\
|
|
|
|
funct.$O\
|
|
|
|
sub.$O\
|
|
|
|
com64.$O\
|
|
|
|
compat.$O\
|
|
|
|
dpchk.$O\
|
|
|
|
omachcap.$O\
|
|
|
|
compat.$O\
|
|
|
|
|
|
|
|
$(LIB): $(OFILES)
|
|
|
|
9ar rsc $(LIB) $(OFILES)
|
|
|
|
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
|
|
|
|
y.tab.c: $(YFILES)
|
|
|
|
yacc $(YFLAGS) $(YFILES)
|
|
|
|
|
|
|
|
clean:
|
2008-06-11 19:01:45 -06:00
|
|
|
rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB)
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
install: $(LIB)
|