LEFT | RIGHT |
1 # Copyright 2009 The Go Authors. All rights reserved. | 1 # Copyright 2011 The Go Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style | 2 # Use of this source code is governed by a BSD-style |
3 # license that can be found in the LICENSE file. | 3 # license that can be found in the LICENSE file. |
4 | 4 |
5 GOOS=windows | 5 GOOS=windows |
6 | 6 |
7 include $(GOROOT)/src/Make.$(GOARCH) | 7 include ../../../Make.inc |
8 | 8 |
9 TARG=wingui | 9 TARG=wingui |
10 | 10 |
11 GOFILES=\ | 11 GOFILES=\ |
12 gui.go\ | 12 gui.go\ |
13 winapi.go\ | 13 winapi.go\ |
14 zwinapi.go\ | 14 zwinapi.go\ |
15 | 15 |
16 include $(GOROOT)/src/Make.cmd | 16 include ../../../Make.cmd |
17 | 17 |
18 zwinapi.go: winapi.go | 18 zwinapi.go: winapi.go |
19 $(GOROOT)/src/pkg/syscall/mksyscall_windows.sh $< \ | 19 $(GOROOT)/src/pkg/syscall/mksyscall_windows.sh $< \ |
20 | sed 's/^package.*syscall$$/package main/' \ | 20 | sed 's/^package.*syscall$$/package main/' \ |
21 | sed '/^import/a \ | 21 | sed '/^import/a \ |
22 import "syscall"' \ | 22 import "syscall"' \ |
23 | sed 's/Syscall/syscall.Syscall/' \ | 23 | sed 's/Syscall/syscall.Syscall/' \ |
| 24 | sed 's/EINVAL/syscall.EINVAL/' \ |
24 | gofmt \ | 25 | gofmt \ |
25 > $@ | 26 > $@ |
LEFT | RIGHT |