This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Two libraries from the same sources
- To: Pavel Roskin <pavel_roskin@geocities.com>
- Subject: Re: Two libraries from the same sources
- From: Tom Tromey <tromey@cygnus.com>
- Date: 27 May 1999 20:41:50 -0600
- Cc: Alexandre Oliva <oliva@dcc.unicamp.br>, automake@gnu.org
- References: <Pine.LNX.4.10.9905202124310.20909-100000@intra.typhoon.spb.ru>
- Reply-To: tromey@cygnus.com
>>>>> "Pavel" == Pavel Roskin <pavel_roskin@geocities.com> writes:
[ per-library flags ]
Thanks for trying this for real, btw. I appreciate it.
Pavel> Defect 1. There are two rules for test1-test1.o
Pavel> One of them is empty, the other is not.
This is harmless, but I'll fix it someday.
Pavel> Defect 2. There is a rule for test1-test1.lo but libtool is not
Pavel> mentioned anywhere.
This should also be harmless. Fixing it is a bit more involved. It
will be easier to fix once we merge in the new dependency code.
Pavel> Defect 3. The rule for test1-test1.o lacks $(CFLAGS)
Pavel> In my opinion, $(CFLAGS) should be there because:
Pavel> 1) $(CPPFLAGS) is there anyway
Pavel> 2) Setting CFLAGS is supposed to affect every invocation of the
Pavel> C compiler 3) $(CFLAGS) rarely contains something which one
Pavel> wants to disable for paricular objects.
I agree. We should replace AM_CFLAGS with the per-object flags. This
was an oversight on my part.
Eventually we want to allow per-exe CPPFLAGS as well. This cries out
for a somewhat smarter design for flag handling internally.
Tom