From owner-freebsd-questions Wed Nov 7 13:15:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 346F037B417 for ; Wed, 7 Nov 2001 13:15:46 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id C5AE32B6B2; Wed, 7 Nov 2001 22:15:41 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id EEA4E1CF; Thu, 8 Nov 2001 08:15:32 +1100 (EST) Date: Thu, 8 Nov 2001 08:15:32 +1100 From: Edwin Groothuis To: =?iso-8859-1?Q?S=F8ren_Neigaard?= Cc: freebsd-questions@FreeBSD.ORG Subject: Re: make tutorial Message-ID: <20011108081532.D35710@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , =?iso-8859-1?Q?S=F8ren_Neigaard?= , freebsd-questions@FreeBSD.ORG References: <1005136725.4501.18.camel@lapdancer.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <1005136725.4501.18.camel@lapdancer.dk>; from neigaard@e-box.dk on Wed, Nov 07, 2001 at 01:38:44PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 07, 2001 at 01:38:44PM +0100, Søren Neigaard wrote: > Sorry about this offtopic subject, but I belive there are some of you > who knows alot about the subject. > > Where can I find a easy "make" tutorial. What I need right now, is a way > to detect wether the Makefile is run on a Windoze or a Unix box, so I > can switch between the two. Man make reveals the following environment variables: MACHINE and MACHINE_ARCH. But what you are looking for is a way to create OS specific Makefiles, which is often done via configure. But euh... my knowledge of configure and how these files are generated is pretty close to zero, so I leave that to somebody else to give you info about that. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message