diff options
author | obrien <obrien@FreeBSD.org> | 2001-06-06 16:51:38 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-06-06 16:51:38 +0000 |
commit | 47929084276d5ce665e0b000a14a50ee30d2388c (patch) | |
tree | 8e796f4688ea9616ad0bae3b955ab744a5572210 /share/mk | |
parent | c4aabf68c9e61bd7cd9618e364a819e013b249b7 (diff) | |
download | FreeBSD-src-47929084276d5ce665e0b000a14a50ee30d2388c.zip FreeBSD-src-47929084276d5ce665e0b000a14a50ee30d2388c.tar.gz |
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 <gwk@sgi.com>
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/sys.mk | 9 |
1 files changed, 6 insertions, 3 deletions
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} |