Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/regex.c
[glibc/history.git] / hurd / Makefile
blob69f9e96031c42f2c333f34b55df9b459759f0fbd
1 # Copyright (C) 1991, 1992, 1993, 1994, 1995 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 userlink.h \
29 resource.h threadvar.h lookup.h)
31 distribute := hurdstartup.h hurdfault.h intr-rpc.defs STATUS
33 # The RPC interfaces go in a separate library.
34 interface-library := libhurduser
35 user-interfaces := $(addprefix hurd/,\
36 auth startup \
37 process process_request \
38 msg msg_reply msg_request \
39 exec exec_startup crash interrupt \
40 fs fsys io term socket ifsock)
41 server-interfaces := hurd/msg
43 routines = hurdstartup hurdinit \
44 hurdid hurdlookup hurdpid hurdrlimit hurdprio hurdexec \
45 setauth \
46 pid2task task2pid \
47 getuids setuids getumask fchroot \
48 hurdsock hurdauth \
49 privports \
50 msgportdemux \
51 fopenport \
52 vpprintf \
53 ports-get ports-set hurdports hurdmsg \
54 $(sig) $(dtable) hurdinline port-cleanup
55 sig = hurdsig hurdfault faultexc siginfo hurd-raise preempt-sig \
56 trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \
57 thread-self thread-cancel intr-msg
58 dtable = dtable port2fd new-fd alloc-fd intern-fd \
59 getdport openport \
60 fd-close fd-read fd-write hurdioctl ctty-input ctty-output
62 # XXX this is a temporary hack; see hurdmalloc.h
63 routines += hurdmalloc
64 distribute += hurdmalloc.h
66 # Get the proper definition of `hurd-srcdir'.
67 include ../sysdeps/mach/hurd/Makefile
69 # Use and install the Hurd header files directly out of the Hurd source.
71 # Find the MiG defs files in the Hurd source.
72 vpath %.defs $(hurd-srcdir)
74 # Install all .h and .defs files we find in the Hurd's hurd/ directory.
75 hurd-headers := $(patsubst $(hurd-srcdir)/%,%,\
76 $(wildcard $(addprefix $(hurd-srcdir)/hurd/,\
77 *.defs *.h)))
80 # Don't distribute the Hurd headers; they are in the Hurd distribution.
81 dont_distribute = $(hurd-headers)
83 # DO NOT try to remake these in any way!!!
84 $(addprefix $(hurd-srcdir)/,$(hurd-headers)) : ;
85 install-others += $(addprefix $(includedir)/,$(hurd-headers))
86 $(includedir)/hurd/%: $(hurd-srcdir)/hurd/%; $(do-install)
88 include ../mach/Machrules
89 include ../Rules
91 # intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC
92 # stubs import <hurd/signal.h> and #define __mach_msg to
93 # _hurd_intr_rpc_mach_msg.
94 user-MIGFLAGS += -imacros intr-rpc.defs
96 $(objpfx)fault%.c $(objpfx)fault%.h: $(mach-srcdir)/mach/%.defs
97 $(MIG) $(MIGFLAGS) -prefix _hurdsig_fault_ \
98 -server $(@:.h=.c) -sheader $(@:.c=.h) \
99 -user /dev/null -header /dev/null \
101 generated += faultexc.c faultexc.h
103 # We need this static dependency to get faultexc.h generated the first time.
104 $(objpfx)hurdfault.o $(objpfx)hurdfault.d: \
105 $(objpfx)faultexc.h $(objpfx)faultexc.c