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=\
|
|
|
|
cc.a$O\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
cc.h\
|
|
|
|
y.tab.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\
|
|
|
|
dpchk.$O\
|
|
|
|
omachcap.$O\
|
|
|
|
|
|
|
|
$(LIB): $(OFILES)
|
2008-06-12 14:37: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
|
|
|
|
2008-06-11 18:50:07 -06:00
|
|
|
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)
|