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