1999-02-27 Roland McGrath <roland@baalperazim.frob.com>
[platform/upstream/glibc.git] / hurd / Makefile
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.
3
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.
8
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.
13
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.
18
19 subdir := hurd
20
21 all:
22
23 # Some things below (but before including Rules) use configuration variables.
24 include ../Makeconfig
25
26
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)
30
31 # The RPC interfaces go in a separate library.
32 interface-library := libhurduser
33 user-interfaces         := $(addprefix hurd/,\
34                                        auth startup \
35                                        process process_request \
36                                        msg msg_reply msg_request \
37                                        exec exec_startup crash interrupt \
38                                        fs fsys io term tioctl socket ifsock \
39                                        login password \
40                                        )
41 server-interfaces       := hurd/msg faultexc
42
43 routines = hurdstartup hurdinit \
44            hurdid hurdlookup hurdpid hurdrlimit hurdprio hurdexec hurdselect \
45            get-host set-host \
46            path-lookup \
47            setauth \
48            pid2task task2pid \
49            geteuids seteuids getumask fchroot \
50            hurdsock hurdauth \
51            hurdchdir hurdfchdir \
52            privports \
53            msgportdemux \
54            fopenport \
55            vpprintf \
56            ports-get ports-set hurdports hurdmsg \
57            $(sig) $(dtable) hurdinline port-cleanup report-wait
58 sig     = hurdsig hurdfault siginfo hurd-raise preempt-sig \
59           trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \
60           thread-self thread-cancel intr-msg catch-signal
61 dtable  = dtable port2fd new-fd alloc-fd intern-fd \
62           getdport openport \
63           fd-close fd-read fd-write hurdioctl ctty-input ctty-output
64 distribute = hurdstartup.h hurdfault.h hurdhost.h \
65              faultexc.defs intr-rpc.defs intr-rpc.h intr-msg.h Notes
66
67 # XXX this is a temporary hack; see hurdmalloc.h
68 routines += hurdmalloc
69 distribute += hurdmalloc.h
70
71 # Binary compatibility for libc.so.0.2[GLIBC_2.0].
72 ifeq ($(versioning),yes)
73 routines += compat-20
74 endif
75
76 shared-only-routines = compat-20
77 \f
78 include ../mach/Machrules
79 include ../Rules
80 \f
81 # intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC
82 # stubs import <hurd/signal.h> and #define __mach_msg to
83 # _hurd_intr_rpc_mach_msg.
84 user-MIGFLAGS += -imacros intr-rpc.defs
85
86 # The special exc server for sigthread faults uses a special prefix.
87 MIGFLAGS-faultexc = -prefix _hurdsig_fault_
88
89 # We need this static dependency to get faultexc.h generated the first time.
90 $(objpfx)hurdfault.o $(objpfx)hurdfault.d: \
91         $(objpfx)faultexc_server.h $(objpfx)faultexc_server.c