summaryrefslogtreecommitdiff
path: root/usr.bin/cpp/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-02-10 02:02:23 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-02-10 02:02:23 +0000
commit25fb21e2c0439fbcc1b1df3fbd1984941e980d94 (patch)
tree5876c412c5b652a12345fd199a51d36f773e3673 /usr.bin/cpp/Makefile
parent911978d4f2b447e702a23c52e8a5536e012a8488 (diff)
Clean-up logic, support -$ on gcc2, nothing on gcc3.
Add -notraditional to help the transition into not -trad land. ok deraadt@
Diffstat (limited to 'usr.bin/cpp/Makefile')
-rw-r--r--usr.bin/cpp/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/usr.bin/cpp/Makefile b/usr.bin/cpp/Makefile
index 53cd6ee212b..b99cc0482c2 100644
--- a/usr.bin/cpp/Makefile
+++ b/usr.bin/cpp/Makefile
@@ -1,10 +1,18 @@
-# $OpenBSD: Makefile,v 1.7 1999/12/23 07:14:12 mickey Exp $
+# $OpenBSD: Makefile,v 1.8 2004/02/10 02:02:22 espie Exp $
+
+.include <bsd.own.mk>
NOMAN=
-NOOBJ=
-beforeinstall:
- ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${.CURDIR}/cpp.sh ${DESTDIR}${BINDIR}/cpp
+PROG=cpp
+SRCS=
+INSTALL_STRIP=
+
+cpp: cpp.sh
+.if ${USE_GCC3:L} == "no"
+ sed -e 's/@dollaropt@/-$$/' ${.CURDIR}/cpp.sh >$@
+.else
+ sed -e 's/@dollaropt@//' ${.CURDIR}/cpp.sh >$@
+.endif
.include <bsd.prog.mk>