darwin\
freebsd\
linux\
+ netbsd\
openbsd\
plan9\
windows\
ifeq ($(GOOS),openbsd) # ... and not on OpenBSD
CGO_ENABLED:=0
endif
+ifeq ($(GOOS),netbsd) # ... and not on NetBSD
+CGO_ENABLED:=0
+endif
endif
# Make environment more standard.
install: install-$(NAME)
install-linux: install-default
install-freebsd: install-default
+install-netbsd: install-default
install-openbsd: install-default
install-windows: install-default
install: install-$(NAME) install-pprof
install-linux: install-default
install-freebsd: install-default
+install-netbsd: install-default
install-openbsd: install-default
install-windows: install-default
GOFILES_freebsd+=root_unix.go
GOFILES_linux+=root_unix.go
+GOFILES_netbsd+=root_unix.go
GOFILES_openbsd+=root_unix.go
GOFILES_plan9+=root_stub.go
GOFILES_windows+=root_windows.go
GOFILES_linux=\
type_unix.go
+GOFILES_netbsd=\
+ type_unix.go
+
GOFILES_openbsd=\
type_unix.go
GOFILES_linux+=cgo_stub.go
endif
+GOFILES_netbsd=\
+ dnsclient_unix.go\
+ dnsconfig.go\
+ fd.go\
+ fd_$(GOOS).go\
+ file.go\
+ interface_bsd.go\
+ interface_openbsd.go\
+ iprawsock_posix.go\
+ ipsock_posix.go\
+ lookup_unix.go\
+ newpollserver.go\
+ port.go\
+ sendfile_stub.go\
+ sock.go\
+ sock_bsd.go\
+ tcpsock_posix.go\
+ udpsock_posix.go\
+ unixsock_posix.go\
+ cgo_stub.go\
+
GOFILES_openbsd=\
dnsclient_unix.go\
dnsconfig.go\
exec_unix.go\
signal_unix.go\
+GOFILES_netbsd=\
+ dir_unix.go\
+ error_posix.go\
+ file_posix.go\
+ file_unix.go\
+ path_unix.go\
+ sys_bsd.go\
+ exec_posix.go\
+ exec_unix.go\
+ signal_unix.go\
+
GOFILES_openbsd=\
dir_unix.go\
error_posix.go\
GOFILES_linux=\
lp_unix.go\
+GOFILES_netbsd=\
+ lp_unix.go\
+
GOFILES_openbsd=\
lp_unix.go\
GOFILES_linux=\
path_unix.go
+GOFILES_netbsd=\
+ path_unix.go
+
GOFILES_openbsd=\
path_unix.go
OFILES_linux=\
lock_futex.$O\
+OFILES_netbsd=\
+ lock_sema.$O\
+
OFILES_openbsd=\
lock_sema.$O\
sockcmsg_unix.go\
syscall_unix.go\
+GOFILES_netbsd=\
+ bpf_bsd.go\
+ env_unix.go\
+ exec_unix.go\
+ route_bsd.go\
+ route_netbsd.go\
+ sockcmsg_unix.go\
+ syscall_bsd.go\
+ syscall_unix.go\
+ zsysctl_netbsd.go\
+
GOFILES_openbsd=\
bpf_bsd.go\
env_unix.go\
sys_unix.go\
zoneinfo_unix.go\
+GOFILES_netbsd=\
+ sys_unix.go\
+ zoneinfo_unix.go\
+
GOFILES_openbsd=\
sys_unix.go\
zoneinfo_unix.go\