hurd: Reformat Makefile.

Reflow and sort Makefile.

Code generation changes present due to link order changes.

No regressions on x86_64 and i686.

Tested with build-many-glibcs.py for x86_64-gnu.
This commit is contained in:
Carlos O'Donell 2023-06-09 17:46:34 -04:00
parent 5420d211f0
commit f31d677fd6

View File

@ -19,51 +19,138 @@ subdir := hurd
include ../Makeconfig include ../Makeconfig
headers = hurd.h $(interface-headers) \ headers = \
$(addprefix hurd/,fd.h id.h port.h signal.h sigpreempt.h ioctl.h\ $(interface-headers) \
userlink.h resource.h lookup.h) hurd.h \
hurd/fd.h \
hurd/id.h \
hurd/ioctl.h \
hurd/lookup.h \
hurd/port.h \
hurd/resource.h \
hurd/signal.h \
hurd/sigpreempt.h \
hurd/userlink.h \
# headers
inline-headers = hurd.h $(addprefix hurd/,fd.h signal.h \ inline-headers = \
userlink.h port.h) hurd.h \
hurd/fd.h \
hurd/port.h \
hurd/signal.h \
hurd/userlink.h \
# inline-headers
# The RPC interfaces go in a separate library. # The RPC interfaces go in a separate library.
interface-library := libhurduser interface-library := libhurduser
user-interfaces := $(addprefix hurd/,\ user-interfaces := \
auth startup \ hurd/auth \
process process_request \ hurd/crash \
msg msg_reply msg_request \ hurd/exec \
exec exec_startup crash interrupt \ hurd/exec_startup \
fs fsys io io_reply io_request \ hurd/fs \
term tioctl socket ifsock \ hurd/fsys \
login password pfinet pci \ hurd/ifsock \
) hurd/interrupt \
server-interfaces := hurd/msg faultexc hurd/io \
hurd/io_reply \
hurd/io_request \
hurd/login \
hurd/msg \
hurd/msg_reply \
hurd/msg_request \
hurd/password \
hurd/pci \
hurd/pfinet \
hurd/process \
hurd/process_request \
hurd/socket \
hurd/startup \
hurd/term \
hurd/tioctl \
# user-interfaces
routines = hurdstartup hurdinit \ server-interfaces := \
hurdid hurdpid hurdrlimit hurdprio hurdexec hurdselect \ faultexc \
hurdlookup lookup-retry lookup-at \ hurd/msg \
get-host set-host \ # server-interfaces
path-lookup \
setauth \ routines = \
pid2task task2pid \ $(dtable) \
geteuids seteuids getumask fchroot \ $(inlines) \
hurdsock hurdauth \ $(sig) \
hurdchdir hurdfchdir \
privports \
msgportdemux \
fopenport \
vpprintf \
ports-get ports-set hurdports hurdmsg \
errno-loc \ errno-loc \
fchroot \
fd-cleanup \
fopenport \
get-host \
geteuids \
getumask \
hurdauth \
hurdchdir \
hurdexec \
hurdfchdir \
hurdid \
hurdinit \
hurdlock \ hurdlock \
$(sig) $(dtable) $(inlines) \ hurdlookup \
fd-cleanup port-cleanup report-wait xattr hurdmsg \
sig = hurdsig hurdfault siginfo hurd-raise preempt-sig \ hurdpid \
trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \ hurdports \
thread-self thread-cancel intr-msg catch-signal hurdprio \
dtable = dtable port2fd new-fd alloc-fd intern-fd \ hurdrlimit \
getdport openport \ hurdselect \
fd-close fd-read fd-write hurdioctl ctty-input ctty-output hurdsock \
hurdstartup \
lookup-at \
lookup-retry \
msgportdemux \
path-lookup \
pid2task \
port-cleanup \
ports-get \
ports-set \
privports \
report-wait \
set-host \
setauth \
seteuids \
task2pid \
vpprintf \
xattr \
# routines
sig = \
catch-exc \
catch-signal \
exc2signal \
hurd-raise \
hurdfault \
hurdkill \
hurdsig \
intr-msg \
longjmp-ts \
preempt-sig \
siginfo \
sigunwind \
thread-cancel \
thread-self \
trampoline \
# sig
dtable = \
alloc-fd \
ctty-input \
ctty-output \
dtable \
fd-close \
fd-read \
fd-write \
getdport \
hurdioctl \
intern-fd \
new-fd \
openport \
port2fd \
# dtable
inlines = $(inline-headers:%.h=%-inlines) inlines = $(inline-headers:%.h=%-inlines)
# XXX this is a temporary hack; see hurdmalloc.h # XXX this is a temporary hack; see hurdmalloc.h