1 # Copyright 2009 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 ../../Make.inc
6
7 TARG=net
8 GOFILES=\
9 dial.go\
10 dnsclient.go\
11 dnsmsg.go\
12 hosts.go\
13 interface.go\
14 ip.go\
15 iprawsock.go\
16 ipsock.go\
17 net.go\
18 parse.go\
19 pipe.go\
20 tcpsock.go\
21 udpsock.go\
22 unixsock.go\
23
24 GOFILES_freebsd=\
25 dnsclient_unix.go\
26 dnsconfig.go\
27 fd.go\
28 fd_$(GOOS).go\
29 file.go\
30 interface_bsd.go\
31 interface_freebsd.go\
32 iprawsock_posix.go\
33 ipsock_posix.go\
34 lookup_unix.go\
35 newpollserver.go\
36 port.go\
37 sendfile_stub.go\
38 sock.go\
39 sock_bsd.go\
40 tcpsock_posix.go\
41 udpsock_posix.go\
42 unixsock_posix.go\
43
44 ifeq ($(CGO_ENABLED),1)
45 CGOFILES_freebsd=\
46 cgo_bsd.go\
47 cgo_unix.go
48 else
49 GOFILES_freebsd+=cgo_stub.go
50 endif
51
52 GOFILES_darwin=\
53 dnsclient_unix.go\
54 dnsconfig.go\
55 fd.go\
56 fd_$(GOOS).go\
57 file.go\
58 interface_bsd.go\
59 interface_darwin.go\
60 iprawsock_posix.go\
61 ipsock_posix.go\
62 lookup_unix.go\
63 newpollserver.go\
64 port.go\
65 sendfile_stub.go\
66 sock.go\
67 sock_bsd.go\
68 tcpsock_posix.go\
69 udpsock_posix.go\
70 unixsock_posix.go\
71
72 ifeq ($(CGO_ENABLED),1)
73 CGOFILES_darwin=\
74 cgo_bsd.go\
75 cgo_unix.go
76 else
77 GOFILES_darwin+=cgo_stub.go
78 endif
79
80 GOFILES_linux=\
81 dnsclient_unix.go\
82 dnsconfig.go\
83 fd.go\
84 fd_$(GOOS).go\
85 file.go\
86 interface_linux.go\
87 iprawsock_posix.go\
88 ipsock_posix.go\
89 lookup_unix.go\
90 newpollserver.go\
91 port.go\
92 sendfile_linux.go\
93 sock.go\
94 sock_linux.go\
95 tcpsock_posix.go\
96 udpsock_posix.go\
97 unixsock_posix.go\
98
99 ifeq ($(CGO_ENABLED),1)
100 CGOFILES_linux=\
101 cgo_linux.go\
102 cgo_unix.go
103 else
104 GOFILES_linux+=cgo_stub.go
105 endif
106
107 GOFILES_openbsd=\
108 dnsclient_unix.go\
109 dnsconfig.go\
110 fd.go\
111 fd_$(GOOS).go\
112 file.go\
113 interface_bsd.go\
114 interface_openbsd.go\
115 iprawsock_posix.go\
116 ipsock_posix.go\
117 lookup_unix.go\
118 newpollserver.go\
119 port.go\
120 sendfile_stub.go\
121 sock.go\
122 sock_bsd.go\
123 tcpsock_posix.go\
124 udpsock_posix.go\
125 unixsock_posix.go\
126 cgo_stub.go\
127
128 GOFILES_plan9=\
129 file_plan9.go\
130 interface_stub.go\
131 iprawsock_plan9.go\
132 ipsock_plan9.go\
133 lookup_plan9.go\
134 tcpsock_plan9.go\
135 udpsock_plan9.go\
136 unixsock_plan9.go\
137
138 GOFILES_windows=\
139 fd_$(GOOS).go\
140 file_windows.go\
141 interface_windows.go\
142 iprawsock_posix.go\
143 ipsock_posix.go\
144 lookup_windows.go\
145 sendfile_windows.go\
146 sock.go\
147 sock_windows.go\
148 tcpsock_posix.go\
149 udpsock_posix.go\
150 unixsock_posix.go\
151
152 GOFILES+=$(GOFILES_$(GOOS))
153 ifneq ($(CGOFILES_$(GOOS)),)
154 CGOFILES+=$(CGOFILES_$(GOOS))
155 endif
156
157 include ../../Make.pkg