1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

syscall: sort Makefile, mkall.sh and mkerrors.sh entries

R=golang-dev, jsing
CC=golang-dev
https://golang.org/cl/5495062
This commit is contained in:
Mikio Hara 2011-12-16 19:51:25 +09:00
parent ecc317647b
commit 055b4f7ea0
3 changed files with 74 additions and 74 deletions

View File

@ -16,16 +16,6 @@ GOFILES=\
zsysnum_$(GOOS)_$(GOARCH).go\
ztypes_$(GOOS)_$(GOARCH).go\
GOFILES_freebsd=\
bpf_bsd.go\
env_unix.go\
exec_unix.go\
route_bsd.go\
route_freebsd.go\
sockcmsg_unix.go\
syscall_bsd.go\
syscall_unix.go\
GOFILES_darwin=\
bpf_bsd.go\
env_unix.go\
@ -36,6 +26,16 @@ GOFILES_darwin=\
syscall_bsd.go\
syscall_unix.go\
GOFILES_freebsd=\
bpf_bsd.go\
env_unix.go\
exec_unix.go\
route_bsd.go\
route_freebsd.go\
sockcmsg_unix.go\
syscall_bsd.go\
syscall_unix.go\
GOFILES_linux=\
env_unix.go\
exec_unix.go\
@ -67,6 +67,10 @@ GOFILES_openbsd=\
syscall_unix.go\
zsysctl_openbsd.go\
GOFILES_plan9=\
env_plan9.go\
exec_plan9.go\
GOFILES_windows=\
env_windows.go\
exec_windows.go\
@ -74,10 +78,6 @@ GOFILES_windows=\
zerrors_windows.go\
ztypes_windows.go\
GOFILES_plan9=\
env_plan9.go\
exec_plan9.go\
OFILES=\
asm_$(GOOS)_$(GOARCH).$O\

View File

@ -109,17 +109,6 @@ _* | *_ | _)
echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2
exit 1
;;
freebsd_386)
mkerrors="$mkerrors -m32"
mksyscall="./mksyscall.pl -l32"
mksysnum="curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
freebsd_amd64)
mkerrors="$mkerrors -m64"
mksysnum="curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
darwin_386)
mkerrors="$mkerrors -m32"
mksyscall="./mksyscall.pl -l32"
@ -131,6 +120,17 @@ darwin_amd64)
mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
freebsd_386)
mkerrors="$mkerrors -m32"
mksyscall="./mksyscall.pl -l32"
mksysnum="curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
freebsd_amd64)
mkerrors="$mkerrors -m64"
mksysnum="curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
linux_386)
mkerrors="$mkerrors -m32"
mksyscall="./mksyscall.pl -l32"
@ -148,26 +148,6 @@ linux_arm)
mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd.h"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
windows_386)
mksyscall="./mksyscall_windows.pl -l32"
mksysnum=
mktypes=
mkerrors="./mkerrors_windows.sh -m32"
zerrors="zerrors_windows.go"
;;
windows_amd64)
mksyscall="./mksyscall_windows.pl"
mksysnum=
mktypes=
mkerrors="./mkerrors_windows.sh -m32"
zerrors="zerrors_windows.go"
;;
plan9_386)
mkerrors=
mksyscall="./mksyscall.pl -l32 -plan9"
mksysnum="./mksysnum_plan9.sh /n/sources/plan9/sys/src/libc/9syscall/sys.h"
mktypes="XXX"
;;
openbsd_386)
mkerrors="$mkerrors -m32"
mksyscall="./mksyscall.pl -l32 -openbsd"
@ -184,6 +164,26 @@ openbsd_amd64)
mksysnum="curl -s 'http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
mktypes="GOARCH=$GOARCH cgo -godefs"
;;
plan9_386)
mkerrors=
mksyscall="./mksyscall.pl -l32 -plan9"
mksysnum="./mksysnum_plan9.sh /n/sources/plan9/sys/src/libc/9syscall/sys.h"
mktypes="XXX"
;;
windows_386)
mksyscall="./mksyscall_windows.pl -l32"
mksysnum=
mktypes=
mkerrors="./mkerrors_windows.sh -m32"
zerrors="zerrors_windows.go"
;;
windows_amd64)
mksyscall="./mksyscall_windows.pl"
mksysnum=
mktypes=
mkerrors="./mkerrors_windows.sh -m32"
zerrors="zerrors_windows.go"
;;
*)
echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2
exit 1

View File

@ -15,35 +15,6 @@ GCC=gcc
uname=$(uname)
includes_Linux='
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
#include <bits/sockaddr.h>
#include <sys/epoll.h>
#include <sys/inotify.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/if_addr.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/filter.h>
#include <linux/netlink.h>
#include <linux/reboot.h>
#include <linux/rtnetlink.h>
#include <linux/ptrace.h>
#include <linux/wait.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/route.h>
#include <netpacket/packet.h>
'
includes_Darwin='
#define _DARWIN_C_SOURCE
#define KERNEL
@ -84,6 +55,35 @@ includes_FreeBSD='
#include <netinet/ip_mroute.h>
'
includes_Linux='
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
#include <bits/sockaddr.h>
#include <sys/epoll.h>
#include <sys/inotify.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/if_addr.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/filter.h>
#include <linux/netlink.h>
#include <linux/reboot.h>
#include <linux/rtnetlink.h>
#include <linux/ptrace.h>
#include <linux/wait.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/route.h>
#include <netpacket/packet.h>
'
includes_OpenBSD='
#include <sys/types.h>
#include <sys/param.h>