]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/i386/i386gnu.mn
hurd: add missing awk script dependency
[thirdparty/binutils-gdb.git] / gdb / config / i386 / i386gnu.mn
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.
3 msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;'
4
5 # ick
6 MIGCOM = $(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.
10 %_reply_S.h %_reply_S.c: %_reply.defs $(srcdir)/reply_mig_hack.awk
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
22
23 # MIG stubs are not yet ready for C++ compilation.
24 %_S.o %_U.o : COMPILE.post += -x c
25
26 NAT_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