2 CFLAGS-init-first.c
= -fkeep-inline-functions
4 sysdep_routines
+= errno-loc
8 CPPFLAGS
+= -DHAVE_LLSEEK
=1
12 sysdep_routines
+= sysctl clone llseek getresuid getresgid umount umount2
14 sysdep_headers
+= sys
/mount.h sys
/acct.h sys
/sysctl.h sys
/mtio.h \
15 sys
/io.h sys
/klog.h sys
/kdaemon.h \
16 sys
/user.h sys
/sysmacros.h sys
/procfs.h sys
/prctl.h \
17 sys
/kd.h sys
/soundcard.h sys
/vt.h \
18 sys
/quota.h sys
/fsuid.h \
19 scsi
/sg.h scsi
/scsi.h sys
/pci.h sys
/ultrasound.h \
22 install-others
+= $(inst_includedir
)/bits
/syscall.h
24 # Generate the list of SYS_* macros for the system calls (__NR_* macros).
25 $(objpfx
)syscall-
%.h
$(objpfx
)syscall-
%.d
: ..
/sysdeps
/unix
/sysv
/linux
/sys
/syscall.h
28 echo
'/* Generated at libc build time from kernel syscall list. */';\
30 echo
'#ifndef _SYSCALL_H'; \
31 echo
'# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."'; \
34 SUNPRO_DEPENDENCIES
='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\
35 $(@:.d=.h) $(@:.h=.d))' \
36 $(CC
) -E
-x c
$(sysincludes
) $< -D_LIBC
-dM | \
37 sed
-n
's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p'; \
39 mv
-f
$(@
:.d
=.h
).new
$(@
:.d
=.h
)
41 $(inst_includedir
)/bits
/syscall.h
: $(objpfx
)syscall-list.h
$(+force)
42 $(make-target-directory
)
43 if
test -r
$@
&& cmp
-s
$< $@
; \
44 then echo
'bits/syscall.h unchanged'; \
45 else $(INSTALL_DATA
) $< $@
; fi
48 # Get the generated list of dependencies (probably /usr/include/asm/unistd.h).
49 -include $(objpfx
)syscall-list.d
51 generated
+= syscall-list.h syscall-list.d
55 sysdep_headers
+= sys
/timex.h
57 sysdep_routines
+= ntp_adjtime ntp_gettime
60 ifeq ($(subdir
),socket
)
61 sysdep_headers
+= net
/if.h net
/if_ppp.h net
/ppp-comp.h \
62 net
/ppp_defs.h net
/if_arp.h net
/route.h net
/ethernet.h \
63 net
/if_slip.h net
/if_packet.h net
/if_shaper.h
64 sysdep_routines
+= cmsg_nxthdr sa_len
67 ifeq ($(subdir
),sunrpc
)
68 sysdep_headers
+= nfs
/nfs.h
71 ifeq ($(subdir
),termios
)
72 sysdep_headers
+= termio.h
75 ifeq ($(subdir
),stdio-common
)
76 # Just disable the auto generation in sysdeps/generic
77 inhibit-siglist
:= yes
80 ifeq ($(subdir
),posix
)
81 sysdep_headers
+= bits
/pthreadtypes.h
85 sysdep_headers
+= sys
/socketvar.h netinet
/in_systm.h \
86 netinet
/if_fddi.h netinet
/if_tr.h netinet
/igmp.h \
87 netipx
/ipx.h netash
/ash.h netax25
/ax25.h netatalk
/at.h \
88 netrom
/netrom.h netpacket
/packet.h netrose
/rose.h \
92 # Don't compile the ctype glue code, since there is no old non-GNU C library.
95 ifeq ($(subdir
),dirent
)
96 sysdep_routines
+= getdents64
100 CFLAGS-ypclnt.c
= -DUSE_BINDINGDIR
=1