| # Copyright 2010 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. |
| # Makefile included for C libraries |
| # Use $(PWD)/$*.c so that gdb shows full path in stack traces. |
| $(HOST_CC) $(HOST_CFLAGS) -c "$(PWD)/$*.c" |
| install: $(QUOTED_GOROOT)/lib/$(LIB) |
| $(QUOTED_GOROOT)/lib/$(LIB): $(LIB) |
| cp $(LIB) "$(GOROOT)/lib/$(LIB)" |
| $(HOST_AR) rsc $(LIB) $(OFILES) |
| CLEANFILES+=y.tab.[ch] y.output a.out $(LIB) |
| rm -f *.$(HOST_O) $(CLEANFILES) |
| rm -f "$(GOROOT)/lib/$(LIB)" |
| LANG=C LANGUAGE="en_US.UTF8" bison -v -y $(HOST_YFLAGS) $(YFILES) |
| test -f y.tab.c && touch y.tab.c |