vm: fix a null dereference on out-of-memory
[minix.git] / lib / libc / arch / arm / sys-minix / Makefile.inc
blob8550577ef3735da63c012941ed5e8f6cc3b6b02a
1 # rts sources
2 HERE=${.CURDIR}/arch/${MACHINE_ARCH}/sys-minix
3 .PATH: ${HERE}
5 TMP=ucontextoffsets.h.tmp
6 INCLS=../../include
7 ARCHINCLS=$(INCLS)/arch/arm/include/
8 CF=ucontextoffsets.cf
10 INCS+=ucontextoffsets.h
12 ucontext.d: ucontextoffsets.h
14 SRCS+=   \
15         __sigreturn.S \
16         _ipc.S \
17         _senda.S \
18         brksize.S \
19         ucontext.S
21 ucontextoffsets.h: $(CF) $(ARCHINCLS)/stackframe.h $(INCLS)/sys/ucontext.h
22         ${_MKTARGET_CREATE}
23         cat ${HERE}/$(CF) | \
24                 ${TOOL_GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} >$TMP && \
25         mv -f $TMP $@