summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-07-17 12:57:33 +0000
committermycroft <mycroft@NetBSD.org>1993-07-17 12:57:33 +0000
commitf952e2a33a704f571353a4b6b0f06308d2fb1d35 (patch)
tree900627f067ea028169d0015b7dea7aa3af767df0 /gnu
parentffced6cc5f7f3b8f8e337f8f7e519ef3fd574567 (diff)
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/groff/Makefile.cfg8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/usr.bin/groff/Makefile.cfg b/gnu/usr.bin/groff/Makefile.cfg
index c97eebbe410..bd4939b6136 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