diff options
author | Russ Cox <rsc@golang.org> | 2009-03-24 11:49:22 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-03-24 11:49:22 -0700 |
commit | fcd76f7dc9482d7c1e89731e07712f05b2dc4cfa (patch) | |
tree | 80d7ab5845634b7f1a43a4f98857b77d5589e413 /src/runtime/Makefile | |
parent | 13584f4a23f2b6a431c3733f8d3469702890d7a9 (diff) | |
download | go-fcd76f7dc9482d7c1e89731e07712f05b2dc4cfa.tar.gz go-fcd76f7dc9482d7c1e89731e07712f05b2dc4cfa.zip |
move amd64-specific (but os-independent) pieces of runtime
into amd64/ directory.
split rt2_amd64.c into closure.c and traceback.c.
TBR=r
OCL=26678
CL=26678
Diffstat (limited to 'src/runtime/Makefile')
-rw-r--r-- | src/runtime/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 468a5eb325..9b852d46ef 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -13,12 +13,12 @@ RT0OFILES=\ rt0_$(GOARCH)_$(GOOS).$O\ LIBOFILES=\ - rt0_$(GOARCH).$O\ rt1_$(GOARCH)_$(GOOS).$O\ - rt2_$(GOARCH).$O\ sys_$(GOARCH)_$(GOOS).$O\ array.$O\ + asm.$O\ chan.$O\ + closure.$O\ float.$O\ float_go.$O\ hashmap.$O\ @@ -40,6 +40,7 @@ LIBOFILES=\ sema_go.$O\ string.$O\ symtab.$O\ + traceback.$O\ OFILES=$(RT0OFILES) $(LIBOFILES) OS_H=$(GOARCH)_$(GOOS).h @@ -64,10 +65,16 @@ clean: rm -f *.$(O) *.a runtime.acid cgo2c %.$O: %.c - $(CC) -wF $< + $(CC) $(CFLAGS) -wF $< -sys_file.$O: sys_file.c sys_types.h $(OS_H) - $(CC) -wF -D$(GOARCH)_$(GOOS) $< +%.$O: $(GOARCH)/%.c + $(CC) $(CFLAGS) -wF $< + +%.$O: %.s + $(AS) $< + +%.$O: $(GOARCH)/%.s + $(AS) $< cgo2c: cgo2c.c quietgcc -o $@ $< @@ -76,9 +83,6 @@ cgo2c: cgo2c.c ./cgo2c $< > $@.tmp mv -f $@.tmp $@ -%.$O: %.s - $(AS) $< - runtime.acid: runtime.h proc.c $(CC) -a proc.c >runtime.acid |