Add MKMCONTEXT option

This commit is contained in:
Arun Thomas
2011-08-02 13:57:31 +02:00
parent 989934b37c
commit aaefc6f838
6 changed files with 21 additions and 5 deletions
+8 -1
View File
@@ -1,8 +1,15 @@
.include <bsd.own.mk>
# Makefile for Process Manager (PM)
PROG= pm
SRCS= main.c forkexit.c break.c exec.c time.c alarm.c \
signal.c utility.c table.c trace.c getset.c misc.c \
profile.c dma.c mcontext.c schedule.c
profile.c dma.c schedule.c
.if ${USE_MCONTEXT} != "no"
SRCS+= mcontext.c
CPPFLAGS+= -DUSE_MCONTEXT
.endif
DPADD+= ${LIBSYS} ${LIBTIMERS}
LDADD+= -lsys -ltimers
+4
View File
@@ -49,6 +49,10 @@ _PROTOTYPE( void setreply, (int proc_nr, int result) );
/* mcontext.c */
_PROTOTYPE( int do_getmcontext, (void) );
_PROTOTYPE( int do_setmcontext, (void) );
#if ! USE_MCONTEXT
#define do_getmcontext no_sys
#define do_setmcontext no_sys
#endif
/* misc.c */
_PROTOTYPE( int do_reboot, (void) );