From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 21:05:26 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3348A16A419 for ; Thu, 26 Jul 2007 21:05:26 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id E761F13C46A for ; Thu, 26 Jul 2007 21:05:25 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by py-out-1112.google.com with SMTP id a73so1295855pye for ; Thu, 26 Jul 2007 14:05:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RLcPYuJA18zKO8ScTZEOis86ICGwgDQVr3RA9uYlnOPgf4baHtEUrDyQnZYFmAmJOuBveQ4dsmcoZFkSiST+2oOAwKX6s7wVn1gMqrQXVVl6P8fuvULzerMjpZymUy30DME7cC0/3G0KuZ6bdn4eA87mrzwib92Ig2is6oRTl1I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=diBQpNNn+Ye1O9Gm+CTyX6ZoTizdvtfaCbaBvP1DY8rqiF3lMooqWme9Vv+R8RI5DXM1O7uDEer3JF2dNs/bYWOZHvXboQfoS05Uj8DczKvK/thA8w9UNazlG1PSMCTts9HvE5XqZFO+uPTSBZ0dbViAk79YSS/OAofbPZxEa0c= Received: by 10.35.86.19 with SMTP id o19mr3504004pyl.1185483924838; Thu, 26 Jul 2007 14:05:24 -0700 (PDT) Received: by 10.35.17.4 with HTTP; Thu, 26 Jul 2007 14:05:24 -0700 (PDT) Message-ID: <340a29540707261405y471d6c2ct981e481a9709f95b@mail.gmail.com> Date: Thu, 26 Jul 2007 15:05:24 -0600 From: "Andrew Falanga" To: "Dima Sorkin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: make and gmake on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 21:05:26 -0000 On 7/26/07, Dima Sorkin wrote: > Hi. > I have a FreeBSD 6.2, installed it from the distribution disks, no > changes by me. > > There is a "make" and a "gmake" installed on it. They report that they > are the same programm, but in fact they behave completely different. > In fact only "gmake" behaves > like "GNU make" should behave and only with "gmake" > I succeed to build serious projects. > > What happens here ? What I the "make", where did it come from ? > > How do I cause to system "make" behave as "gmake" ? > > Thanks, regards, > Dima. > > P.S. see their output: > [dsorkin@eml5 /usr/home/dsorkin]$ make --version > GNU Make 3.81 > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. > > This program built for i386-portbld-freebsd6.2 > [dsorkin@eml5 /usr/home/dsorkin]$ gmake --version > GNU Make 3.81 > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. make is BSD make, gmake is GNU make (hence the reason it behaves like GNU make :-). Others from this list can give you a more in-depth discussion of the differences. It's odd that you get the same results as shown above. BSD make doesn't have a --version option. I would suspect you have an alias, or something similar, setup to "link" make to gmake. I've used gmake "extensively" for my projects, but never BSD make. I believe that BSD make is the version use by many of the ports packages, and most definitely by the system build environment. Please note that many of the ports use gmake as well. Andy