Date: Mon, 06 Jan 1997 06:22:38 +0800 From: Peter Wemm <peter@spinner.DIALix.COM> To: Garrett Wollman <wollman@lcs.mit.edu> Cc: Nate Williams <nate@mt.sri.com>, Garrett Wollman <wollman@freefall.freebsd.org>, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libpcap Makefile Message-ID: <199701052222.GAA24323@spinner.DIALix.COM> In-Reply-To: Your message of "Sun, 05 Jan 1997 16:46:44 EST." <9701052146.AA15506@halloran-eldar.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman wrote: > <<On Sun, 5 Jan 1997 14:24:12 -0700 (MST), Nate Williams <nate@mt.sri.com> sa id: > > >> Fix Makefile so that dependencies are actually right this time. > >> It is almost always the wrong thing to put .y and .l files directly > >> into the SRCS. > > > The original CSRG Makefiles always did this, so why do you consider it a > > bad thing? > > Because dependencies don't work (and can't work without extra effort). > > -GAWollman Yes. As Garrett says, if one has a source "scan.y", the SRCS entry should be "scan.c", not scan.y! Perhaps one day the 'make depend' might learn how to deal with .y files, but that's not real simple. The make rules know how to deal with this, but 'make depend' skips all the dependency info for scan.* if it's listed as 'scan.c'. When SRCS=scan.c, a 'make depend' runs yacc, generates scan.c and does a depend on it which picks up all the dependencies. scan.o depends on scan.c, and scan.c depends on scan.y. Cheers, -Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701052222.GAA24323>