blob: 4ddd65be7a0741648554e877386b2721ccc64f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $OpenBSD: Makefile,v 1.11 2006/11/19 03:34:03 deraadt Exp $
.include <bsd.own.mk>
MAN=pmdb.1
.if (!exists(arch/${MACHINE}/Makefile.inc) && \
!exists(arch/${MACHINE_ARCH}/Makefile.inc))
NOPROG=no, man
.else
PROG=pmdb
SRCS=pmdb.c symbol.c clit.c process.c signal.c break.c core.c
# support for NetBSD
.if defined(OBJECT_FMT)
.if ${OBJECT_FMT} == "ELF"
ELF_TOOLCHAIN=yes
.else
ELF_TOOLCHAIN=no
.endif
.endif
.if (${ELF_TOOLCHAIN:L} == "yes")
SRCS+=elf_syms.c
CPPFLAGS+=-DPMDB_ELF
.else
SRCS+=aout_syms.c
CPPFLAGS+=-DPMDB_AOUT
.endif
LDADD=-ledit -lcurses
DPADD=${LIBEDIT} ${LIBCURSES}
CPPFLAGS+=-I${.CURDIR}
.if exists(arch/${MACHINE}/Makefile.inc)
.PATH: ${.CURDIR}/arch/${MACHINE}
.include "arch/${MACHINE}/Makefile.inc"
CPPFLAGS+=-I${.CURDIR}/arch/${MACHINE}
.endif
.if (${MACHINE_ARCH} != ${MACHINE}) && exists(arch/${MACHINE_ARCH}/Makefile.inc)
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
.include "arch/${MACHINE_ARCH}/Makefile.inc"
CPPFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}
.endif
COPTS+=-Wall -Wno-uninitialized
.endif
.include <bsd.prog.mk>
|