summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kvm_mkdb/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-30 23:35:00 +0000
committerpeter <peter@FreeBSD.org>1997-08-30 23:35:00 +0000
commit487373ebf88e06012d356443b415381b6cabb52f (patch)
tree9d61ae0ad870a01a3b1895b2e08504894504b4cf /usr.sbin/kvm_mkdb/Makefile
parentf8d0d61b62394051605cdb56f4f5e5fc76842fe8 (diff)
downloadFreeBSD-src-487373ebf88e06012d356443b415381b6cabb52f.zip
FreeBSD-src-487373ebf88e06012d356443b415381b6cabb52f.tar.gz
Initial support for dealing with an elf /kernel. This is a loose hybrid
of OpenBSD's elf nlist code for this, and our a.out version. The OpenBSD version was mainly a seek/read system with a mmap of the string table, this one simply mmap's the lot (like the a.out version). Obtained from: a fair chunk from OpenBSD
Diffstat (limited to 'usr.sbin/kvm_mkdb/Makefile')
-rw-r--r--usr.sbin/kvm_mkdb/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/kvm_mkdb/Makefile b/usr.sbin/kvm_mkdb/Makefile
index c158a48..d3a6c49 100644
--- a/usr.sbin/kvm_mkdb/Makefile
+++ b/usr.sbin/kvm_mkdb/Makefile
@@ -3,5 +3,9 @@
PROG= kvm_mkdb
SRCS= kvm_mkdb.c nlist.c testdb.c
MAN8= kvm_mkdb.8
+CFLAGS+=-DDO_AOUT
+.if defined(BINFORMAT) && ${BINFORMAT} == elf
+CFLAGS+=-DDO_ELF
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud