summaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/Makefile122
-rw-r--r--src/pkg/runtime/cgo/Makefile60
-rw-r--r--src/pkg/runtime/debug/Makefile11
-rw-r--r--src/pkg/runtime/pprof/Makefile11
4 files changed, 5 insertions, 199 deletions
diff --git a/src/pkg/runtime/Makefile b/src/pkg/runtime/Makefile
index 50d0515e2..2cded8b47 100644
--- a/src/pkg/runtime/Makefile
+++ b/src/pkg/runtime/Makefile
@@ -4,103 +4,6 @@
include ../../Make.inc
-TARG=runtime
-
-GOFILES=\
- debug.go\
- error.go\
- extern.go\
- mem.go\
- sig.go\
- softfloat64.go\
- type.go\
- zgoarch_$(GOARCH).go\
- zgoos_$(GOOS).go\
- zruntime_defs_$(GOOS)_$(GOARCH).go\
- zversion.go\
-
-OFILES_darwin=\
- lock_sema.$O\
-
-OFILES_freebsd=\
- lock_futex.$O\
-
-OFILES_linux=\
- lock_futex.$O\
-
-OFILES_netbsd=\
- lock_sema.$O\
-
-OFILES_openbsd=\
- lock_sema.$O\
-
-OFILES_plan9=\
- lock_sema.$O\
-
-OFILES_windows=\
- callback_windows_$(GOARCH).$O\
- lock_sema.$O\
- zsyscall_windows_$(GOARCH).$O\
-
-# 386-specific object files
-OFILES_386=\
- vlop_386.$O\
- vlrt_386.$O\
- traceback_x86.$O\
-
-# amd64-specific object files
-OFILES_amd64=\
- traceback_x86.$O\
-
-# arm-specific object files
-OFILES_arm=\
- memset_arm.$O\
- softfloat_arm.$O\
- vlop_arm.$O\
- vlrt_arm.$O\
- traceback_arm.$O\
-
-OFILES=\
- $(OFILES_$(GOARCH))\
- $(OFILES_$(GOOS))\
- alg.$O\
- asm_$(GOARCH).$O\
- atomic_$(GOARCH).$O\
- cgocall.$O\
- chan.$O\
- closure_$(GOARCH).$O\
- complex.$O\
- cpuprof.$O\
- float.$O\
- hashmap.$O\
- iface.$O\
- mcache.$O\
- mcentral.$O\
- mem_$(GOOS).$O\
- memmove_$(GOARCH).$O\
- mfinal.$O\
- mfixalloc.$O\
- mgc0.$O\
- mheap.$O\
- msize.$O\
- print.$O\
- proc.$O\
- rt0_$(GOOS)_$(GOARCH).$O\
- rune.$O\
- runtime.$O\
- signal_$(GOOS)_$(GOARCH).$O\
- slice.$O\
- symtab.$O\
- sys_$(GOOS)_$(GOARCH).$O\
- thread_$(GOOS).$O\
- zmalloc_$(GOARCH).$O\
- zmprof_$(GOARCH).$O\
- zruntime1_$(GOARCH).$O\
- zsema_$(GOARCH).$O\
- zsigqueue_$(GOARCH).$O\
- zstring_$(GOARCH).$O\
- ztime_$(GOARCH).$O\
-
AUTOHFILES=\
arch_GOARCH.h\
os_GOOS.h\
@@ -108,32 +11,17 @@ AUTOHFILES=\
defs_GOOS_GOARCH.h\
zasm_GOOS_GOARCH.h\
-HFILES=\
- cgocall.h\
- runtime.h\
- hashmap.h\
- malloc.h\
- stack.h\
- $(AUTOHFILES)\
-
-GOFILES+=$(GOFILES_$(GOOS))
+all:
+ @echo use make install, make clean
-# For use by cgo.
-INSTALLFILES=$(pkgdir)/runtime.h $(pkgdir)/cgocall.h
-
-# Go tool will do this for package runtime.
-AFLAGS+=-DGOOS_$(GOOS) -DGOARCH_$(GOARCH)
-CFLAGS+=-DGOOS_$(GOOS) -DGOARCH_$(GOARCH)
-
-# special, out of the way compiler flag that means "add runtime metadata to output"
-GC+= -+
-
-include ../../Make.pkg
+pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
$(pkgdir)/%.h: %.h
@test -d $(QUOTED_GOROOT)/pkg && mkdir -p $(pkgdir)
cp $< "$@"
+install: $(pkgdir)/runtime.h $(pkgdir)/cgocall.h
+
clean: clean-local
clean-local:
diff --git a/src/pkg/runtime/cgo/Makefile b/src/pkg/runtime/cgo/Makefile
deleted file mode 100644
index 05c7ebae7..000000000
--- a/src/pkg/runtime/cgo/Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 2010 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.
-
-include ../../../Make.inc
-
-TARG=runtime/cgo
-
-GOFILES=\
- cgo.go\
-
-ifeq ($(CGO_ENABLED),1)
-
-# Unwarranted chumminess with Make.pkg's cgo rules.
-# Do not try this at home.
-CGO_OFILES=\
- gcc_$(GOARCH).o\
- gcc_$(GOOS)_$(GOARCH).o\
- gcc_util.o\
-
-ifeq ($(GOOS),windows)
-CGO_LDFLAGS=-lm -mthreads
-else
-CGO_LDFLAGS=-lpthread
-CGO_OFILES+=gcc_setenv.o\
-
-endif
-
-OFILES=\
- iscgo.$O\
- callbacks.$O\
- _cgo_import.$O\
- $(CGO_OFILES)\
-
-ifeq ($(GOOS),freebsd)
-OFILES+=\
- freebsd.$O\
-
-endif
-
-endif
-
-include ../../../Make.pkg
-
-ifeq ($(CGO_ENABLED),1)
-_cgo_defun.c:
- echo >$@
-
-_cgo_main.c:
- echo 'int main() { return 0; }' >$@
-endif
-
-gcc_$(GOARCH).o: gcc_$(GOARCH).S
- $(HOST_CC) $(_CGO_CFLAGS_$(GOARCH)) -g -O2 -fPIC -o $@ -c $^
-
-gcc_$(GOOS)_$(GOARCH).o: gcc_$(GOOS)_$(GOARCH).c
- $(HOST_CC) $(_CGO_CFLAGS_$(GOARCH)) -g -O2 -fPIC -o $@ -c $^
-
-gcc_%.o: gcc_%.c
- $(HOST_CC) $(_CGO_CFLAGS_$(GOARCH)) -g -O2 -fPIC -o $@ -c $^
diff --git a/src/pkg/runtime/debug/Makefile b/src/pkg/runtime/debug/Makefile
deleted file mode 100644
index 885f66aca..000000000
--- a/src/pkg/runtime/debug/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright 2011 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.
-
-include ../../../Make.inc
-
-TARG=runtime/debug
-GOFILES=\
- stack.go\
-
-include ../../../Make.pkg
diff --git a/src/pkg/runtime/pprof/Makefile b/src/pkg/runtime/pprof/Makefile
deleted file mode 100644
index 8bccc0cc0..000000000
--- a/src/pkg/runtime/pprof/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright 2010 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.
-
-include ../../../Make.inc
-
-TARG=runtime/pprof
-GOFILES=\
- pprof.go\
-
-include ../../../Make.pkg