diff options
-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} |