2008-09-10 13:14:39 -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.
|
|
|
|
|
2008-09-19 12:55:46 -06:00
|
|
|
# DO NOT EDIT. Automatically generated by gobuild.
|
2009-02-10 17:40:06 -07:00
|
|
|
# gobuild -m dir_amd64_linux.go env.go error.go file.go stat_amd64_linux.go\
|
|
|
|
# time.go types.go >Makefile
|
2008-09-10 13:14:39 -06:00
|
|
|
O=6
|
|
|
|
GC=$(O)g
|
2008-09-19 12:55:46 -06:00
|
|
|
CC=$(O)c -w
|
|
|
|
AS=$(O)a
|
|
|
|
AR=$(O)ar
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
default: packages
|
2008-09-19 12:55:46 -06:00
|
|
|
|
|
|
|
clean:
|
2008-11-19 10:40:54 -07:00
|
|
|
rm -f *.$O *.a $O.out
|
2008-09-19 12:55:46 -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-19 12:55:46 -06:00
|
|
|
%.$O: %.go
|
|
|
|
$(GC) $*.go
|
|
|
|
|
|
|
|
%.$O: %.c
|
|
|
|
$(CC) $*.c
|
|
|
|
|
|
|
|
%.$O: %.s
|
|
|
|
$(AS) $*.s
|
|
|
|
|
2008-09-10 15:19:03 -06:00
|
|
|
O1=\
|
2009-02-10 17:40:06 -07:00
|
|
|
error.$O\
|
|
|
|
types.$O\
|
2008-09-19 12:55:46 -06:00
|
|
|
|
2008-09-11 14:03:46 -06:00
|
|
|
O2=\
|
2009-02-10 17:40:06 -07:00
|
|
|
env.$O\
|
2009-02-06 18:54:26 -07:00
|
|
|
stat_$(GOARCH)_$(GOOS).$O\
|
2009-02-10 17:40:06 -07:00
|
|
|
time.$O\
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2009-02-06 18:54:26 -07:00
|
|
|
O3=\
|
2009-02-10 17:40:06 -07:00
|
|
|
file.$O\
|
2009-02-06 18:54:26 -07:00
|
|
|
|
2009-02-08 11:18:50 -07:00
|
|
|
O4=\
|
|
|
|
dir_$(GOARCH)_$(GOOS).$O\
|
|
|
|
|
|
|
|
os.a: a1 a2 a3 a4
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2008-09-19 12:55:46 -06:00
|
|
|
a1: $(O1)
|
2009-02-10 17:40:06 -07:00
|
|
|
$(AR) grc os.a error.$O types.$O
|
2008-11-18 18:11:56 -07:00
|
|
|
rm -f $(O1)
|
|
|
|
|
2008-09-19 12:55:46 -06:00
|
|
|
a2: $(O2)
|
2009-02-10 17:40:06 -07:00
|
|
|
$(AR) grc os.a env.$O stat_$(GOARCH)_$(GOOS).$O time.$O
|
2008-11-18 18:11:56 -07:00
|
|
|
rm -f $(O2)
|
2008-09-11 14:03:46 -06:00
|
|
|
|
2009-02-06 18:54:26 -07:00
|
|
|
a3: $(O3)
|
2009-02-10 17:40:06 -07:00
|
|
|
$(AR) grc os.a file.$O
|
2009-02-06 18:54:26 -07:00
|
|
|
rm -f $(O3)
|
|
|
|
|
2009-02-08 11:18:50 -07:00
|
|
|
a4: $(O4)
|
|
|
|
$(AR) grc os.a dir_$(GOARCH)_$(GOOS).$O
|
|
|
|
rm -f $(O4)
|
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
newpkg: clean
|
|
|
|
$(AR) grc os.a
|
|
|
|
|
|
|
|
$(O1): newpkg
|
2008-09-18 16:06:43 -06:00
|
|
|
$(O2): a1
|
2009-02-06 18:54:26 -07:00
|
|
|
$(O3): a2
|
2009-02-08 11:18:50 -07:00
|
|
|
$(O4): a3
|
2008-09-18 16:06:43 -06:00
|
|
|
|
2008-11-18 18:11:56 -07:00
|
|
|
nuke: clean
|
|
|
|
rm -f $(GOROOT)/pkg/os.a
|
|
|
|
|
|
|
|
packages: os.a
|
|
|
|
|
|
|
|
install: packages
|
|
|
|
cp os.a $(GOROOT)/pkg/os.a
|
|
|
|
|