Remove pre-generated dependency files and make `make depend' really work.
This commit is contained in:
parent
631ba0dc25
commit
e809add578
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user