Subject: Re: bsd.*.mk: ".cpp" not recognized as C++?
To: Jaromir Dolecek <dolecek@ics.muni.cz>
From: Frederick Bruckman <fb@enteract.com>
List: tech-toolchain
Date: 11/13/1999 07:50:42
On Sat, 13 Nov 1999, Jaromir Dolecek wrote:
> 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):
Agreed.
>
> *** /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
>