Left: | ||
Right: |
LEFT | RIGHT |
---|---|
(no file at all) | |
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 | |
LEFT | RIGHT |