mirror of
https://github.com/golang/go
synced 2024-11-25 03:37:58 -07:00
parent
851f30136d
commit
95907c4752
@ -245,5 +245,5 @@ endif
|
|||||||
%.$O: _obj/%.c $(HFILES)
|
%.$O: _obj/%.c $(HFILES)
|
||||||
$(CC) $(CFLAGS) -I . -o "$@" _obj/$*.c
|
$(CC) $(CFLAGS) -I . -o "$@" _obj/$*.c
|
||||||
|
|
||||||
%.$O: %.s
|
%.$O: %.s $(HFILES)
|
||||||
$(AS) $*.s
|
$(AS) $*.s
|
||||||
|
@ -51,6 +51,11 @@ OFILES_windows=\
|
|||||||
OFILES_386=\
|
OFILES_386=\
|
||||||
vlop_386.$O\
|
vlop_386.$O\
|
||||||
vlrt_386.$O\
|
vlrt_386.$O\
|
||||||
|
traceback_x86.$O\
|
||||||
|
|
||||||
|
# amd64-specific object files
|
||||||
|
OFILES_amd64=\
|
||||||
|
traceback_x86.$O\
|
||||||
|
|
||||||
# arm-specific object files
|
# arm-specific object files
|
||||||
OFILES_arm=\
|
OFILES_arm=\
|
||||||
@ -58,6 +63,7 @@ OFILES_arm=\
|
|||||||
softfloat_arm.$O\
|
softfloat_arm.$O\
|
||||||
vlop_arm.$O\
|
vlop_arm.$O\
|
||||||
vlrt_arm.$O\
|
vlrt_arm.$O\
|
||||||
|
traceback_x86.$O\
|
||||||
|
|
||||||
OFILES=\
|
OFILES=\
|
||||||
alg.$O\
|
alg.$O\
|
||||||
@ -97,7 +103,6 @@ OFILES=\
|
|||||||
sys_$(GOOS)_$(GOARCH).$O\
|
sys_$(GOOS)_$(GOARCH).$O\
|
||||||
thread_$(GOOS).$O\
|
thread_$(GOOS).$O\
|
||||||
time.$O\
|
time.$O\
|
||||||
traceback_$(GOARCH).$O\
|
|
||||||
$(OFILES_$(GOARCH))\
|
$(OFILES_$(GOARCH))\
|
||||||
$(OFILES_$(GOOS))\
|
$(OFILES_$(GOOS))\
|
||||||
|
|
||||||
@ -113,6 +118,7 @@ HFILES=\
|
|||||||
hashmap.h\
|
hashmap.h\
|
||||||
malloc.h\
|
malloc.h\
|
||||||
stack.h\
|
stack.h\
|
||||||
|
asm_$(GOARCH).h\
|
||||||
$(AUTOHFILES)\
|
$(AUTOHFILES)\
|
||||||
|
|
||||||
GOFILES+=$(GOFILES_$(GOOS))
|
GOFILES+=$(GOFILES_$(GOOS))
|
||||||
@ -157,10 +163,8 @@ version_$(GOOS).go:
|
|||||||
./goc2c "`pwd`/$<" > $@.tmp
|
./goc2c "`pwd`/$<" > $@.tmp
|
||||||
mv -f $@.tmp $@
|
mv -f $@.tmp $@
|
||||||
|
|
||||||
%.$O: asm_$(GOARCH).h
|
|
||||||
|
|
||||||
# for discovering offsets inside structs when debugging
|
# for discovering offsets inside structs when debugging
|
||||||
runtime.acid.$(GOARCH): runtime.h proc.c
|
runtime.acid.$(GOARCH): runtime.h proc.c $(AUTOHFILES)
|
||||||
$(CC) $(CFLAGS) -a proc.c >$@
|
$(CC) $(CFLAGS) -a proc.c >$@
|
||||||
|
|
||||||
# 386 traceback is really amd64 traceback
|
# 386 traceback is really amd64 traceback
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build amd64 386
|
||||||
|
|
||||||
#include "runtime.h"
|
#include "runtime.h"
|
||||||
#include "arch_GOARCH.h"
|
#include "arch_GOARCH.h"
|
||||||
#include "malloc.h"
|
#include "malloc.h"
|
Loading…
Reference in New Issue
Block a user