diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-10-14 20:24:01 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-10-14 20:24:01 +0000 |
commit | 285a10d50a88007aa954c89ff9587800caade3e1 (patch) | |
tree | e2beff3a9b5c897306e8adbaedfac090a4b99aed /usr.bin/pcc/cc | |
parent | dcd904b920ff0f4afd73bb1a86fa78a92cc94213 (diff) |
don't hardcode TARGMACH
Diffstat (limited to 'usr.bin/pcc/cc')
-rw-r--r-- | usr.bin/pcc/cc/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/Makefile b/usr.bin/pcc/cc/Makefile index 2626ba970ae..62ce0ef2a98 100644 --- a/usr.bin/pcc/cc/Makefile +++ b/usr.bin/pcc/cc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2007/10/07 17:58:50 otto Exp $ +# $OpenBSD: Makefile,v 1.4 2007/10/14 20:24:00 otto Exp $ # # Makefile for the cc part of pcc. # @@ -7,7 +7,13 @@ PREFIX= /usr/local BINDIR= ${PREFIX}/bin MANDIR= ${PREFIX}/man/man TARGOS= openbsd -TARGMACH= x86 + +.if ${MACHINE_ARCH} == "i386" +TARGMACH= x86 +.else +TARGMACH= ${MACHINE_ARCH} +.endif + CFLAGS+= -DLIBEXECDIR=\"${PREFIX}/libexec\" CPPFLAGS+= -I${.CURDIR}/.. |