Sun Jun 9 01:11:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / hurd / Makefile
blob4f1f22c7c82e87a04b5e73f55843e7133070b7b7
1 # Copyright (C) 1991, 92, 93, 94, 95, 96 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
16 # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 # Cambridge, MA 02139, 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 # 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 server-interfaces := hurd/msg faultexc
41 routines = hurdstartup hurdinit \
42 hurdid hurdlookup hurdpid hurdrlimit hurdprio hurdexec \
43 path-lookup \
44 setauth \
45 pid2task task2pid \
46 getuids setuids getumask fchroot \
47 hurdsock hurdauth \
48 privports \
49 msgportdemux \
50 fopenport \
51 vpprintf \
52 ports-get ports-set hurdports hurdmsg \
53 $(sig) $(dtable) hurdinline port-cleanup report-wait
54 sig = hurdsig hurdfault siginfo hurd-raise preempt-sig \
55 trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \
56 thread-self thread-cancel intr-msg catch-signal
57 dtable = dtable port2fd new-fd alloc-fd intern-fd \
58 getdport openport \
59 fd-close fd-read fd-write hurdioctl ctty-input ctty-output
60 distribute = hurdstartup.h hurdfault.h faultexc.defs intr-rpc.defs intr-rpc.h
62 # XXX this is a temporary hack; see hurdmalloc.h
63 routines += hurdmalloc
64 distribute += hurdmalloc.h
66 include ../mach/Machrules
67 include ../Rules
69 # intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC
70 # stubs import <hurd/signal.h> and #define __mach_msg to
71 # _hurd_intr_rpc_mach_msg.
72 user-MIGFLAGS += -imacros intr-rpc.defs
74 # The special exc server for sigthread faults uses a special prefix.
75 MIGFLAGS-faultexc = -prefix _hurdsig_fault_
77 # We need this static dependency to get faultexc.h generated the first time.
78 $(objpfx)hurdfault.o $(objpfx)hurdfault.d: \
79 $(objpfx)faultexc_server.h $(objpfx)faultexc_server.c