diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-07-17 12:44:00 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-07-17 12:44:00 +0000 |
| commit | e809add578585a8ca57d0f05964bb5281c84ee29 (patch) | |
| tree | b7ce9588c7ed0cc3c2f4940a74eed41b4b8ea702 /gnu | |
| parent | 631ba0dc257dacb7b455f81c1f7276656eaba568 (diff) | |
Remove pre-generated dependency files and make `make depend' really work.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/groff/Makefile.cfg | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/gnu/usr.bin/groff/Makefile.cfg b/gnu/usr.bin/groff/Makefile.cfg index e2cc90fa774..c97eebbe410 100644 --- a/gnu/usr.bin/groff/Makefile.cfg +++ b/gnu/usr.bin/groff/Makefile.cfg @@ -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> |
