No empty .Rs/.Re
[netbsd-mini2440.git] / usr.sbin / crash / Makefile
blobca6c592d90f6f13fb86c28167231d34b6441a75e
1 # $NetBSD: Makefile,v 1.2 2009/04/22 15:23:02 lukem Exp $
3 PROG= crash
4 MAN= crash.8
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")
14 SRCS+= unsupported.c
16 .else
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
24 .PATH: $S/ddb
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))
34 SRCS+= ${i}.c
35 . endif
36 .endfor
38 # crash main source
39 SRCS+= crash.c
41 # arch.c
42 .PATH: ${.CURDIR}/arch
43 .if (exists(${.CURDIR}/arch/${MACHINE_ARCH}.c))
44 SRCS+= ${MACHINE_ARCH}.c
45 .else
46 SRCS+= generic.c
47 .endif
49 # vers.c
50 SRCS+= vers.c
51 vers.c: ${S}/conf/newvers.sh
52 ${HOST_SH} ${S}/conf/newvers.sh
53 CLEANFILES+= vers.c version
55 .endif
57 .include <bsd.prog.mk>
58 .include <bsd.klinks.mk>