]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/i386/i386gnu.mn
hurd: add missing awk script dependency
[thirdparty/binutils-gdb.git] / gdb / config / i386 / i386gnu.mn
CommitLineData
c906108c
SS
1# Use our own user stubs for the msg rpcs, so we can make them time out, in
2# case the program is fucked, or we guess the wrong signal thread.
3msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;'
4
5# ick
c906108c
SS
6MIGCOM = $(MIG) -cc cat - /dev/null
7
8# Reply servers need special massaging of the code mig generates, to make
9# them work correctly for error returns in some cases.
c6887cfb 10%_reply_S.h %_reply_S.c: %_reply.defs $(srcdir)/reply_mig_hack.awk
c906108c
SS
11 $(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
12 | $(MIGCOM) -sheader $*_reply_S.h -server $*_reply_S.raw -user /dev/null -header /dev/null \
13 && $(AWK) -f $(srcdir)/reply_mig_hack.awk < $*_reply_S.raw > $*_reply_S.c
14# Normal servers
15%_S.h %_S.c: %.defs
16 $(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
17 | $(MIGCOM) -sheader $*_S.h -server $*_S.c -user /dev/null -header /dev/null
18# User rpc stubs
19%_U.h %_U.c: %.defs
20 $(CPP) $(CPPFLAGS) $($*-MIGUFLAGS) -x c $< \
21 | $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h
3d0bb823 22
21389b7f
TS
23# MIG stubs are not yet ready for C++ compilation.
24%_S.o %_U.o : COMPILE.post += -x c
25
3d0bb823
PA
26NAT_GENERATED_FILES = notify_S.h notify_S.c \
27 process_reply_S.h process_reply_S.c \
28 msg_reply_S.h msg_reply_S.c msg_U.h msg_U.c \
29 exc_request_U.h exc_request_U.c exc_request_S.h exc_request_S.c