Subject: Re: bsd.*.mk: ".cpp" not recognized as C++?
To: None <fb@enteract.com>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: tech-toolchain
Date: 11/13/1999 13:55:20
Frederick Bruckman wrote:
> As easy as this (follows). Alternatively, you could add ``.SUFFIXES: .cpp'',
> followed by the rules, anywhere in the "jikes" Makefile.
Or better yet (tried and seems to work):
*** /usr/share/mk/sys.mk Tue Nov 2 23:40:38 1999
--- /usr/share/mk/sys.mk.new Sat Nov 13 13:53:31 1999
***************
*** 3,9 ****
unix?= We run NetBSD.
! .SUFFIXES: .out .a .ln .o .s .S .c .cc .C .F .f .r .y .l .cl .p .h .sh .m4
.LIBS: .a
--- 3,10 ----
unix?= We run NetBSD.
! .SUFFIXES: .out .a .ln .o .s .S .c .cc .cpp .cxx .C .F .f .r .y .l .cl .p .h
! .SUFFIXES: .sh .m4
.LIBS: .a
***************
*** 101,120 ****
${LINT} ${LINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i ${.IMPSRC}
# C++
! .cc:
${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
! .cc.o:
${COMPILE.cc} ${.IMPSRC}
! .cc.a:
! ${COMPILE.cc} ${.IMPSRC}
! ${AR} ${ARFLAGS} $@ $*.o
! rm -f $*.o
!
! .C:
! ${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
! .C.o:
! ${COMPILE.cc} ${.IMPSRC}
! .C.a:
${COMPILE.cc} ${.IMPSRC}
${AR} ${ARFLAGS} $@ $*.o
rm -f $*.o
--- 102,112 ----
${LINT} ${LINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i ${.IMPSRC}
# C++
! .cc .cpp .cxx .C:
${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
! .cc.o .cpp.o .cxx.o .C.o:
${COMPILE.cc} ${.IMPSRC}
! .cc.a .cpp.a .cxx.a .C.a:
${COMPILE.cc} ${.IMPSRC}
${AR} ${ARFLAGS} $@ $*.o
rm -f $*.o
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.ics.muni.cz/~dolecek/
"It's IMPOSSIBLE to overcomment any code. It can only be undercommented."
@ Wanna a real operating system ? Go and get NetBSD, damn it! @