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