diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-10-09 20:26:58 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-10-09 20:26:58 +0000 |
commit | 2ced20bb78be745adf16d007a60bff20a8fadf99 (patch) | |
tree | 461f81ab0bf942e459a8aa76eb1f5b9aadc1ea19 /usr.bin/nm/Makefile | |
parent | a4ed20475a9978c9bb289ccf04dfe087ff4cda69 (diff) |
move out elf code into elf.c and generate 32 and 64 versions of it;
allow operation on size-mixed host-target as well as ensianess for
both a.out and elf (though a.out 64bit probably does not exist ;)
tested on hppa-sparc64-i386-vax intermixen
Diffstat (limited to 'usr.bin/nm/Makefile')
-rw-r--r-- | usr.bin/nm/Makefile | 11 |
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> |