Commit 905cb488 authored by Rob Pike's avatar Rob Pike

all: remove some references to Make.inc etc.

There are a few more but these are the easiest ones.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5756067
parent f91326b7
...@@ -111,9 +111,9 @@ Not all Go types can be mapped to C types in a useful way. ...@@ -111,9 +111,9 @@ Not all Go types can be mapped to C types in a useful way.
Cgo transforms the input file into four output files: two Go source Cgo transforms the input file into four output files: two Go source
files, a C file for 6c (or 8c or 5c), and a C file for gcc. files, a C file for 6c (or 8c or 5c), and a C file for gcc.
The standard package makefile rules in Make.pkg automate the The standard package construction rules of the go command
process of using cgo. See $GOROOT/misc/cgo/stdio and automate the process of using cgo. See $GOROOT/misc/cgo/stdio
$GOROOT/misc/cgo/gmp for examples. and $GOROOT/misc/cgo/gmp for examples.
Cgo does not yet work with gccgo. Cgo does not yet work with gccgo.
......
...@@ -147,7 +147,7 @@ func main() { ...@@ -147,7 +147,7 @@ func main() {
// cgo -dynimport is essentially a separate helper command // cgo -dynimport is essentially a separate helper command
// built into the cgo binary. It scans a gcc-produced executable // built into the cgo binary. It scans a gcc-produced executable
// and dumps information about the imported symbols and the // and dumps information about the imported symbols and the
// imported libraries. The Make.pkg rules for cgo prepare an // imported libraries. The 'go build' rules for cgo prepare an
// appropriate executable and then use its import information // appropriate executable and then use its import information
// instead of needing to make the linkers duplicate all the // instead of needing to make the linkers duplicate all the
// specialized knowledge gcc has about where to look for imported // specialized knowledge gcc has about where to look for imported
......
...@@ -4,21 +4,17 @@ ...@@ -4,21 +4,17 @@
# The library is built by the Makefile in the parent directory. # The library is built by the Makefile in the parent directory.
# This Makefile only builds mkrunetype. # This Makefile only builds mkrunetype.
# GOROOT, GOOS, and GOARCH must be set explicitly.
include ../../Make.inc
O:=$(HOST_O)
TARG=mkrunetype TARG=mkrunetype
OFILES=\
mkrunetype.$O\
include ../../Make.ccmd
UnicodeData-%.txt: UnicodeData-%.txt:
curl http://www.unicode.org/Public/$*/ucd/UnicodeData.txt >_$@ curl http://www.unicode.org/Public/$*/ucd/UnicodeData.txt >_$@
mv _$@ $@ mv _$@ $@
mkrunetype: mkrunetype.c
cc -I../../../include -o mkrunetype -L$(GOROOT)/pkg/obj/$(GOOS)_$(GOARCH)/ mkrunetype.c -l9
runetypebody-%.c: mkrunetype UnicodeData-%.txt runetypebody-%.c: mkrunetype UnicodeData-%.txt
mkrunetype -p UnicodeData-$*.txt >_$@ mkrunetype -p UnicodeData-$*.txt >_$@
mv _$@ $@ mv _$@ $@
...@@ -30,3 +26,5 @@ UNICODE_VERSION=6.0.0 ...@@ -30,3 +26,5 @@ UNICODE_VERSION=6.0.0
test: mkrunetype UnicodeData-$(UNICODE_VERSION).txt test: mkrunetype UnicodeData-$(UNICODE_VERSION).txt
mkrunetype -c UnicodeData-$(UNICODE_VERSION).txt mkrunetype -c UnicodeData-$(UNICODE_VERSION).txt
clean:
rm -f UnicodeData.txt mkrunetype
\ No newline at end of file
...@@ -2,27 +2,22 @@ ...@@ -2,27 +2,22 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../../src/Make.inc
ALL=\ ALL=\
parser\ parser\
peano\ peano\
tree\ tree\
tree2\ tree2\
all: $(addsuffix .out, $(ALL)) all: $(ALL)
%.$O: %.go stats.go
$(GC) $(GCFLAGS) $(GCIMPORTS) $*.go stats.go
%.out: %.$O %: %.go
$(LD) -o $@ $*.$O go build $*.go stats.go
%.bench: %.out %.bench: %
time ./$*.out time ./$*
bench: $(addsuffix .bench, $(ALL)) bench: $(addsuffix .bench, $(ALL))
clean: clean:
rm -f *.[$(OS)] $(addsuffix .out, $(ALL)) rm -f $(ALL)
include $(GOROOT)/src/Make.inc
TARG=go1 TARG=go1
GOFILES=\
dummy.go\
include $(GOROOT)/src/Make.pkg
test: test:
echo go1: tests disabled for now TODO echo go1: tests disabled for now TODO
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment