mirror of
https://github.com/golang/go
synced 2024-11-26 17:56:55 -07:00
move src/runtime -> src/lib/runtime;
only automatic g4 mv here. R=r OCL=30002 CL=30007
This commit is contained in:
parent
f52c02641e
commit
3f6acf1120
@ -1,3 +1,18 @@
|
||||
/*
|
||||
* The authors of this software are Rob Pike and Ken Thompson.
|
||||
* Copyright (c) 2002 by Lucent Technologies.
|
||||
* Portions Copyright 2009 The Go Authors. All rights reserved.
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose without fee is hereby granted, provided that this entire notice
|
||||
* is included in all copies of any software which is or includes a copy
|
||||
* or modification of this software and in all copies of the supporting
|
||||
* documentation for such software.
|
||||
* THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
|
||||
* WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY
|
||||
* REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
|
||||
* OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* The authors of this software are Rob Pike and Ken Thompson.
|
||||
* Copyright (c) 2002 by Lucent Technologies.
|
@ -1,119 +0,0 @@
|
||||
# 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.
|
||||
|
||||
# Set SIZE to 32 or 64.
|
||||
SIZE_386=32
|
||||
SIZE_amd64=64
|
||||
SIZE_arm=32
|
||||
SIZE=$(SIZE_$(GOARCH))
|
||||
|
||||
# Setup CFLAGS. Add -D_64BIT on 64-bit platforms (sorry).
|
||||
CFLAGS_64=-D_64BIT
|
||||
CFLAGS=-I$(GOOS) -I$(GOOS)/$(GOARCH) -wF $(CFLAGS_$(SIZE))
|
||||
|
||||
# Set O to right letter.
|
||||
O_386=8
|
||||
O_amd64=6
|
||||
O_arm=5
|
||||
O=$(O_$(GOARCH))
|
||||
|
||||
# Tools
|
||||
CC=$(O)c
|
||||
AS=$(O)a
|
||||
AR=6ar # sic
|
||||
|
||||
LIB=lib.a
|
||||
|
||||
# 386-specific object files
|
||||
OFILES_386=\
|
||||
vlop.$O\
|
||||
vlrt.$O\
|
||||
|
||||
OFILES=\
|
||||
array.$O\
|
||||
asm.$O\
|
||||
chan.$O\
|
||||
closure.$O\
|
||||
float.$O\
|
||||
float_go.$O\
|
||||
hashmap.$O\
|
||||
iface.$O\
|
||||
malloc.$O\
|
||||
malloc_go.$O\
|
||||
mcache.$O\
|
||||
mcentral.$O\
|
||||
mem.$O\
|
||||
mfixalloc.$O\
|
||||
mgc0.$O\
|
||||
mheap.$O\
|
||||
mheapmap$(SIZE).$O\
|
||||
msize.$O\
|
||||
print.$O\
|
||||
proc.$O\
|
||||
rune.$O\
|
||||
runtime.$O\
|
||||
rt0.$O\
|
||||
sema.$O\
|
||||
sema_go.$O\
|
||||
signal.$O\
|
||||
string.$O\
|
||||
symtab.$O\
|
||||
sys.$O\
|
||||
thread.$O\
|
||||
traceback.$O\
|
||||
$(OFILES_$(GOARCH))\
|
||||
|
||||
HFILES=\
|
||||
runtime.h\
|
||||
hashmap.h\
|
||||
malloc.h\
|
||||
$(GOOS)/os.h\
|
||||
$(GOOS)/$(GOARCH)/defs.h\
|
||||
|
||||
install: $(LIB) runtime.acid
|
||||
cp $(LIB) $(GOROOT)/lib/lib_$(GOARCH)_$(GOOS).a
|
||||
cp runtime.acid $(GOROOT)/acid/runtime.acid
|
||||
|
||||
$(LIB): $(OFILES)
|
||||
$(AR) rc $(LIB) $(OFILES)
|
||||
|
||||
$(OFILES): $(HFILES)
|
||||
|
||||
nuke:
|
||||
rm -f *.[568] *.a $(GOROOT)/lib/$(LIB)
|
||||
|
||||
clean:
|
||||
rm -f *.[568] *.a runtime.acid cgo2c
|
||||
|
||||
%.$O: %.c
|
||||
$(CC) $(CFLAGS) $<
|
||||
|
||||
%.$O: $(GOARCH)/%.c
|
||||
$(CC) $(CFLAGS) $<
|
||||
|
||||
%.$O: $(GOOS)/%.c
|
||||
$(CC) $(CFLAGS) $<
|
||||
|
||||
%.$O: $(GOOS)/$(GOARCH)/%.c
|
||||
$(CC) $(CFLAGS) $<
|
||||
|
||||
%.$O: $(GOARCH)/%.s
|
||||
$(AS) $<
|
||||
|
||||
%.$O: $(GOOS)/$(GOARCH)/%.s
|
||||
$(AS) $<
|
||||
|
||||
cgo2c: cgo2c.c
|
||||
quietgcc -o $@ $<
|
||||
|
||||
%.c: %.cgo cgo2c
|
||||
./cgo2c $< > $@.tmp
|
||||
mv -f $@.tmp $@
|
||||
|
||||
runtime.acid: runtime.h proc.c
|
||||
$(CC) -a proc.c >runtime.acid
|
||||
|
||||
chan.acid: runtime.h chan.c
|
||||
$(CC) -a chan.c >chan.acid
|
||||
|
Loading…
Reference in New Issue
Block a user