summaryrefslogtreecommitdiff
path: root/usr.bin/nm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/nm/Makefile')
-rw-r--r--usr.bin/nm/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/nm/Makefile b/usr.bin/nm/Makefile
index fec731c8eb3..ac566c9c0ef 100644
--- a/usr.bin/nm/Makefile
+++ b/usr.bin/nm/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2004/01/05 01:27:22 mickey Exp $
+# $OpenBSD: Makefile,v 1.6 2004/10/09 20:26:57 mickey Exp $
TARGET_MACHINE_ARCH?= ${MACHINE_ARCH}
@@ -18,7 +18,16 @@ CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_VAX
.endif
PROG= nm
+SRCS= nm.c elf32.c elf64.c
+CLEANFILES+=elf32.c elf64.c
+CPPFLAGS+=-I${.CURDIR}
LINKS= ${BINDIR}/nm ${BINDIR}/size
MAN= nm.1 size.1
+elf32.c: ${.CURDIR}/elf.c
+ echo '#define ELFSIZE 32' | cat - $> > ${.TARGET}
+
+elf64.c: ${.CURDIR}/elf.c
+ echo '#define ELFSIZE 64' | cat - $> > ${.TARGET}
+
.include <bsd.prog.mk>