mirror of
https://github.com/golang/go
synced 2024-11-20 06:54:42 -07:00
e308d55973
The crypto package is added as a common place to store identifiers for hash functions. At the moment, the rsa package has an enumeration of hash functions and knowledge of their digest lengths. This is an unfortunate coupling and other high level crypto packages tend to need to duplicate this enumeration and knowledge (i.e. openpgp). crypto pulls this code out into a common location. It would also make sense to add similar support for ciphers to crypto, but the problem there isn't as acute that isn't done in this change. R=bradfitzgo, r, rsc CC=golang-dev https://golang.org/cl/4080046
248 lines
3.4 KiB
Makefile
248 lines
3.4 KiB
Makefile
# 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.
|
|
|
|
# After editing the DIRS= list or adding imports to any Go files
|
|
# in any of those directories, run:
|
|
#
|
|
# ./deps.bash
|
|
#
|
|
# to rebuild the dependency information in Make.deps.
|
|
|
|
include ../Make.inc
|
|
|
|
all: install
|
|
|
|
DIRS=\
|
|
archive/tar\
|
|
archive/zip\
|
|
asn1\
|
|
big\
|
|
bufio\
|
|
bytes\
|
|
cmath\
|
|
compress/flate\
|
|
compress/gzip\
|
|
compress/zlib\
|
|
container/heap\
|
|
container/list\
|
|
container/ring\
|
|
container/vector\
|
|
crypto\
|
|
crypto/aes\
|
|
crypto/block\
|
|
crypto/blowfish\
|
|
crypto/cast5\
|
|
crypto/cipher\
|
|
crypto/dsa\
|
|
crypto/elliptic\
|
|
crypto/hmac\
|
|
crypto/md4\
|
|
crypto/md5\
|
|
crypto/ocsp\
|
|
crypto/rand\
|
|
crypto/rc4\
|
|
crypto/ripemd160\
|
|
crypto/rsa\
|
|
crypto/sha1\
|
|
crypto/sha256\
|
|
crypto/sha512\
|
|
crypto/subtle\
|
|
crypto/tls\
|
|
crypto/twofish\
|
|
crypto/x509\
|
|
crypto/xtea\
|
|
debug/dwarf\
|
|
debug/macho\
|
|
debug/elf\
|
|
debug/gosym\
|
|
debug/pe\
|
|
debug/proc\
|
|
ebnf\
|
|
encoding/ascii85\
|
|
encoding/base32\
|
|
encoding/base64\
|
|
encoding/binary\
|
|
encoding/git85\
|
|
encoding/hex\
|
|
encoding/line\
|
|
encoding/pem\
|
|
exec\
|
|
exp/datafmt\
|
|
exp/draw\
|
|
exp/draw/x11\
|
|
exp/eval\
|
|
expvar\
|
|
flag\
|
|
fmt\
|
|
go/ast\
|
|
go/doc\
|
|
go/parser\
|
|
go/printer\
|
|
go/scanner\
|
|
go/token\
|
|
go/typechecker\
|
|
gob\
|
|
hash\
|
|
hash/adler32\
|
|
hash/crc32\
|
|
hash/crc64\
|
|
html\
|
|
http\
|
|
http/pprof\
|
|
image\
|
|
image/jpeg\
|
|
image/png\
|
|
index/suffixarray\
|
|
io\
|
|
io/ioutil\
|
|
json\
|
|
log\
|
|
math\
|
|
mime\
|
|
mime/multipart\
|
|
net\
|
|
net/dict\
|
|
net/textproto\
|
|
netchan\
|
|
os\
|
|
os/signal\
|
|
patch\
|
|
path\
|
|
rand\
|
|
reflect\
|
|
regexp\
|
|
rpc\
|
|
rpc/jsonrpc\
|
|
runtime\
|
|
runtime/cgo\
|
|
runtime/debug\
|
|
runtime/pprof\
|
|
scanner\
|
|
smtp\
|
|
sort\
|
|
strconv\
|
|
strings\
|
|
sync\
|
|
syscall\
|
|
syslog\
|
|
tabwriter\
|
|
template\
|
|
testing\
|
|
testing/iotest\
|
|
testing/quick\
|
|
testing/script\
|
|
time\
|
|
try\
|
|
unicode\
|
|
utf16\
|
|
utf8\
|
|
websocket\
|
|
xml\
|
|
../cmd/cgo\
|
|
../cmd/ebnflint\
|
|
../cmd/godoc\
|
|
../cmd/gofmt\
|
|
../cmd/goinstall\
|
|
../cmd/govet\
|
|
../cmd/goyacc\
|
|
../cmd/hgpatch\
|
|
|
|
ifeq ($(GOOS),linux)
|
|
DIRS+=\
|
|
os/inotify\
|
|
|
|
endif
|
|
|
|
NOTEST=\
|
|
crypto\
|
|
debug/proc\
|
|
exp/draw/x11\
|
|
go/ast\
|
|
go/doc\
|
|
go/token\
|
|
hash\
|
|
http/pprof\
|
|
image\
|
|
image/jpeg\
|
|
net/dict\
|
|
rand\
|
|
runtime/cgo\
|
|
runtime/pprof\
|
|
syscall\
|
|
testing\
|
|
testing/iotest\
|
|
try\
|
|
../cmd/cgo\
|
|
../cmd/ebnflint\
|
|
../cmd/godoc\
|
|
../cmd/gofmt\
|
|
../cmd/goinstall\
|
|
../cmd/govet\
|
|
../cmd/goyacc\
|
|
../cmd/hgpatch\
|
|
|
|
NOBENCH=\
|
|
container/vector\
|
|
|
|
# Disable tests that depend on an external network.
|
|
ifeq ($(DISABLE_NET_TESTS),1)
|
|
NOTEST+=http net
|
|
endif
|
|
|
|
# Disable tests that windows cannot run yet.
|
|
ifeq ($(GOOS),windows)
|
|
NOTEST+=os/signal # no signals
|
|
NOTEST+=path # tree walking does not work
|
|
NOTEST+=syslog # no network
|
|
NOTEST+=time # no syscall.Kill, syscall.SIGCHLD for sleep tests
|
|
endif
|
|
|
|
TEST=\
|
|
$(filter-out $(NOTEST),$(DIRS))
|
|
|
|
BENCH=\
|
|
$(filter-out $(NOBENCH),$(TEST))
|
|
|
|
clean.dirs: $(addsuffix .clean, $(DIRS))
|
|
install.dirs: $(addsuffix .install, $(DIRS))
|
|
nuke.dirs: $(addsuffix .nuke, $(DIRS))
|
|
test.dirs: $(addsuffix .test, $(TEST))
|
|
bench.dirs: $(addsuffix .bench, $(BENCH))
|
|
|
|
%.clean:
|
|
+cd $* && gomake clean
|
|
|
|
%.install:
|
|
+cd $* && gomake install
|
|
|
|
%.nuke:
|
|
+cd $* && gomake nuke
|
|
|
|
%.test:
|
|
+cd $* && gomake test
|
|
|
|
%.bench:
|
|
+cd $* && gomake bench
|
|
|
|
clean: clean.dirs
|
|
|
|
install: install.dirs
|
|
|
|
test: test.dirs
|
|
|
|
bench: bench.dirs ../../test/garbage.bench
|
|
|
|
nuke: nuke.dirs
|
|
rm -rf "$(GOROOT)"/pkg/*
|
|
|
|
deps:
|
|
./deps.bash
|
|
|
|
echo-dirs:
|
|
@echo $(DIRS)
|
|
|
|
-include Make.deps
|
|
|
|
runtime/cgo.install: ../cmd/cgo.install
|