Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site fortune.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!fortune!olson From: olson@fortune.UUCP (Dave Olson) Newsgroups: net.unix Subject: Re: Make and libraries Message-ID: <5404@fortune.UUCP> Date: Mon, 29-Jul-85 02:43:05 EDT Article-I.D.: fortune.5404 Posted: Mon Jul 29 02:43:05 1985 Date-Received: Wed, 31-Jul-85 01:20:26 EDT References: <145@iitcs.UUCP> <165@husky.uucp> <723@lsuc.UUCP> <512@unisoft.UUCP> Reply-To: olson@fortune.UUCP (Dave olson) Organization: Fortune Systems, Redwood City, CA Lines: 23 Keywords: make, libraries The problem with suppressing the built-in rule that augmented make uses in dealing with libraries becomes apparrent if there is an error in compiling one of the files. In this case, NONE of the files have been added to the library, and when you fix the error, and start make, ALL those files will once again be compiled. This is especially irritating when the error occurs in the 15th of 16 files! I wrestled with this problem for quite a while, and decided that it is best to go with the built-in rule, or some slight variation thereon. There are many ways to try and solve the above problem, but none of the ones I was able to find were as RELIABLE as the built-in rule, although most of them were somewhat faster... (as you pointed out). The bottom line seems to be that if you are actually doing development, you are going to be happier with the built-in rule, when dealing with libraries. (If you aren't doing development, but are just writing a makefile for some existing code, you MIGHT get away with it, but the next person to work on the code is likely to get burned, especially if they don't thoroughly understand make!) Dave Olson, Fortune Systems