mirror of
https://github.com/golang/go
synced 2024-11-12 08:40:21 -07:00
3f8aa662e9
mark and sweep, stop the world garbage collector (intermediate step in the way to ref counting). can run pretty with an explicit gc after each file. R=r DELTA=502 (346 added, 143 deleted, 13 changed) OCL=20630 CL=20635
39 lines
577 B
Makefile
39 lines
577 B
Makefile
# 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.
|
|
|
|
CC=6c -w
|
|
GC=6g
|
|
LD=6l
|
|
O=6
|
|
|
|
TARG=testrandom testrepeat testsizetoclass
|
|
|
|
default: $(TARG)
|
|
|
|
%.$O: %.c malloc.h
|
|
$(CC) $*.c
|
|
|
|
%.$O: %.go
|
|
$(GC) $*.go
|
|
|
|
OFILES=\
|
|
allocator.$O\
|
|
malloc.$O\
|
|
mem.$O\
|
|
ms.$O\
|
|
pagemap.$O\
|
|
triv.$O\
|
|
|
|
testrandom.$O: allocator.$O
|
|
testrepeat.$O: allocator.$O
|
|
|
|
test%: test%.$O $(OFILES)
|
|
$(LD) -o $@ $^
|
|
|
|
clean:
|
|
rm -f *.$O $(TARG)
|
|
|
|
runtime: $(OFILES)
|
|
6ar grc $(GOROOT)/lib/lib_$(GOARCH)_$(GOOS).a $^
|