summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-09-19 13:35:53 +0000
committerotto <otto@openbsd.org>2007-09-19 13:35:53 +0000
commitf9689a68b2a0510f5be21a6c1f4088a8fccd7ae5 (patch)
tree6aa964e7f60bffe4e6cad9a3aa9989074c0c86d4
parentpfctl seems to report errors when accessing empty tables, (diff)
downloadwireguard-openbsd-f9689a68b2a0510f5be21a6c1f4088a8fccd7ae5.tar.xz
wireguard-openbsd-f9689a68b2a0510f5be21a6c1f4088a8fccd7ae5.zip
make it easier to support other archs; remoev some dependencies (also
submitted by pyr); from mickey@ ok ragge@
-rw-r--r--usr.bin/pcc/cc/ccom/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/pcc/cc/ccom/Makefile b/usr.bin/pcc/cc/ccom/Makefile
index fdbaa232881..82da4e0c238 100644
--- a/usr.bin/pcc/cc/ccom/Makefile
+++ b/usr.bin/pcc/cc/ccom/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2007/09/18 10:12:10 otto Exp $
+# $OpenBSD: Makefile,v 1.8 2007/09/19 13:35:53 otto Exp $
#
# Makefile for the cpp part of pcc.
#
@@ -7,7 +7,11 @@ PREFIX= /usr/local
BINDIR= ${PREFIX}/libexec
MANDIR= ${PREFIX}/man/man
TARGOS= openbsd
+.if ${MACHINE_ARCH} == "i386"
TARGMACH= x86
+.else
+TARGMACH= ${MACHINE_ARCH}
+.endif
CLEANFILES= external.h external.c mkext
CFLAGS+= -DPCC_DEBUG -DGCC_COMPAT
@@ -39,9 +43,6 @@ mkext: mkext.c table.c common.c
external.h external.c: mkext
./mkext
-pass2.h: external.h
-optim2.o reader.o: external.h
-
cleandepend:
rm -f .depend ${.CURDIR}/tags cgram.h