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
include ../../Make.inc
+x:=$(shell gomake -f Makefile.auto)
+
TARG=runtime
GOFILES=\
os_GOOS.h\
signals_GOOS.h\
defs_GOOS_GOARCH.h\
- zasm_GOOS_GOARCH.h\
HFILES=\
cgocall.h\
hashmap.h\
malloc.h\
stack.h\
- asm_$(GOARCH).h\
$(AUTOHFILES)\
GOFILES+=$(GOFILES_$(GOOS))
zasm_GOOS_GOARCH.h: zasm_$(GOOS)_$(GOARCH).h
cp $^ $@
+
+%.$O: zasm_GOOS_GOARCH.h
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+include ../../Make.inc
+
GOARCHES=\
386\
amd64\
zsyscall_windows_amd64.c\
zversion.go\
+HFILES=\
+ arch_GOARCH.h\
+ os_GOOS.h\
+ signals_GOOS.h\
+ defs_GOOS_GOARCH.h\
+ zasm_GOOS_GOARCH.h\
+
all: auto
auto: $(AUTO)
mv -f $@.tmp $@
# struct field offsets #defined for assembly
-zasm_%.h: mkasmh.sh proc.c defs.h
+zasm_%.h: mkasmh.sh proc.c $(HFILES)
./mkasmh.sh $* >$@.tmp
mv -f $@.tmp $@
clean:
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 $^ $@