2005-08-04 10:44:16 +02:00
|
|
|
#
|
|
|
|
# Makefile for mdb
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# i) For GNU_EXEC Support, uncomment:
|
|
|
|
#
|
2010-05-12 18:28:54 +02:00
|
|
|
FOR_GNU= gnu_sym.c
|
|
|
|
DEF_GNU= -DGNU_SUPPORT
|
2005-08-04 10:44:16 +02:00
|
|
|
#
|
|
|
|
# ii) For tracing of syscalls, uncomment:
|
|
|
|
#
|
2010-05-12 18:28:54 +02:00
|
|
|
#FOR_SYSCALLS= syscalls.c decode.c ioctl.c
|
|
|
|
#DEF_SYSCALLS= -DSYSCALLS_SUPPORT
|
2005-08-04 10:44:16 +02:00
|
|
|
#
|
|
|
|
# iii) For no debugging of mdb, uncomment:
|
|
|
|
#
|
2010-05-12 18:28:54 +02:00
|
|
|
#DEF_DEBUG= -DNDEBUG
|
2005-08-04 10:44:16 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
EXTRA_SRCS= ${FOR_GNU} ${FOR_SYSCALLS}
|
|
|
|
EXTRA_DEFS= ${DEF_GNU} ${DEF_SYSCALLS} ${DEF_DEBUG}
|
|
|
|
CPPFLAGS+= -I${MINIXSRCDIR} -I${MINIXSRCDIR}/servers \
|
|
|
|
${EXTRA_DEFS}
|
2009-12-29 22:38:26 +01:00
|
|
|
|
2010-07-03 12:25:19 +02:00
|
|
|
PROG= mdb
|
2010-05-12 18:28:54 +02:00
|
|
|
SRCS= mdb.c mdbexp.c kernel.o sym.c trace.c core.c misc.c io.c
|
|
|
|
SRCS+= mdbdis86.c
|
|
|
|
SRCS+= ${EXTRA_SRCS}
|
2005-08-04 10:44:16 +02:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|