1 # Copyright (C) 1991,92,93,94,95,96,97,98,99,2001,2002,2004,2006
2 # Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
5 # The GNU C Library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
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 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with the GNU C Library; if not, see
17 # <http://www.gnu.org/licenses/>.
23 # Some things below (but before including Rules) use configuration variables.
27 headers
= hurd.h
$(interface-headers
) \
28 $(addprefix hurd
/,fd.h id.h port.h signal.h sigpreempt.h ioctl.h\
29 userlink.h resource.h threadvar.h lookup.h
)
31 inline-headers
= hurd.h
$(addprefix hurd
/,fd.h signal.h \
32 userlink.h threadvar.h port.h
)
34 # The RPC interfaces go in a separate library.
35 interface-library
:= libhurduser
36 user-interfaces
:= $(addprefix hurd
/,\
38 process process_request \
39 msg msg_reply msg_request \
40 exec exec_startup crash interrupt \
41 fs fsys io term tioctl socket ifsock \
42 login password pfinet \
44 server-interfaces
:= hurd
/msg faultexc
46 routines
= hurdstartup hurdinit \
47 hurdid hurdpid hurdrlimit hurdprio hurdexec hurdselect \
48 hurdlookup lookup-retry lookup-at \
53 geteuids seteuids getumask fchroot \
55 hurdchdir hurdfchdir \
60 ports-get ports-set hurdports hurdmsg \
62 $(sig
) $(dtable
) $(inlines
) port-cleanup report-wait xattr
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 \
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
73 # XXX this is a temporary hack; see hurdmalloc.h
74 routines
+= hurdmalloc
75 distribute
+= hurdmalloc.h
77 # Binary compatibility for libc.so.0.2[GLIBC_2.0].
78 ifeq ($(versioning
),yes
)
82 shared-only-routines
= compat-20
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
91 generated
+= $(inlines
:=.c
)
93 include ..
/mach
/Machrules
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
101 # The special exc server for sigthread faults uses a special prefix.
102 MIGFLAGS-faultexc
= -prefix _hurdsig_fault_
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