From 47929084276d5ce665e0b000a14a50ee30d2388c Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 6 Jun 2001 16:51:38 +0000 Subject: Add the single suffix rules for C++. (While there, I also moved the single suffix C rules beside the double suffix ones so they are easier to find) PR: 24438 Submitted by: Georg-W. Koltermann --- share/mk/sys.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'share/mk') diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 4fac78f..71151b1 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -168,16 +168,19 @@ HTAGSFLAGS= # non-Posix rule set -.c: - ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} - .sh: cp -p ${.IMPSRC} ${.TARGET} chmod a+x ${.TARGET} +.c: + ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} + .c.o: ${CC} ${CFLAGS} -c ${.IMPSRC} +.cc .cpp .cxx .C: + ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} + .cc.o .cpp.o .cxx.o .C.o: ${CXX} ${CXXFLAGS} -c ${.IMPSRC} -- cgit v1.1