Adjusted.
[glibc.git] / hurd / Makefile
blob0d932e501f0802fe1bce392443c2e336aaabc2a5
1 # Copyright (C) 1991,92,93,94,95,96,97,98,99 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 Library General Public License
6 # as published by the Free Software Foundation; either version 2 of
7 # 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 # Library General Public License for more details.
14 # You should have received a copy of the GNU Library General Public
15 # License along with the GNU C Library; see the file COPYING.LIB. If not,
16 # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 # Boston, MA 02111-1307, USA.
19 subdir := hurd
21 all:
23 # Some things below (but before including Rules) use configuration variables.
24 include ../Makeconfig
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/,\
37 auth startup \
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 \
44 server-interfaces := hurd/msg faultexc
46 routines = hurdstartup hurdinit \
47 hurdid hurdlookup hurdpid hurdrlimit hurdprio hurdexec hurdselect \
48 get-host set-host \
49 path-lookup \
50 setauth \
51 pid2task task2pid \
52 geteuids seteuids getumask fchroot \
53 hurdsock hurdauth \
54 hurdchdir hurdfchdir \
55 privports \
56 msgportdemux \
57 fopenport \
58 vpprintf \
59 ports-get ports-set hurdports hurdmsg \
60 $(sig) $(dtable) $(inlines) port-cleanup report-wait
61 sig = hurdsig hurdfault siginfo hurd-raise preempt-sig \
62 trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \
63 thread-self thread-cancel intr-msg catch-signal
64 dtable = dtable port2fd new-fd alloc-fd intern-fd \
65 getdport openport \
66 fd-close fd-read fd-write hurdioctl ctty-input ctty-output
67 inlines = $(inline-headers:%.h=%-inlines)
68 distribute = hurdstartup.h hurdfault.h hurdhost.h \
69 faultexc.defs intr-rpc.defs intr-rpc.h intr-msg.h Notes
71 # XXX this is a temporary hack; see hurdmalloc.h
72 routines += hurdmalloc
73 distribute += hurdmalloc.h
75 # Binary compatibility for libc.so.0.2[GLIBC_2.0].
76 ifeq ($(versioning),yes)
77 routines += compat-20
78 endif
80 shared-only-routines = compat-20
82 # For each of the $(inline-headers), generate a trivial source
83 # file that will #include it to define its inline functions as real functions.
84 $(inlines:%=$(objpfx)%.c): $(objpfx)%-inlines.c: %.h
85 (h="`echo $(subst /,_,$*) | tr '[a-z]' '[A-Z]'`"; \
86 echo "#define _$${h}_H_EXTERN_INLINE /* Define real function. */"; \
87 echo '#include "$<"') > $@-new
88 mv -f $@-new $@
89 generated += $(inlines:=.c)
91 include ../mach/Machrules
92 include ../Rules
94 # intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC
95 # stubs import <hurd/signal.h> and #define __mach_msg to
96 # _hurd_intr_rpc_mach_msg.
97 user-MIGFLAGS += -imacros intr-rpc.defs
99 # The special exc server for sigthread faults uses a special prefix.
100 MIGFLAGS-faultexc = -prefix _hurdsig_fault_
102 # We need this static dependency to get faultexc.h generated the first time.
103 $(objpfx)hurdfault.o $(objpfx)hurdfault.d: \
104 $(objpfx)faultexc_server.h $(objpfx)faultexc_server.c