mirror of
https://github.com/golang/go
synced 2024-11-23 00:20:12 -07:00
75647d2024
R=r DELTA=756 (754 added, 0 deleted, 2 changed) OCL=19266 CL=19378
34 lines
490 B
Makefile
34 lines
490 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\
|
|
pagemap.$O\
|
|
triv.$O\
|
|
|
|
testrandom.$O: allocator.$O
|
|
testrepeat.$O: allocator.$O
|
|
|
|
test%: test%.$O $(OFILES)
|
|
$(LD) -o $@ $^
|
|
|
|
clean:
|
|
rm -f *.$O $(TARG)
|