2008-09-26 15:11:26 -06:00
|
|
|
# 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.
|
2008-11-18 18:11:56 -07:00
|
|
|
# gobuild -m errstr_darwin.go file_darwin.go socket_darwin.go\
|
2008-09-26 15:11:26 -06:00
|
|
|
# syscall_amd64_darwin.go time_amd64_darwin.go types_amd64_darwin.go\
|
2008-11-18 18:11:56 -07:00
|
|
|
# asm_amd64_darwin.s cast_amd64.s syscall.go >Makefile
|
2008-09-26 15:11:26 -06:00
|
|
|
O=6
|
|
|
|
GC=$(O)g
|
|
|
|
CC=$(O)c -w
|
|
|
|
AS=$(O)a
|
|
|
|
AR=$(O)ar
|
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
default: packages
|
2008-09-26 15:11:26 -06:00
|
|
|
|
|
|
|
clean:
|
2008-11-19 10:40:54 -07:00
|
|
|
rm -f *.$O *.a $O.out
|
2008-09-26 15:11:26 -06:00
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
test: packages
|
|
|
|
gotest
|
|
|
|
|
2008-11-19 13:52:30 -07:00
|
|
|
coverage: packages
|
|
|
|
gotest
|
|
|
|
6cov -g `pwd` | grep -v '^test.*\.go:'
|
|
|
|
|
2008-09-26 15:11:26 -06:00
|
|
|
%.$O: %.go
|
|
|
|
$(GC) $*.go
|
|
|
|
|
|
|
|
%.$O: %.c
|
|
|
|
$(CC) $*.c
|
|
|
|
|
|
|
|
%.$O: %.s
|
|
|
|
$(AS) $*.s
|
|
|
|
|
|
|
|
O1=\
|
|
|
|
errstr_$(GOOS).$O\
|
|
|
|
syscall_$(GOARCH)_$(GOOS).$O\
|
|
|
|
types_$(GOARCH)_$(GOOS).$O\
|
|
|
|
asm_$(GOARCH)_$(GOOS).$O\
|
|
|
|
cast_$(GOARCH).$O\
|
|
|
|
syscall.$O\
|
|
|
|
|
|
|
|
O2=\
|
|
|
|
file_$(GOOS).$O\
|
|
|
|
socket_$(GOOS).$O\
|
|
|
|
time_$(GOARCH)_$(GOOS).$O\
|
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
syscall.a: a1 a2
|
|
|
|
|
2008-09-26 15:11:26 -06:00
|
|
|
a1: $(O1)
|
2008-11-18 18:11:56 -07:00
|
|
|
$(AR) grc syscall.a errstr_$(GOOS).$O syscall_$(GOARCH)_$(GOOS).$O types_$(GOARCH)_$(GOOS).$O asm_$(GOARCH)_$(GOOS).$O cast_$(GOARCH).$O syscall.$O
|
2008-09-26 15:11:26 -06:00
|
|
|
rm -f $(O1)
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2008-09-26 15:11:26 -06:00
|
|
|
a2: $(O2)
|
2008-11-18 18:11:56 -07:00
|
|
|
$(AR) grc syscall.a file_$(GOOS).$O socket_$(GOOS).$O time_$(GOARCH)_$(GOOS).$O
|
2008-09-26 15:11:26 -06:00
|
|
|
rm -f $(O2)
|
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
newpkg: clean
|
|
|
|
$(AR) grc syscall.a
|
|
|
|
|
|
|
|
$(O1): newpkg
|
2008-09-26 15:11:26 -06:00
|
|
|
$(O2): a1
|
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
nuke: clean
|
|
|
|
rm -f $(GOROOT)/pkg/syscall.a
|
|
|
|
|
|
|
|
packages: syscall.a
|
|
|
|
|
|
|
|
install: packages
|
|
|
|
cp syscall.a $(GOROOT)/pkg/syscall.a
|
|
|
|
|