Remove powerpc, sparc fdim inlines (bug 22987).
[glibc.git] / hurd / Makefile
blob7a787d2900c15fbeb5171b9b0c9ae05656bee642
1 # Copyright (C) 1991-2018 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <http://www.gnu.org/licenses/>.
18 subdir := hurd
20 include ../Makeconfig
22 headers = hurd.h $(interface-headers) \
23 $(addprefix hurd/,fd.h id.h port.h signal.h sigpreempt.h ioctl.h\
24 userlink.h resource.h lookup.h)
26 inline-headers = hurd.h $(addprefix hurd/,fd.h signal.h \
27 userlink.h port.h)
29 # The RPC interfaces go in a separate library.
30 interface-library := libhurduser
31 user-interfaces := $(addprefix hurd/,\
32 auth startup \
33 process process_request \
34 msg msg_reply msg_request \
35 exec exec_startup crash interrupt \
36 fs fsys io term tioctl socket ifsock \
37 login password pfinet \
39 server-interfaces := hurd/msg faultexc
41 routines = hurdstartup hurdinit \
42 hurdid hurdpid hurdrlimit hurdprio hurdexec hurdselect \
43 hurdlookup lookup-retry lookup-at \
44 get-host set-host \
45 path-lookup \
46 setauth \
47 pid2task task2pid \
48 geteuids seteuids getumask fchroot \
49 hurdsock hurdauth \
50 hurdchdir hurdfchdir \
51 privports \
52 msgportdemux \
53 fopenport \
54 vpprintf \
55 ports-get ports-set hurdports hurdmsg \
56 errno-loc \
57 hurdlock \
58 $(sig) $(dtable) $(inlines) port-cleanup report-wait xattr
59 sig = hurdsig hurdfault siginfo hurd-raise preempt-sig \
60 trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \
61 thread-self thread-cancel intr-msg catch-signal
62 dtable = dtable port2fd new-fd alloc-fd intern-fd \
63 getdport openport \
64 fd-close fd-read fd-write hurdioctl ctty-input ctty-output
65 inlines = $(inline-headers:%.h=%-inlines)
67 # XXX this is a temporary hack; see hurdmalloc.h
68 routines += hurdmalloc
70 # Binary compatibility for libc.so.0.2[GLIBC_2.0].
71 ifeq ($(build-shared),yes)
72 routines += compat-20
73 endif
75 shared-only-routines = compat-20
77 # For each of the $(inline-headers), generate a trivial source
78 # file that will #include it to define its inline functions as real functions.
79 $(inlines:%=$(objpfx)%.c): $(objpfx)%-inlines.c: %.h
80 (h="`echo $(subst /,_,$*) | tr '[a-z]' '[A-Z]'`"; \
81 echo "#define _$${h}_H_EXTERN_INLINE /* Define real function. */"; \
82 echo '#include "$<"') > $@-new
83 mv -f $@-new $@
84 generated += $(inlines:=.c)
86 # Avoid ssp before TLS is initialized.
87 CFLAGS-hurdstartup.o = $(no-stack-protector)
88 CFLAGS-RPC_exec_startup_get_info.o = $(no-stack-protector)
90 # Make generated headers compatible with all support standards
91 migheaderpipe := | sed -e 's/\<ino64_t\>/__ino64_t/' -e 's/\<loff_t\>/__loff_t/'
92 include ../mach/Machrules
93 include ../Rules
95 # intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC
96 # stubs import <hurd/signal.h> and #define __mach_msg to
97 # _hurd_intr_rpc_mach_msg.
98 user-MIGFLAGS += -imacros intr-rpc.defs
100 # The special exc server for sigthread faults uses a special prefix.
101 MIGFLAGS-faultexc = -prefix _hurdsig_fault_
103 # We need this static dependency to get faultexc.h generated the first time.
104 $(objpfx)hurdfault.o $(objpfx)hurdfault.d: \
105 $(objpfx)faultexc_server.h $(objpfx)faultexc_server.c