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.
This commit is contained in:
mycroft 1993-07-17 12:57:33 +00:00
parent ffced6cc5f
commit f952e2a33a
1 changed files with 6 additions and 2 deletions

View File

@ -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