From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3888 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Build system adjustments for subarchs Date: Tue, 13 Aug 2013 21:16:21 -0400 Message-ID: <20130814011621.GH221@brightrain.aerifal.cx> References: <20130814010617.GA16011@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1376442991 30148 80.91.229.3 (14 Aug 2013 01:16:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 01:16:31 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3892-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 14 03:16:34 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V9PhS-0002Bx-AV for gllmg-musl@plane.gmane.org; Wed, 14 Aug 2013 03:16:34 +0200 Original-Received: (qmail 24535 invoked by uid 550); 14 Aug 2013 01:16:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24524 invoked from network); 14 Aug 2013 01:16:33 -0000 Content-Disposition: inline In-Reply-To: <20130814010617.GA16011@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3888 Archived-At: On Tue, Aug 13, 2013 at 09:06:17PM -0400, Rich Felker wrote: > Another idea, using the filesystem, would be to have .sub files in the > asm directories containing the filename of a different asm file to > substitute. This is essentially emulating symlinks, but I don't see a > good way to get make to do automated dependency tracking so that > modifying the pointed-to asm file causes the object file to be > rebuilt. I am exploring this approach further however in hopes that > there might be a way. > > Any other ideas? One further idea I sort of like: -include arch/$(ARCH)/subarchs.mak and coming up with a halfway-clean way, in subarchs.mak, to put rules that override the asm files that get used for particular modules. However, I'm not seeing a really clean way to do that. I don't want to end up duplicating the commands for assembling into files other than the main makefile. Rich