Re: make depend (Re: [HACKERS] Coming attractions: VPATH build; make variables issue)

2000-10-20 Thread Brook Milligan
Peter Eisentraut <[EMAIL PROTECTED]> writes: > What we could do is ship the dependencies (.deps/*.P) in the tarball. > That would require running an entire build before making a tarball, but it > would be a nice service to users. Hm. It might be handy for people not using gcc, s

Re: make depend (Re: [HACKERS] Coming attractions: VPATH build; make variables issue)

2000-10-19 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > What we could do is ship the dependencies (.deps/*.P) in the tarball. > That would require running an entire build before making a tarball, but it > would be a nice service to users. Hm. It might be handy for people not using gcc, since they'd hav

Re: make depend (Re: [HACKERS] Coming attractions: VPATH build; make variables issue)

2000-10-19 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Just a sanity check: Does anyone use `make depend'? Does everyone know > about the better way to track dependencies? Does every-/anyone know why > `make depend' is worse? I just don't want to bother fixing something > that's dead anyway... > (help

Re: [HACKERS] Coming attractions: VPATH build; make variables issue

2000-10-18 Thread Peter Eisentraut
Tom Lane writes: > > dep depend: > > $(CC) -MM $(CFLAGS) *.c >depend > > Why? Shouldn't CFLAGS include CPPFLAGS? Nope. That's what it does now, but the implicit rule is %.o: %.c $(CC) -c $(CPPFLAGS) $(CFLAGS) so if you set CFLAGS to include CPPFLAGS then you get all of it double

Re: [HACKERS] Coming attractions: VPATH build; make variables issue

2000-10-18 Thread Bruce Momjian
> (because the preprocessor options like -I and -D would be in CPPFLAGS). > I can install a hook to make this work specially without need to fix each > file, but that would require GNU make 3.76 for those using `make depend'. > I think this should not bother anyone too much, but I'm just letti

Re: [HACKERS] Coming attractions: VPATH build; make variables issue

2000-10-18 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > This is an opportune time to sort out the use of the make variables > CPPFLAGS and CFLAGS, which are used interchangeably in some places. > Unfortunately, this would mean having to fix each of the targets > dep depend: > $(CC) -MM $(CFLAGS) *

[HACKERS] Coming attractions: VPATH build; make variables issue

2000-10-18 Thread Peter Eisentraut
I've just successfully completed an out of the box VPATH build of PostgreSQL (i.e., putting the object files in a different directory structure than the source files). It should be ready to go within the next few days. This is an opportune time to sort out the use of the make variables CPPFLAGS