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-06 18:54:26 -07:00
|
|
|
# gobuild -m os_env.go os_error.go os_file.go os_test.go os_time.go\
|
|
|
|
# os_types.go stat_amd64_linux.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=\
|
2008-09-19 12:55:46 -06:00
|
|
|
os_error.$O\
|
2009-02-06 18:54:26 -07:00
|
|
|
os_types.$O\
|
2008-09-19 12:55:46 -06:00
|
|
|
|
2008-09-11 14:03:46 -06:00
|
|
|
O2=\
|
2008-11-19 20:43:32 -07:00
|
|
|
os_env.$O\
|
2009-02-06 18:54:26 -07:00
|
|
|
os_time.$O\
|
|
|
|
stat_$(GOARCH)_$(GOOS).$O\
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2009-02-06 18:54:26 -07:00
|
|
|
O3=\
|
|
|
|
os_file.$O\
|
|
|
|
|
|
|
|
os.a: a1 a2 a3
|
2008-11-18 18:11:56 -07:00
|
|
|
|
2008-09-19 12:55:46 -06:00
|
|
|
a1: $(O1)
|
2009-02-06 18:54:26 -07:00
|
|
|
$(AR) grc os.a os_error.$O os_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-06 18:54:26 -07:00
|
|
|
$(AR) grc os.a os_env.$O os_time.$O stat_$(GOARCH)_$(GOOS).$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)
|
|
|
|
$(AR) grc os.a os_file.$O
|
|
|
|
rm -f $(O3)
|
|
|
|
|
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
|
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
|
|
|
|
|