From owner-freebsd-questions@FreeBSD.ORG Sat Oct 2 06:15:12 2010 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 2844B106566C for ; Sat, 2 Oct 2010 06:15:12 +0000 (UTC) (envelope-from chetan.shukla@aricent.com) Received: from jaguar.aricent.com (jaguar.aricent.com [180.151.2.24]) by mx1.freebsd.org (Postfix) with ESMTP id 53AAA8FC0C for ; Sat, 2 Oct 2010 06:15:11 +0000 (UTC) Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 778CA36B29; Sat, 2 Oct 2010 11:43:23 +0530 (IST) Received: from GUREXHT01.ASIAN.AD.ARICENT.COM (gurexht01.asian.ad.aricent.com [10.203.171.136]) by jaguar.aricent.com (Postfix) with ESMTP id 607BB36B26; Sat, 2 Oct 2010 11:43:23 +0530 (IST) Received: from GUREXMB01.asian.ad.aricent.com ([10.203.171.130]) by GUREXHT01.ASIAN.AD.ARICENT.COM ([10.203.171.137]) with mapi; Sat, 2 Oct 2010 11:44:47 +0530 From: Chetan Shukla To: Dan Nelson , Paul B Mahol Date: Sat, 2 Oct 2010 11:44:47 +0530 Thread-Topic: How to check version of Make in FreeBSD Thread-Index: Acth+A/8MnPylVFEQSSeqTVmAWfHxwAALBsg Message-ID: References: <1285967910.14091.81.camel@localhost.localdomain> <20101002060241.GF40148@dan.emsphone.com> In-Reply-To: <20101002060241.GF40148@dan.emsphone.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Devin Teske , "freebsd-questions@freebsd.org" Subject: RE: How to check version of Make in 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: Sat, 02 Oct 2010 06:15:12 -0000 Thanks everyone for the guidance. I got the VERSION number as 5200408120 Does it mean it has make-3.81? Also could someone provide guidance on How to run code(C C++) written for Linux/Solaris On FreeBSD machine without changing Makefiles? Thanks & Regards, Chetan -----Original Message----- From: Dan Nelson [mailto:dnelson@allantgroup.com] Sent: Saturday, October 02, 2010 11:33 AM To: Paul B Mahol Cc: Devin Teske; Chetan Shukla; freebsd-questions@freebsd.org Subject: Re: How to check version of Make in FreeBSD In the last episode (Oct 01), Paul B Mahol said: > On 10/1/10, Devin Teske wrote: > > On 10/1/10, Chetan Shukla wrote: > >> > I need to check the version of Make installed in FreeBSD. make -v > >> > does not help here. > >> > What is the similar command in FreeBSD ? > >> > >> On Fri, 2010-10-01 at 18:33 +0000, Paul B Mahol wrote: > >> gmake. On serious side there is no way to find version and freebsd mak= e > >> havent changed much in years... > > > > On the command-line... > > > > strings `which make` | grep -B1 MAKE_VERSION > > > > Or in a makefile... > > > > /usr/tmp/Makefile: > > all: > > @echo "MAKE_VERSION=3D'$(MAKE_VERSION)'" > > > > make > > MAKE_VERSION=3D'5200408120' > > Nice. Even nicer: make -V MAKE_VERSION Not that the version really helps; there have been many additions to make since 2004. -- Dan Nelson dnelson@allantgroup.com "DISCLAIMER: This message is proprietary to Aricent and is intended solely = for the use of the individual to whom it is addressed. It may contain privi= leged or confidential information and should not be circulated or used for = any purpose other than for what it is intended. If you have received this m= essage in error, please notify the originator immediately. If you are not t= he intended recipient, you are notified that you are strictly prohibited fr= om using, copying, altering, or disclosing the contents of this message. Ar= icent accepts no responsibility for loss or damage arising from the use of = the information transmitted by this email including damage from virus."