~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to misc/cgo/test/Makefile

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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=runtime/cgotest
8
 
 
9
 
CGOFILES=\
10
 
        align.go\
11
 
        basic.go\
12
 
        callback.go\
13
 
        env.go\
14
 
        exports.go\
15
 
        helpers.go\
16
 
        issue1222.go\
17
 
        issue1328.go\
18
 
        issue1560.go\
19
 
        issue2462.go\
20
 
        duplicate_symbol.go\
21
 
 
22
 
CGO_OFILES=\
23
 
        callback_c.o\
24
 
 
25
 
OFILES=\
26
 
        runtime.$O\
27
 
 
28
 
ifeq ($(GOOS),windows)
29
 
GCCVERSION=$(shell gcc -dumpversion)
30
 
ifeq ($(GOARCH),386)
31
 
GCCLIBDIR=/mingw/lib/gcc/mingw32/$(GCCVERSION)
32
 
CHKSTK=_chkstk.o
33
 
else
34
 
GCCLIBDIR=/mingw/lib/gcc/x86_64-w64-mingw32/$(GCCVERSION)
35
 
CHKSTK=_chkstk_ms.o
36
 
endif
37
 
 
38
 
CGOFILES+=sleep_windows.go
39
 
CGO_OFILES+=$(CHKSTK)
40
 
 
41
 
$(CHKSTK):
42
 
        ar -x "$(GCCLIBDIR)/libgcc.a" $@
43
 
endif
44
 
 
45
 
include ../../../src/Make.pkg
46
 
 
47
 
test:
48
 
        echo cgo: tests disabled. gotest is gone. TODO
 
 
b'\\ No newline at end of file'