summaryrefslogtreecommitdiff
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-05 09:51:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-05 09:51:07 +0000
commit6c99f5ed69766ce2b4f49ab0814d87d5b42fe268 (patch)
tree6e5748e17e45f4039a9cae7a074400a2adf7ae87 /share/mk/bsd.prog.mk
parent2f535a0deaad631218f25ce9d4bd1d4053c37c7e (diff)
.cxx support from Mathieu.Herrb@mipnet.fr
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 0a15096d826..db8187727ed 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.prog.mk,v 1.13 1997/04/27 21:38:34 millert Exp $
+# $OpenBSD: bsd.prog.mk,v 1.14 1997/11/05 09:51:06 deraadt Exp $
# $NetBSD: bsd.prog.mk,v 1.55 1996/04/08 21:19:26 jtc Exp $
# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
@@ -8,7 +8,7 @@
.include <bsd.own.mk>
-.SUFFIXES: .out .o .c .cc .C .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0
+.SUFFIXES: .out .o .c .cc .C .cxx .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0
CFLAGS+= ${COPTS}
@@ -63,6 +63,12 @@ CLEANFILES+=strings
@mv -f x.c x.C
@${CXX} ${CXXFLAGS} -c x.C -o ${.TARGET}
@rm -f x.C
+
+.cxx.o:
+ ${CXX} -E ${CXXFLAGS} ${.IMPSRC} | xstr -c -
+ @mv -f x.c x.cxx
+ @${CXX} ${CXXFLAGS} -c x.cxx -o ${.TARGET}
+ @rm -f x.cxx
.endif