]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/i386/i386gnu.mh
gdb/
[thirdparty/binutils-gdb.git] / gdb / config / i386 / i386gnu.mh
1 # Host: Intel 386 running the GNU Hurd
2 NATDEPFILES= i386gnu-nat.o gnu-nat.o core-regset.o fork-child.o \
3 notify_S.o process_reply_S.o msg_reply_S.o \
4 msg_U.o exc_request_U.o exc_request_S.o
5 HAVE_NATIVE_GCORE_HOST = 1
6
7 NAT_FILE= nm-i386gnu.h
8 MH_CFLAGS = -D_GNU_SOURCE
9
10 XM_CLIBS = -lshouldbeinlibc
11
12 # Use our own user stubs for the msg rpcs, so we can make them time out, in
13 # case the program is fucked, or we guess the wrong signal thread.
14 msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;'
15
16 # ick
17 MIGCOM = $(MIG) -cc cat - /dev/null
18
19 # Reply servers need special massaging of the code mig generates, to make
20 # them work correctly for error returns in some cases.
21 %_reply_S.h %_reply_S.c: %_reply.defs
22 $(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
23 | $(MIGCOM) -sheader $*_reply_S.h -server $*_reply_S.raw -user /dev/null -header /dev/null \
24 && $(AWK) -f $(srcdir)/reply_mig_hack.awk < $*_reply_S.raw > $*_reply_S.c
25 # Normal servers
26 %_S.h %_S.c: %.defs
27 $(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
28 | $(MIGCOM) -sheader $*_S.h -server $*_S.c -user /dev/null -header /dev/null
29 # User rpc stubs
30 %_U.h %_U.c: %.defs
31 $(CPP) $(CPPFLAGS) $($*-MIGUFLAGS) -x c $< \
32 | $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h
33
34 NAT_GENERATED_FILES = notify_S.h notify_S.c \
35 process_reply_S.h process_reply_S.c \
36 msg_reply_S.h msg_reply_S.c msg_U.h msg_U.c \
37 exc_request_U.h exc_request_U.c exc_request_S.h exc_request_S.c