diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-05-11 20:34:59 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-05-11 20:34:59 +0000 |
commit | a5327282f5242a817598672871ccbce1a04089f7 (patch) | |
tree | a26871c8ba0b79a138a05f3edf5b586689abe8dd /usr.bin/nm/Makefile | |
parent | b0c21f0fed57067d4e9a61949bff20a1f2c5bdcc (diff) |
Build nm ok for cross-envs
Diffstat (limited to 'usr.bin/nm/Makefile')
-rw-r--r-- | usr.bin/nm/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.bin/nm/Makefile b/usr.bin/nm/Makefile index c14a3c13035..6dd341df3d3 100644 --- a/usr.bin/nm/Makefile +++ b/usr.bin/nm/Makefile @@ -1,4 +1,21 @@ -# $OpenBSD: Makefile,v 1.3 1997/09/21 11:50:21 deraadt Exp $ +# $OpenBSD: Makefile,v 1.4 1998/05/11 20:34:56 niklas Exp $ + +TARGET_MACHINE_ARCH?= ${MACHINE_ARCH} + +.if ${TARGET_MACHINE_ARCH} != ${MACHINE_ARCH} +# XXX should make this automatic +.if ${TARGET_MACHINE_ARCH} == "i386" +CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_I386 +.elif ${TARGET_MACHINE_ARCH} == "m68k" +CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_M68K +.elif ${TARGET_MACHINE_ARCH} == "ns32k" +CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_NS32K +.elif ${TARGET_MACHINE_ARCH} == "sparc" +CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_SPARC +.elif ${TARGET_MACHINE_ARCH} == "vax" +CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_VAX +.endif +.endif PROG= nm |