summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-04-07 20:22:28 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-04-07 20:22:28 +0000
commit733aa756cc0561f63b1235a5414622fc549f5b78 (patch)
tree7d87fb6b95cc671a6c8effd87d1a94a06007de47 /app
parent8e58247549bd240f4f9fbf7678331275050759bc (diff)
add new specific rules for sh. Whithout those, xterm segfaults on
landisk.
Diffstat (limited to 'app')
-rw-r--r--app/xterm/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/xterm/Makefile b/app/xterm/Makefile
index 1259e0cbb..a6ab46897 100644
--- a/app/xterm/Makefile
+++ b/app/xterm/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.20 2012/04/07 20:11:43 matthieu Exp $
+# $OpenBSD: Makefile,v 1.21 2012/04/07 20:22:27 matthieu Exp $
.include <bsd.xconf.mk>
SUBDIR= icons resize
@@ -28,6 +28,14 @@ SRCS= TekPrsTbl.c Tekproc.c VTPrsTbl.c button.c cachedGCs.c \
MANDIR= ${X11BASE}/man/man
XETC?= /etc/X11
+.if ${MACHINE_ARCH} == "sh"
+charproc.o: charproc.c
+ ${CC} -O1 -c ${CPPFLAGS} ${.CURDIR}/charproc.c
+
+screen.o: screen.c
+ ${CC} -O1 -c ${CPPFLAGS} ${.CURDIR}/screen.c
+.endif
+
.SUFFIXES: .man .1
.man.1: