From f952e2a33a704f571353a4b6b0f06308d2fb1d35 Mon Sep 17 00:00:00 2001 From: mycroft Date: Sat, 17 Jul 1993 12:57:33 +0000 Subject: [PATCH] Put back kluge for linking with C++ compile but compiling .c files with C compiler. Eventually we might want to make /usr/include C++-conscious. --- gnu/usr.bin/groff/Makefile.cfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/groff/Makefile.cfg b/gnu/usr.bin/groff/Makefile.cfg index c97eebbe410e..bd4939b61361 100644 --- a/gnu/usr.bin/groff/Makefile.cfg +++ b/gnu/usr.bin/groff/Makefile.cfg @@ -17,7 +17,7 @@ LIBBIB= $(.CURDIR)/../libbib/obj/libbib.a LIBBIB= $(.CURDIR)/../libbib/libbib.a .endif -.if target(depend) +.if make(depend) CFLAGS+= -+ .endif CFLAGS+= -DHAVE_UNISTD_H=1\ @@ -37,9 +37,13 @@ CFLAGS+= -DHAVE_UNISTD_H=1\ -DHAVE_SYS_SIGLIST=1\ -DARRAY_DELETE_NEEDS_SIZE=1 -# Just use C++ compiler for everything. +# Use C++ compiler for linking. XXX: This is a kluge! +CCC= cc CC= $(CXX) +.c.o: + $(CCC) $(CFLAGS) -c $(.IMPSRC) + .y.cc: $(YACC) $(YFLAGS) $(.IMPSRC) mv y.tab.c $(.PREFIX).cc