mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
directory-per-package step 1: move files from lib/X.go to lib/X/X.go
no substantive changes except: - new Makefiles, all auto-generated - go/src/lib/Makefile has been extensively edited R=rsc OCL=28310 CL=28310
This commit is contained in:
parent
f821e3c7c3
commit
9b2c5da922
41 changed files with 1035 additions and 80 deletions
143
src/lib/Makefile
143
src/lib/Makefile
|
|
@ -7,123 +7,126 @@ all: install
|
||||||
GC=6g
|
GC=6g
|
||||||
|
|
||||||
DIRS=\
|
DIRS=\
|
||||||
|
bignum\
|
||||||
|
bufio\
|
||||||
container\
|
container\
|
||||||
|
exec\
|
||||||
|
exvar\
|
||||||
|
flag\
|
||||||
fmt\
|
fmt\
|
||||||
go\
|
go\
|
||||||
hash\
|
hash\
|
||||||
http\
|
http\
|
||||||
io\
|
io\
|
||||||
json\
|
json\
|
||||||
|
log\
|
||||||
|
malloc\
|
||||||
math\
|
math\
|
||||||
net\
|
net\
|
||||||
|
once\
|
||||||
os\
|
os\
|
||||||
|
path\
|
||||||
|
rand\
|
||||||
reflect\
|
reflect\
|
||||||
regexp\
|
regexp\
|
||||||
|
sort\
|
||||||
strconv\
|
strconv\
|
||||||
|
strings\
|
||||||
sync\
|
sync\
|
||||||
tabwriter\
|
tabwriter\
|
||||||
template\
|
template\
|
||||||
|
testing\
|
||||||
time\
|
time\
|
||||||
unicode\
|
unicode\
|
||||||
|
|
||||||
FILES=\
|
|
||||||
bignum\
|
|
||||||
bufio\
|
|
||||||
exec\
|
|
||||||
exvar\
|
|
||||||
flag\
|
|
||||||
log\
|
|
||||||
malloc\
|
|
||||||
once\
|
|
||||||
rand\
|
|
||||||
sort\
|
|
||||||
strings\
|
|
||||||
testing\
|
|
||||||
utf8\
|
utf8\
|
||||||
|
|
||||||
TEST=\
|
TEST=\
|
||||||
bignum \
|
bignum \
|
||||||
bufio \
|
bufio \
|
||||||
|
container \
|
||||||
exec \
|
exec \
|
||||||
exvar \
|
exvar \
|
||||||
flag \
|
flag \
|
||||||
|
fmt \
|
||||||
|
go \
|
||||||
|
hash \
|
||||||
|
http \
|
||||||
|
io \
|
||||||
|
json \
|
||||||
log \
|
log \
|
||||||
|
math \
|
||||||
|
net \
|
||||||
once \
|
once \
|
||||||
|
os \
|
||||||
|
path \
|
||||||
|
reflect \
|
||||||
|
regexp \
|
||||||
sort \
|
sort \
|
||||||
|
strconv \
|
||||||
strings \
|
strings \
|
||||||
|
sync \
|
||||||
|
tabwriter \
|
||||||
|
template \
|
||||||
|
time \
|
||||||
|
unicode \
|
||||||
utf8 \
|
utf8 \
|
||||||
|
|
||||||
clean.dirs: $(addsuffix .dirclean, $(DIRS))
|
clean.dirs: $(addsuffix .clean, $(DIRS))
|
||||||
install.dirs: $(addsuffix .dirinstall, $(DIRS))
|
install.dirs: $(addsuffix .install, $(DIRS))
|
||||||
install.files: $(addsuffix .install, $(FILES))
|
nuke.dirs: $(addsuffix .nuke, $(DIRS))
|
||||||
nuke.dirs: $(addsuffix .dirnuke, $(DIRS))
|
test.dirs: $(addsuffix .test, $(TEST))
|
||||||
test.files: $(addsuffix .test, $(TEST))
|
|
||||||
|
|
||||||
%.6: %.go
|
|
||||||
$(GC) $*.go
|
|
||||||
|
|
||||||
%.test: %.6
|
|
||||||
gotest $*_test.go
|
|
||||||
|
|
||||||
%.clean:
|
%.clean:
|
||||||
rm -f $*.6
|
|
||||||
|
|
||||||
%.install: %.6
|
|
||||||
6ar grc $*.a $*.6
|
|
||||||
mv $*.a $(GOROOT)/pkg/$*.a
|
|
||||||
rm -f $*.6
|
|
||||||
|
|
||||||
%.dirclean:
|
|
||||||
+cd $* && make clean
|
+cd $* && make clean
|
||||||
|
|
||||||
%.dirinstall:
|
%.install:
|
||||||
+cd $* && make install
|
+cd $* && make install
|
||||||
|
|
||||||
%.dirnuke:
|
%.nuke:
|
||||||
+cd $* && make nuke
|
+cd $* && make nuke
|
||||||
|
|
||||||
clean.files:
|
%.test:
|
||||||
rm -f 6.out *.6
|
+cd $* && make test
|
||||||
|
|
||||||
clean: clean.dirs clean.files
|
clean: clean.dirs
|
||||||
|
|
||||||
install: install.dirs install.files
|
install: install.dirs
|
||||||
|
|
||||||
nuke: nuke.dirs clean.files
|
test: test.dirs
|
||||||
rm -f $(GOROOT)/pkg/*
|
|
||||||
|
|
||||||
test: test.files
|
nuke: nuke.dirs
|
||||||
|
rm -rf $(GOROOT)/pkg/*
|
||||||
|
|
||||||
# TODO: dependencies - should auto-generate
|
# TODO: dependencies - should auto-generate
|
||||||
|
|
||||||
bignum.6: fmt.dirinstall
|
bignum.install: fmt.install
|
||||||
bufio.6: io.dirinstall os.dirinstall
|
bufio.install: io.install os.install
|
||||||
exec.6: os.dirinstall strings.install
|
exec.install: os.install strings.install
|
||||||
exvar.6: fmt.dirinstall http.dirinstall log.install strconv.dirinstall sync.dirinstall
|
exvar.install: fmt.install http.install log.install strconv.install sync.install
|
||||||
flag.6: fmt.dirinstall os.dirinstall strconv.dirinstall
|
flag.install: fmt.install os.install strconv.install
|
||||||
log.6: fmt.dirinstall io.dirinstall os.dirinstall time.dirinstall
|
log.install: fmt.install io.install os.install time.install
|
||||||
path.6: io.dirinstall
|
path.install: io.install
|
||||||
once.6: sync.dirinstall
|
once.install: sync.install
|
||||||
strings.6: utf8.install
|
strings.install: utf8.install
|
||||||
testing.6: flag.install fmt.dirinstall
|
testing.install: flag.install fmt.install
|
||||||
|
|
||||||
fmt.dirinstall: io.dirinstall reflect.dirinstall strconv.dirinstall
|
fmt.install: io.install reflect.install strconv.install
|
||||||
go.dirinstall: regexp.dirinstall sort.install strconv.dirinstall strings.install \
|
go.install: regexp.install sort.install strconv.install strings.install \
|
||||||
utf8.install unicode.dirinstall fmt.dirinstall
|
utf8.install unicode.install fmt.install
|
||||||
hash.dirinstall: os.dirinstall
|
hash.install: os.install
|
||||||
http.dirinstall: bufio.install io.dirinstall net.dirinstall os.dirinstall path.install strings.install log.install
|
http.install: bufio.install io.install net.install os.install path.install strings.install log.install
|
||||||
io.dirinstall: os.dirinstall sync.dirinstall
|
io.install: os.install sync.install
|
||||||
json.dirinstall: container.dirinstall fmt.dirinstall io.dirinstall math.dirinstall \
|
json.install: container.install fmt.install io.install math.install \
|
||||||
strconv.dirinstall strings.install utf8.install
|
strconv.install strings.install utf8.install
|
||||||
# TODO(rsc): net is not supposed to depend on fmt or strings or strconv
|
# TODO(rsc): net is not supposed to depend on fmt or strings or strconv
|
||||||
net.dirinstall: fmt.dirinstall once.install os.dirinstall strconv.dirinstall strings.install
|
net.install: fmt.install once.install os.install strconv.install strings.install
|
||||||
os.dirinstall: syscall.dirinstall once.install
|
os.install: syscall.install once.install
|
||||||
regexp.dirinstall: os.dirinstall
|
regexp.install: os.install
|
||||||
reflect.dirinstall: strconv.dirinstall sync.dirinstall
|
reflect.install: strconv.install sync.install
|
||||||
strconv.dirinstall: math.dirinstall os.dirinstall utf8.install
|
strconv.install: math.install os.install utf8.install
|
||||||
sync.dirinstall:
|
sync.install:
|
||||||
syscall.dirinstall: sync.dirinstall
|
syscall.install: sync.install
|
||||||
tabwriter.dirinstall: os.dirinstall io.dirinstall container.dirinstall
|
tabwriter.install: os.install io.install container.install
|
||||||
template.dirinstall: fmt.dirinstall io.dirinstall os.dirinstall reflect.dirinstall strings.install
|
template.install: fmt.install io.install os.install reflect.install strings.install
|
||||||
time.dirinstall: once.install os.dirinstall io.dirinstall
|
time.install: once.install os.install io.install
|
||||||
|
|
||||||
|
|
|
||||||
68
src/lib/bignum/Makefile
Normal file
68
src/lib/bignum/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
bignum.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/bignum.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/bignum.a bignum.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/bignum.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/bignum.a
|
||||||
|
|
||||||
|
packages: _obj$D/bignum.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/bignum.a $(GOROOT)/pkg$D/bignum.a
|
||||||
68
src/lib/bufio/Makefile
Normal file
68
src/lib/bufio/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
bufio.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/bufio.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/bufio.a bufio.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/bufio.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/bufio.a
|
||||||
|
|
||||||
|
packages: _obj$D/bufio.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/bufio.a $(GOROOT)/pkg$D/bufio.a
|
||||||
68
src/lib/exec/Makefile
Normal file
68
src/lib/exec/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
exec.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/exec.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/exec.a exec.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/exec.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/exec.a
|
||||||
|
|
||||||
|
packages: _obj$D/exec.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/exec.a $(GOROOT)/pkg$D/exec.a
|
||||||
68
src/lib/exvar/Makefile
Normal file
68
src/lib/exvar/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
exvar.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/exvar.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/exvar.a exvar.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/exvar.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/exvar.a
|
||||||
|
|
||||||
|
packages: _obj$D/exvar.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/exvar.a $(GOROOT)/pkg$D/exvar.a
|
||||||
68
src/lib/flag/Makefile
Normal file
68
src/lib/flag/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
flag.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/flag.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/flag.a flag.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/flag.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/flag.a
|
||||||
|
|
||||||
|
packages: _obj$D/flag.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/flag.a $(GOROOT)/pkg$D/flag.a
|
||||||
68
src/lib/log/Makefile
Normal file
68
src/lib/log/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
log.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/log.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/log.a log.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/log.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/log.a
|
||||||
|
|
||||||
|
packages: _obj$D/log.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/log.a $(GOROOT)/pkg$D/log.a
|
||||||
68
src/lib/malloc/Makefile
Normal file
68
src/lib/malloc/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
malloc.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/malloc.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/malloc.a malloc.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/malloc.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/malloc.a
|
||||||
|
|
||||||
|
packages: _obj$D/malloc.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/malloc.a $(GOROOT)/pkg$D/malloc.a
|
||||||
68
src/lib/once/Makefile
Normal file
68
src/lib/once/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
once.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/once.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/once.a once.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/once.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/once.a
|
||||||
|
|
||||||
|
packages: _obj$D/once.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/once.a $(GOROOT)/pkg$D/once.a
|
||||||
68
src/lib/path/Makefile
Normal file
68
src/lib/path/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
path.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/path.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/path.a path.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/path.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/path.a
|
||||||
|
|
||||||
|
packages: _obj$D/path.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/path.a $(GOROOT)/pkg$D/path.a
|
||||||
68
src/lib/rand/Makefile
Normal file
68
src/lib/rand/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
rand.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/rand.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/rand.a rand.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/rand.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/rand.a
|
||||||
|
|
||||||
|
packages: _obj$D/rand.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/rand.a $(GOROOT)/pkg$D/rand.a
|
||||||
68
src/lib/sort/Makefile
Normal file
68
src/lib/sort/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
sort.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/sort.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/sort.a sort.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/sort.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/sort.a
|
||||||
|
|
||||||
|
packages: _obj$D/sort.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/sort.a $(GOROOT)/pkg$D/sort.a
|
||||||
68
src/lib/strings/Makefile
Normal file
68
src/lib/strings/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
strings.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/strings.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/strings.a strings.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/strings.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/strings.a
|
||||||
|
|
||||||
|
packages: _obj$D/strings.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/strings.a $(GOROOT)/pkg$D/strings.a
|
||||||
68
src/lib/testing/Makefile
Normal file
68
src/lib/testing/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
testing.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/testing.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/testing.a testing.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/testing.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/testing.a
|
||||||
|
|
||||||
|
packages: _obj$D/testing.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/testing.a $(GOROOT)/pkg$D/testing.a
|
||||||
68
src/lib/utf8/Makefile
Normal file
68
src/lib/utf8/Makefile
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# DO NOT EDIT. Automatically generated by gobuild.
|
||||||
|
# gobuild -m >Makefile
|
||||||
|
|
||||||
|
D=
|
||||||
|
|
||||||
|
O_arm=5
|
||||||
|
O_amd64=6
|
||||||
|
O_386=8
|
||||||
|
OS=568vq
|
||||||
|
|
||||||
|
O=$(O_$(GOARCH))
|
||||||
|
GC=$(O)g -I_obj
|
||||||
|
CC=$(O)c -FVw
|
||||||
|
AS=$(O)a
|
||||||
|
AR=6ar
|
||||||
|
|
||||||
|
default: packages
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
||||||
|
|
||||||
|
test: packages
|
||||||
|
gotest
|
||||||
|
|
||||||
|
coverage: packages
|
||||||
|
gotest
|
||||||
|
6cov -g `pwd` | grep -v '_test\.go:'
|
||||||
|
|
||||||
|
%.$O: %.go
|
||||||
|
$(GC) $*.go
|
||||||
|
|
||||||
|
%.$O: %.c
|
||||||
|
$(CC) $*.c
|
||||||
|
|
||||||
|
%.$O: %.s
|
||||||
|
$(AS) $*.s
|
||||||
|
|
||||||
|
O1=\
|
||||||
|
utf8.$O\
|
||||||
|
|
||||||
|
|
||||||
|
phases: a1
|
||||||
|
_obj$D/utf8.a: phases
|
||||||
|
|
||||||
|
a1: $(O1)
|
||||||
|
$(AR) grc _obj$D/utf8.a utf8.$O
|
||||||
|
rm -f $(O1)
|
||||||
|
|
||||||
|
|
||||||
|
newpkg: clean
|
||||||
|
mkdir -p _obj$D
|
||||||
|
$(AR) grc _obj$D/utf8.a
|
||||||
|
|
||||||
|
$(O1): newpkg
|
||||||
|
$(O2): a1
|
||||||
|
|
||||||
|
nuke: clean
|
||||||
|
rm -f $(GOROOT)/pkg$D/utf8.a
|
||||||
|
|
||||||
|
packages: _obj$D/utf8.a
|
||||||
|
|
||||||
|
install: packages
|
||||||
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
|
||||||
|
cp _obj$D/utf8.a $(GOROOT)/pkg$D/utf8.a
|
||||||
Loading…
Add table
Add a link
Reference in a new issue