1 # $NetBSD: Makefile,v 1.2 2009/04/22 15:23:02 lukem Exp $
5 RUMPKERNEL
= yes
# XXX: Avoid -mcmodel=kernel
7 LDADD
+= -lkvm
-ledit
-ltermcap
8 DPADD
+= ${LIBKVM} ${LIBEDIT} ${LIBTERMCAP}
10 # some ddb kernel components need limited modifications. for now,
11 # punt if not noted as implemented here.
12 .if
(${MACHINE} != "i386")
18 S
= ${.CURDIR
}/..
/..
/sys
20 CPPFLAGS
+= -I
${.CURDIR
} -I
${.OBJDIR
} -I
${S} -fno-strict-aliasing
21 CPPFLAGS
+= -DDDB_VERBOSE_HELP
-DDB_MAX_LINE
=10000000 -D_KMEMUSER
23 # ddb files from kernel
25 SRCS
+= db_command.c db_lwp.c db_proc.c db_xxx.c db_cpu.c
26 SRCS
+= db_access.c db_elf.c db_examine.c
27 SRCS
+= db_expr.c db_lex.c db_output.c db_print.c
28 SRCS
+= db_sym.c db_variables.c db_write_cmd.c
30 # db_trace.c, db_disasm.c
31 .PATH
: ${S}/arch
/${MACHINE_ARCH}/${MACHINE_ARCH}
32 .for i in
${i} db_disasm db_trace
33 . if
(exists
(${S}/arch
/${MACHINE_ARCH}/${MACHINE_ARCH}/${i}.c
))
42 .PATH
: ${.CURDIR
}/arch
43 .if
(exists
(${.CURDIR
}/arch
/${MACHINE_ARCH}.c
))
44 SRCS
+= ${MACHINE_ARCH}.c
51 vers.c
: ${S}/conf
/newvers.sh
52 ${HOST_SH} ${S}/conf
/newvers.sh
53 CLEANFILES
+= vers.c version
57 .
include <bsd.prog.mk
>
58 .
include <bsd.klinks.mk
>