]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - mach/Makefile
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / mach / Makefile
index 0ef6e1696d259fbe4ca602e97147743625b6e88d..804b032e99319bf70058c5c1da47187a0597d140 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-2018 Free Software Foundation, Inc.
+# Copyright (C) 1991-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -13,7 +13,7 @@
 
 # You should have received a copy of the GNU Lesser General Public
 # License along with the GNU C Library; if not, see
-# <http://www.gnu.org/licenses/>.
+# <https://www.gnu.org/licenses/>.
 
 subdir := mach
 
@@ -21,9 +21,9 @@ include ../Makeconfig
 
 headers = mach_init.h mach.h mach_error.h mach-shortcuts.h mach/mach_traps.h \
          $(interface-headers) mach/mach.h mach/mig_support.h mach/error.h \
-         $(lock-headers) machine-sp.h
+         $(lock-headers) machine-sp.h bits/mach/param.h
 lock = spin-solid spin-lock mutex-init mutex-solid
-lock-headers = lock-intern.h machine-lock.h spin-lock.h
+lock-headers = lock-intern.h spin-lock.h
 routines = $(mach-syscalls) $(mach-shortcuts) \
           mach_init mig_strncpy msg \
           mig-alloc mig-dealloc mig-reply \
@@ -97,7 +97,8 @@ else
 $(mach-syscalls:%=$(objpfx)%.S): $(objpfx)%.S: $(objpfx)mach-syscalls.mk
        (echo '#include <sysdep.h>'; \
         echo 'kernel_trap (__$*,$(sysno-$*),$(nargs-$*))'; \
-        echo 'weak_alias (__$*, $*)') > $@-new
+        echo 'weak_alias (__$*, $*)'; \
+        echo 'libc_hidden_def (__$*)') > $@-new
         mv -f $@-new $@
 generated += $(mach-syscalls:=.S)
 endif  # mach-syscalls
@@ -146,9 +147,12 @@ $(objpfx)mach-shortcuts.h: $(mach-interface-list:%=$(objpfx)mach/%.h) \
 # The first line gets us one paragraph per line, with @s separating real lines.
 # The second line selects paragraphs for the shortcutted functions.
 # The third line removes `_rpc' from the names and reconstitutes the lines.
-       cat $^ | tr \\012 @ | sed s/@@/@%/g | tr % \\012 \
-       | grep '^/\* Routine [a-z0-9_]*_rpc \*/' \
-       | sed 's/_rpc//g' | tr @ \\012 > $@-new
+       ( echo "#include <mach/mach_types.h>" ; \
+         echo "#include <mach/message.h>" ; \
+         echo ; \
+         cat $^ | tr \\012 @ | sed s/@@/@%/g | tr % \\012 \
+         | grep '^/\* Routine [a-z0-9_]*_rpc \*/' \
+         | sed 's/_rpc//g' | tr @ \\012 ) > $@-new
        mv -f $@-new $@
 generated += mach-shortcuts.h