This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Two libraries from the same sources


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]