Remove pre-generated dependency files and make `make depend' really work.

This commit is contained in:
mycroft 1993-07-17 12:44:00 +00:00
parent 631ba0dc25
commit e809add578

View File

@ -17,6 +17,9 @@ LIBBIB= $(.CURDIR)/../libbib/obj/libbib.a
LIBBIB= $(.CURDIR)/../libbib/libbib.a
.endif
.if target(depend)
CFLAGS+= -+
.endif
CFLAGS+= -DHAVE_UNISTD_H=1\
-DHAVE_DIRENT_H=1\
-DHAVE_LIMITS_H=1\
@ -34,26 +37,12 @@ CFLAGS+= -DHAVE_UNISTD_H=1\
-DHAVE_SYS_SIGLIST=1\
-DARRAY_DELETE_NEEDS_SIZE=1
# Since we are still using gcc-1.X, we have to play games to ensure *.c
# files are compiled by gcc, *.cc files are compiled by g++, and everything
# is linked with g++.
CCC= gcc
CXX= g++
# Just use C++ compiler for everything.
CC= $(CXX)
.SUFFIXES: .cc
.c.o:
$(CCC) $(CFLAGS) -c $(.IMPSRC)
.cc.o:
$(CXX) $(CFLAGS) -c $(.IMPSRC)
.y.cc:
$(YACC) $(YFLAGS) $(.IMPSRC)
mv y.tab.c $(.PREFIX).cc
mv y.tab.h $(.PREFIX).tab.h
# include dependancies
.if exists($(.CURDIR)/Makefile.dep)
.include "$(.CURDIR)/Makefile.dep"
.endif
.include <bsd.prog.mk>