Commit cfd17a1b authored by Russ Cox's avatar Russ Cox

runtime: fix build

I am looking forward to not supporting two build
systems simultaneously.  Make complains about
a circular dependency still, but I don't understand it
and it's probably not worth the time to figure out.

TBR=r
CC=golang-dev
https://golang.org/cl/5496058
parent 32734f46
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
include ../../Make.inc include ../../Make.inc
x:=$(shell gomake -f Makefile.auto)
TARG=runtime TARG=runtime
GOFILES=\ GOFILES=\
...@@ -106,7 +108,6 @@ AUTOHFILES=\ ...@@ -106,7 +108,6 @@ AUTOHFILES=\
os_GOOS.h\ os_GOOS.h\
signals_GOOS.h\ signals_GOOS.h\
defs_GOOS_GOARCH.h\ defs_GOOS_GOARCH.h\
zasm_GOOS_GOARCH.h\
HFILES=\ HFILES=\
cgocall.h\ cgocall.h\
...@@ -114,7 +115,6 @@ HFILES=\ ...@@ -114,7 +115,6 @@ HFILES=\
hashmap.h\ hashmap.h\
malloc.h\ malloc.h\
stack.h\ stack.h\
asm_$(GOARCH).h\
$(AUTOHFILES)\ $(AUTOHFILES)\
GOFILES+=$(GOFILES_$(GOOS)) GOFILES+=$(GOFILES_$(GOOS))
...@@ -155,3 +155,5 @@ signals_GOOS.h: signals_$(GOOS).h ...@@ -155,3 +155,5 @@ signals_GOOS.h: signals_$(GOOS).h
zasm_GOOS_GOARCH.h: zasm_$(GOOS)_$(GOARCH).h zasm_GOOS_GOARCH.h: zasm_$(GOOS)_$(GOARCH).h
cp $^ $@ cp $^ $@
%.$O: zasm_GOOS_GOARCH.h
...@@ -2,6 +2,8 @@ ...@@ -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.
include ../../Make.inc
GOARCHES=\ GOARCHES=\
386\ 386\
amd64\ amd64\
...@@ -48,6 +50,13 @@ AUTO=\ ...@@ -48,6 +50,13 @@ AUTO=\
zsyscall_windows_amd64.c\ zsyscall_windows_amd64.c\
zversion.go\ zversion.go\
HFILES=\
arch_GOARCH.h\
os_GOOS.h\
signals_GOOS.h\
defs_GOOS_GOARCH.h\
zasm_GOOS_GOARCH.h\
all: auto all: auto
auto: $(AUTO) auto: $(AUTO)
...@@ -86,9 +95,24 @@ zruntime_defs_%.go: proc.c iface.c hashmap.c chan.c $(HFILES) mkgodefs.sh ...@@ -86,9 +95,24 @@ zruntime_defs_%.go: proc.c iface.c hashmap.c chan.c $(HFILES) mkgodefs.sh
mv -f $@.tmp $@ mv -f $@.tmp $@
# struct field offsets #defined for assembly # struct field offsets #defined for assembly
zasm_%.h: mkasmh.sh proc.c defs.h zasm_%.h: mkasmh.sh proc.c $(HFILES)
./mkasmh.sh $* >$@.tmp ./mkasmh.sh $* >$@.tmp
mv -f $@.tmp $@ mv -f $@.tmp $@
clean: clean:
rm -f goc2c mkversion $(AUTO) rm -f goc2c mkversion $(AUTO)
arch_GOARCH.h: arch_$(GOARCH).h
cp $^ $@
defs_GOOS_GOARCH.h: defs_$(GOOS)_$(GOARCH).h
cp $^ $@
os_GOOS.h: os_$(GOOS).h
cp $^ $@
signals_GOOS.h: signals_$(GOOS).h
cp $^ $@
zasm_GOOS_GOARCH.h: zasm_$(GOOS)_$(GOARCH).h
cp $^ $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment