mirror of
https://github.com/golang/go
synced 2024-11-25 11:57:58 -07:00
- missing makefile
R=r OCL=25714 CL=25714
This commit is contained in:
parent
b4802dd568
commit
bd4f5af107
66
src/lib/lang/Makefile
Normal file
66
src/lib/lang/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
# 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=\
|
||||
token.$O\
|
||||
|
||||
O2=\
|
||||
scanner.$O\
|
||||
|
||||
scanner.a: a1 a2
|
||||
token.a: a1 a2
|
||||
|
||||
a1: $(O1)
|
||||
$(AR) grc token.a token.$O
|
||||
rm -f $(O1)
|
||||
|
||||
a2: $(O2)
|
||||
$(AR) grc scanner.a scanner.$O
|
||||
rm -f $(O2)
|
||||
|
||||
newpkg: clean
|
||||
$(AR) grc scanner.a
|
||||
$(AR) grc token.a
|
||||
|
||||
$(O1): newpkg
|
||||
$(O2): a1
|
||||
|
||||
nuke: clean
|
||||
rm -f $(GOROOT)/pkg/scanner.a $(GOROOT)/pkg/token.a
|
||||
|
||||
packages: scanner.a token.a
|
||||
|
||||
install: packages
|
||||
cp scanner.a $(GOROOT)/pkg/scanner.a
|
||||
cp token.a $(GOROOT)/pkg/token.a
|
||||
|
Loading…
Reference in New Issue
Block a user