From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7f471e13e79a0f646129ee16b5ce26a5@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] newbie mk question From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-dgfcpayxuvhqdfxzaqdkgazjei" Date: Fri, 4 Oct 2002 15:24:33 +0100 Topicbox-Message-UUID: fcbda770-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-dgfcpayxuvhqdfxzaqdkgazjei Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit if i've understood what you're after, i imagine you could use binds to achieve the same effect, assuming you don't have any filename clashes, and that the mkfile assumes everything is in the current directory. e.g. bind -c . . bind -a otherdir . mk --upas-dgfcpayxuvhqdfxzaqdkgazjei Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from punt-2.mail.demon.net by mailstore for rog@vitanuova.com id 1033738491:20:18482:121; Fri, 04 Oct 2002 13:34:51 GMT Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-2.mail.demon.net id aa2020979; 4 Oct 2002 13:34 GMT Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.6.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id BDF7C19A2D; Fri, 4 Oct 2002 09:34:24 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from cc-smtp2.swlocal (unknown [195.173.15.4]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 52D8E199B3 for <9fans@cse.psu.edu>; Fri, 4 Oct 2002 09:33:05 -0400 (EDT) Received: from 127.0.0.1 by cc-smtp2.swlocal (InterScan E-Mail VirusWall NT); Fri, 04 Oct 2002 14:32:44 +0100 To: 9fans@cse.psu.edu From: steve.simon@snellwilcox.com Received: from ccMail by snellwilcox.com (ccMail Link to SMTP R8.51.00.11) id 981768180; Fri, 04 Oct 2002 14:32:44 +0100 Importance: normal Priority: normal Message-Id: <981768180@snellwilcox.com> X-MIME-Engine: v0.90 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Id: <981768180-1@snellwilcox.com> Content-Transfer-Encoding: 7bit Subject: [9fans] newbie mk question Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu X-Reply-To: steve.simon@snellwilcox.com List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 04 Oct 2002 14:31:42 +0100 How do I tell mk that I want to compile some C source from the current dir, some from another dir, putting the .$(O) files in the current dir and then link the whole lot together. gmake has a .path= construct which seems a bit ugly to me, I'am sure there must be an elegant way to do this in mk but how? Thanks, -Steve --upas-dgfcpayxuvhqdfxzaqdkgazjei--