]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix build - last CL missed Make.clib
authorRuss Cox <rsc@golang.org>
Wed, 25 Aug 2010 00:15:52 +0000 (20:15 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Aug 2010 00:15:52 +0000 (20:15 -0400)
R=r
CC=golang-dev
https://golang.org/cl/1981047

src/Make.clib [new file with mode: 0644]

diff --git a/src/Make.clib b/src/Make.clib
new file mode 100644 (file)
index 0000000..6a20e0c
--- /dev/null
@@ -0,0 +1,34 @@
+# 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
+
+all: $(LIB)
+
+%.$(HOST_O): %.c
+       $(HOST_CC) $(HOST_CFLAGS) -c $*.c
+
+$(OFILES): $(HFILES)
+
+ifneq ($(NOINSTALL),1)
+install: $(QUOTED_GOROOT)/lib/$(LIB)
+endif
+
+$(QUOTED_GOROOT)/lib/$(LIB): $(LIB)
+       cp $(LIB) "$(GOROOT)/lib/$(LIB)"
+
+$(LIB): $(OFILES)
+       ar rsc $(LIB) $(OFILES)
+
+CLEANFILES+=y.tab.[ch] y.output a.out $(LIB)
+
+clean:
+       rm -f *.$(HOST_O) $(CLEANFILES)
+
+
+y.tab.h: $(YFILES)
+       LANG=C LANGUAGE="en_US.UTF8" bison -v -y $(HOST_YFLAGS) $(YFILES)
+
+y.tab.c: y.tab.h
+       test -f y.tab.c && touch y.tab.c