Side by Side Diff: misc/cgo/testso/Makefile
Issue 5788043 :
code review 5788043: misc/cgo: re-enable testso (Closed)
Patch Set: diff -r c64018498d5f https://code.google.com/p/go
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
.hgignore
misc/cgo/testso/Makefile
misc/cgo/testso/cgoso.go
misc/cgo/testso/cgoso_c.c
misc/cgo/testso/main.go
misc/cgo/testso/test.bash
src/run.bash
OLD NEW
(Empty) 1 # Copyright 2011 The Go Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style
3 # license that can be found in the LICENSE file.
4
5 include ../../../src/Make.inc
6
7 TARG=cgosotest
8
9 CGO_DEPS+=libcgoso.so
10 CGO_LDFLAGS+=-lcgoso -L.
11 CLEANFILES+=out libcgoso.so
12 CGOFILES=\
13 cgoso.go\
14
15 include ../../../src/Make.pkg
16
17 libcgoso.so: cgoso_c.c
18 gcc cgoso_c.c -fPIC -o $@ $(_CGO_CFLAGS_$(GOARCH)) $(_CGO_LDFLAGS_$(GOOS
))
19
20 out: install main.go
21 $(GC) $(GCFLAGS) $(GCIMPORTS) main.go
22 $(LD) -o $@ main.$O
OLD NEW