mirror of
https://github.com/golang/go
synced 2024-11-25 10:17:57 -07:00
91cb3489ab
Also delete gotest, since it's messy to fix and slated for deletion anyway. A couple of things outside src can't be tested any more. "go test" will be fixed and these tests will be re-enabled. They're noisy for now. Fixes #284. R=rsc CC=golang-dev https://golang.org/cl/5598049
48 lines
849 B
Makefile
48 lines
849 B
Makefile
# 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 ../../../src/Make.inc
|
|
|
|
TARG=runtime/cgotest
|
|
|
|
CGOFILES=\
|
|
align.go\
|
|
basic.go\
|
|
callback.go\
|
|
env.go\
|
|
exports.go\
|
|
helpers.go\
|
|
issue1222.go\
|
|
issue1328.go\
|
|
issue1560.go\
|
|
issue2462.go\
|
|
duplicate_symbol.go\
|
|
|
|
CGO_OFILES=\
|
|
callback_c.o\
|
|
|
|
OFILES=\
|
|
runtime.$O\
|
|
|
|
ifeq ($(GOOS),windows)
|
|
GCCVERSION=$(shell gcc -dumpversion)
|
|
ifeq ($(GOARCH),386)
|
|
GCCLIBDIR=/mingw/lib/gcc/mingw32/$(GCCVERSION)
|
|
CHKSTK=_chkstk.o
|
|
else
|
|
GCCLIBDIR=/mingw/lib/gcc/x86_64-w64-mingw32/$(GCCVERSION)
|
|
CHKSTK=_chkstk_ms.o
|
|
endif
|
|
|
|
CGOFILES+=sleep_windows.go
|
|
CGO_OFILES+=$(CHKSTK)
|
|
|
|
$(CHKSTK):
|
|
ar -x "$(GCCLIBDIR)/libgcc.a" $@
|
|
endif
|
|
|
|
include ../../../src/Make.pkg
|
|
|
|
test:
|
|
echo cgo: tests disabled. gotest is gone. TODO
|