2008-09-24 16:26:55 -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 >Makefile
|
2009-04-16 01:18:37 -06:00
|
|
|
|
2009-04-16 21:52:37 -06:00
|
|
|
D=
|
|
|
|
|
2009-06-05 23:18:21 -06:00
|
|
|
include $(GOROOT)/src/Make.$(GOARCH)
|
|
|
|
AR=gopack
|
2008-09-24 16:26:55 -06:00
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
default: packages
|
2008-09-24 16:26:55 -06:00
|
|
|
|
|
|
|
clean:
|
2009-04-16 21:52:37 -06:00
|
|
|
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
|
2008-09-24 16:26:55 -06:00
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
test: packages
|
|
|
|
gotest
|
|
|
|
|
2008-11-19 13:52:30 -07:00
|
|
|
coverage: packages
|
|
|
|
gotest
|
2008-11-19 20:43:32 -07:00
|
|
|
6cov -g `pwd` | grep -v '_test\.go:'
|
2008-11-19 13:52:30 -07:00
|
|
|
|
2008-09-24 16:26:55 -06:00
|
|
|
%.$O: %.go
|
2009-06-05 23:18:21 -06:00
|
|
|
$(GC) -I_obj $*.go
|
2008-09-24 16:26:55 -06:00
|
|
|
|
|
|
|
%.$O: %.c
|
|
|
|
$(CC) $*.c
|
|
|
|
|
|
|
|
%.$O: %.s
|
|
|
|
$(AS) $*.s
|
|
|
|
|
|
|
|
O1=\
|
2009-02-03 16:58:13 -07:00
|
|
|
status.$O\
|
2009-04-14 21:31:31 -06:00
|
|
|
url.$O\
|
2008-09-24 16:26:55 -06:00
|
|
|
|
|
|
|
O2=\
|
|
|
|
request.$O\
|
|
|
|
|
|
|
|
O3=\
|
2009-06-09 11:58:58 -06:00
|
|
|
client.$O\
|
2008-09-24 16:26:55 -06:00
|
|
|
server.$O\
|
|
|
|
|
2009-04-14 21:31:31 -06:00
|
|
|
O4=\
|
|
|
|
fs.$O\
|
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2009-04-16 01:18:37 -06:00
|
|
|
phases: a1 a2 a3 a4
|
2009-04-16 21:52:37 -06:00
|
|
|
_obj$D/http.a: phases
|
2009-04-16 01:18:37 -06:00
|
|
|
|
|
|
|
a1: $(O1)
|
2009-04-16 21:52:37 -06:00
|
|
|
$(AR) grc _obj$D/http.a status.$O url.$O
|
2008-10-08 10:34:50 -06:00
|
|
|
rm -f $(O1)
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2009-04-16 01:18:37 -06:00
|
|
|
a2: $(O2)
|
2009-04-16 21:52:37 -06:00
|
|
|
$(AR) grc _obj$D/http.a request.$O
|
2008-10-08 10:34:50 -06:00
|
|
|
rm -f $(O2)
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2009-04-16 01:18:37 -06:00
|
|
|
a3: $(O3)
|
2009-06-09 11:58:58 -06:00
|
|
|
$(AR) grc _obj$D/http.a client.$O server.$O
|
2009-02-03 16:58:13 -07:00
|
|
|
rm -f $(O3)
|
2008-09-24 16:26:55 -06:00
|
|
|
|
2009-04-16 01:18:37 -06:00
|
|
|
a4: $(O4)
|
2009-04-16 21:52:37 -06:00
|
|
|
$(AR) grc _obj$D/http.a fs.$O
|
2009-04-14 21:31:31 -06:00
|
|
|
rm -f $(O4)
|
|
|
|
|
2009-04-16 01:18:37 -06:00
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
newpkg: clean
|
2009-04-16 21:52:37 -06:00
|
|
|
mkdir -p _obj$D
|
|
|
|
$(AR) grc _obj$D/http.a
|
2008-11-18 18:11:56 -07:00
|
|
|
|
|
|
|
$(O1): newpkg
|
2008-09-24 16:26:55 -06:00
|
|
|
$(O2): a1
|
|
|
|
$(O3): a2
|
2009-04-14 21:31:31 -06:00
|
|
|
$(O4): a3
|
2009-04-16 01:18:37 -06:00
|
|
|
$(O5): a4
|
2008-11-18 18:11:56 -07:00
|
|
|
|
|
|
|
nuke: clean
|
2009-06-05 23:18:21 -06:00
|
|
|
rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/http.a
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2009-04-16 21:52:37 -06:00
|
|
|
packages: _obj$D/http.a
|
2008-11-18 18:11:56 -07:00
|
|
|
|
|
|
|
install: packages
|
2009-06-05 23:18:21 -06:00
|
|
|
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
|
|
|
|
cp _obj$D/http.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/http.a
|