The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CPAM_TWW -gmake utilities vasanthan UNIX for Advanced & Expert Users 0 04-30-2008 12:13 AM
gmake For AIX 5.3 eternalflame AIX 2 03-10-2008 02:43 AM
distinguish the extension of a file tbeghain AIX 2 06-13-2007 08:15 AM
One Last Question about Core Files (distinguish) URGENT TRUEST Shell Programming and Scripting 2 02-18-2003 01:14 PM
gmake Abhishek UNIX for Dummies Questions & Answers 1 07-26-2001 07:06 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-14-2006
Registered User
 

Join Date: Jul 2006
Posts: 10
what is the distinguish between gmake and make?

I am working on solaris 9. and use gmake to compile and linke c/c++ program.
anybody can tell me the distinguish between gmake and make?
Reply With Quote
Forum Sponsor
  #2  
Old 07-14-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
different software licenses, and gmake has a few extended features.
Reply With Quote
  #3  
Old 07-15-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
On linux gmake and make often are the same:

$ gmake --version
GNU Make 3.80
Copyright (C) 2002 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 --version
GNU Make 3.80
Copyright (C) 2002 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.
Reply With Quote
  #4  
Old 07-17-2006
Registered User
 

Join Date: Jul 2006
Posts: 10
thanks. and i found that on solaris gmake and make is not same.

shenzhen{bzhu}$ gmake -version
GNU Make version 3.71, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94 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.

shenzhen{bzhu}$ make -version
GNU Make 3.80
Copyright (C) 2002 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.

But when compile program, they maybe have no difference. right?
Reply With Quote
  #5  
Old 07-17-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
It's strange that you have 2 different versions of one product from one vendor. It's a problem that is waiting to happen
Reply With Quote
  #6  
Old 07-17-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
There shouldn't be too many differences in the output of the different versions. But you might want to clean that up so that you have a single version on your system. Use 'pkginfo | grep -i make' to get the names of both the packages, and then pkgrm the version that is not required.
Reply With Quote
  #7  
Old 07-18-2006
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Solaris always includes the Sun (CCS) make, it is used among other things to build NIS maps. Howerver it does not include c or c++ compilers.

gcc and g++ or rather makefiles designed to work with them tend to work a lot better with gmake than solaris make, so most people who use gcc also install some or all of the other components of the gnu build chain.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0