what is the distinguish between gmake and make?


 
Thread Tools Search this Thread
Top Forums Programming what is the distinguish between gmake and make?
# 1  
Old 07-14-2006
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? Smilie
# 2  
Old 07-14-2006
different software licenses, and gmake has a few extended features.
# 3  
Old 07-15-2006
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.
# 4  
Old 07-18-2006
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?
# 5  
Old 07-18-2006
It's strange that you have 2 different versions of one product from one vendor. It's a problem that is waiting to happen
# 6  
Old 07-18-2006
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.
# 7  
Old 07-18-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Make and gmake issues

Hello I am working on a CPP code written for SUN CC 5.5 and make we used make to compile the code then it compilation went smooth now i am using gmake: I have a make file like this WSROOT=.. include $(WSROOT)/etc/wsmkinclude.common all: @for subdir in */Makefile; \ do \... (1 Reply)
Discussion started by: Revathi R
1 Replies

2. Programming

Make and gmake issues

Hello I am working on a CPP code written for SUN CC 5.5 and make we used make to compile the code then it compilation went smooth now i am using gmake: I have a make file like this WSROOT=.. include $(WSROOT)/etc/wsmkinclude.common all: @for subdir in */Makefile; \ do \... (1 Reply)
Discussion started by: Revathi R
1 Replies

3. SCO

Distinguish between file systems

Hello, is there any command in SCO unix by which I can check if the file system is HTFS or DTFS? Thanks (1 Reply)
Discussion started by: Mick
1 Replies

4. UNIX for Advanced & Expert Users

How to uniquely distinguish between two USB ports??

Hi all, I am facing a problem while writing a shell script. My machine has two USB ports- left port and right port. whenever I connect USBS to both the ports, entry is generated as /sys/block/sdc and /sys/block/sdd and I mount the USBs to a particular directory. But I need to know... (3 Replies)
Discussion started by: Pkumar Sachin
3 Replies

5. UNIX for Advanced & Expert Users

how to distinguish entry/exit of a syscall when using ptrace?

Hi all, I am using ptrace to keep track of clone syscalls in a program. However, I found that the traced syscall cant be paired. for example, there are some syscalls that have entry, but without exit showing up in the traced sequences. So, is there anyway to distinguish the entry and exit of a... (0 Replies)
Discussion started by: tristartom
0 Replies

6. HP-UX

how to distinguish dvd rom or hard disk

Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE EAC DVD-ROM DW-224EV /dev/dsk/c0t0d0 ... (1 Reply)
Discussion started by: alert0919
1 Replies

7. UNIX for Advanced & Expert Users

build - make -gmake: execvp: mcu: Permission denied

Hi All, sorry it was application related.. i am deleting it Thanks & Regards Shihab (0 Replies)
Discussion started by: shihabvk
0 Replies

8. HP-UX

Perl, gmake and make software

Hi, I'm searching website where there is software for HP-UX operating system in free download because I must install Perl, Make and Gmake on HP-UX server. Have you goods URL for me ? Thank you very much! bye Staaan (2 Replies)
Discussion started by: staaan
2 Replies

9. HP-UX

how to distinguish different files while ftp?

how to distinguish different files and choose a mode while ftp?means which modes ascii or binary for zip(.gz) ,.txt,.sh,.dat and executable as well as movie files. (1 Reply)
Discussion started by: megh
1 Replies

10. AIX

distinguish the extension of a file

Hello, In a script shell, I have a variable containing the name of a file and I would like to distinguish the name from the extention of the file. For example, the file 'myfile.txt' is in a variable called $VAR. How can I obtain 2 variables, one with 'myfile' and the other with 'txt' ? Thank you (2 Replies)
Discussion started by: tbeghain
2 Replies
Login or Register to Ask a Question