# Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. include ../../Make.inc TARG=net GOFILES=\ dial.go\ dnsclient.go\ dnsmsg.go\ fd_$(GOOS).go\ hosts.go\ interface.go\ ip.go\ ipsock.go\ iprawsock.go\ net.go\ parse.go\ pipe.go\ sock.go\ tcpsock.go\ udpsock.go\ unixsock.go\ GOFILES_freebsd=\ dnsclient_unix.go\ dnsconfig.go\ fd.go\ file.go\ interface_bsd.go\ interface_freebsd.go\ lookup_unix.go\ newpollserver.go\ port.go\ sendfile_stub.go\ sock_bsd.go\ CGOFILES_freebsd=\ cgo_bsd.go\ cgo_unix.go\ GOFILES_darwin=\ dnsclient_unix.go\ dnsconfig.go\ fd.go\ file.go\ interface_bsd.go\ interface_darwin.go\ lookup_unix.go\ newpollserver.go\ port.go\ sendfile_stub.go\ sock_bsd.go\ CGOFILES_darwin=\ cgo_bsd.go\ cgo_unix.go\ GOFILES_linux=\ dnsclient_unix.go\ dnsconfig.go\ fd.go\ file.go\ interface_linux.go\ lookup_unix.go\ newpollserver.go\ port.go\ sendfile_linux.go\ sock_linux.go\ GOFILES_plan9=\ interface_stub.go\ lookup_unix.go\ sendfile_stub.go\ ifeq ($(GOARCH),arm) # ARM has no cgo, so use the stubs. GOFILES_linux+=cgo_stub.go else CGOFILES_linux=\ cgo_linux.go\ cgo_unix.go endif GOFILES_windows=\ file_windows.go\ interface_windows.go\ lookup_windows.go\ sendfile_windows.go\ sock_windows.go\ GOFILES+=$(GOFILES_$(GOOS)) ifneq ($(CGOFILES_$(GOOS)),) CGOFILES+=$(CGOFILES_$(GOOS)) endif include ../../Make.pkg