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