mirror of
https://github.com/golang/go
synced 2024-11-26 14:08:37 -07:00
afb1b0e6b7
Does not actually test so files. ««« original CL description misc/cgo: re-enable testso Also enabled it for darwin. R=rsc CC=golang-dev https://golang.org/cl/5754063 »»» R=golang-dev, minux.ma, r, f CC=golang-dev https://golang.org/cl/5756075
23 lines
515 B
Makefile
23 lines
515 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=cgosotest
|
|
|
|
CGO_DEPS+=libcgoso.so
|
|
CGO_LDFLAGS+=-lcgoso -L.
|
|
CLEANFILES+=out libcgoso.so
|
|
CGOFILES=\
|
|
cgoso.go\
|
|
|
|
include ../../../src/Make.pkg
|
|
|
|
libcgoso.so: cgoso_c.c
|
|
gcc cgoso_c.c -fPIC -o $@ $(_CGO_CFLAGS_$(GOARCH)) $(_CGO_LDFLAGS_$(GOOS))
|
|
|
|
out: install main.go
|
|
$(GC) $(GCFLAGS) $(GCIMPORTS) main.go
|
|
$(LD) -o $@ main.$O
|