[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libraries
From: |
Paul D. Smith |
Subject: |
Re: libraries |
Date: |
Fri, 1 Nov 2002 14:23:26 -0500 |
%% "Kris Thielemans" <address@hidden> writes:
kt> First question: is there a way to get a list of the built-in
kt> rules? I think this would be nice for educating, and also for
kt> being able to disable specific rules instead of the whole bunch.
Check out the -p option in the manual or man page.
kt> On to what I'm trying to do. I'd like to make sure that 'ar' is
kt> really called only once in the building of the library. With the
kt> default rules (and my own stuff) 'ar' gets called for every
kt> changed .o file. This works, but seems to be slow.
If you want ar called only one time you cannot use the archive
capability ((libfoo.a)x.o). You have to do something like:
libfoo.a: $(OBJS)
$(AR) $(ARFLAGS) $^
Note that in this method the .os are not intermediate files.
At the moment there is no good way of having both .o's be intermediate
files and using only one ar operation to create the library.
kt> As an aside, having the .o files as temporary targets should
kt> normally delete them after making. That does not happen in my
kt> current setup. Is this desired for any reason?
See the GNU make manual and look up intermediate files.
kt> Oh yes, I think this mailing list could do with some SPAM filters
kt> (and a searchable archive). I know, more work... (but only in the
kt> short term though).
There are plenty of searchable archives of the GNU lists; ask Google.
For example, http://www.mail-archive.com/
As for spam filtering, these mailing lists use the Mailman
infrastructure installed by the FSF; if you'd like to see
more/different/better capabilities you need to talk to them (look here
for a mail address: http://mail.gnu.org/mailman/listinfo/ ).
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- libraries, Kris Thielemans, 2002/11/01
- Re: libraries,
Paul D. Smith <=