blob: 589dbe5fc8b24d75904a35b4680da5acbfc3b658 [file] [log] [blame]
# 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
O=6
GC=$(O)g
CC=$(O)c -w
AS=$(O)a
AR=$(O)ar
default: packages
clean:
rm -f *.$O *.a $O.out
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=\
adler32.$O\
crc32.$O\
sha1.$O\
md5.$O\
O2=\
md5block.$O\
sha1block.$O\
adler32.a: a1 a2
crc32.a: a1 a2
sha1.a: a1 a2
md5.a: a1 a2
a1: $(O1)
$(AR) grc adler32.a adler32.$O
$(AR) grc crc32.a crc32.$O
$(AR) grc sha1.a sha1.$O
$(AR) grc md5.a md5.$O
rm -f $(O1)
a2: $(O2)
$(AR) grc sha1.a sha1block.$O
$(AR) grc md5.a md5block.$O
rm -f $(O2)
newpkg: clean
$(AR) grc adler32.a
$(AR) grc crc32.a
$(AR) grc sha1.a
$(AR) grc md5.a
$(O1): newpkg
$(O2): a1
nuke: clean
rm -f $(GOROOT)/pkg/adler32.a $(GOROOT)/pkg/crc32.a $(GOROOT)/pkg/sha1.a $(GOROOT)/pkg/md5.a
packages: adler32.a crc32.a sha1.a md5.a
install: packages
cp adler32.a $(GOROOT)/pkg/adler32.a
cp crc32.a $(GOROOT)/pkg/crc32.a
cp sha1.a $(GOROOT)/pkg/sha1.a
cp md5.a $(GOROOT)/pkg/md5.a