The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error in issuing a make and make install ahjiefreak Linux 1 03-12-2008 01:32 AM
Simple make file questions....i think, thnx Roxydogg28 UNIX for Dummies Questions & Answers 0 02-01-2008 05:39 AM
Migration of binary file from Sunos 5.8 to Sunos 5.9 Arvind Maurya UNIX for Advanced & Expert Users 1 07-12-2005 06:23 AM
make and make install commands gerwhelan UNIX for Dummies Questions & Answers 4 07-03-2003 05:49 AM
SunOS 5.8 jxh461 Shell Programming and Scripting 5 03-13-2003 07:37 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-24-2006
yzhang yzhang is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 5
Questions about make -C in SunOS

I am using a SunOS to compile a project. The Makefile contains commands "$(MAKE) -C $$dir". However, in "man make" there is no -C option. I tried using MAKE=gmake but it failed too. My questions:

1. The make options for this SunOS is different from the gnu make options. Is it because of the difference between the BSD make and GNU make, I wonder?

2. Could I rewrite make -C $$dir as:
cd dir; \
make; \
cd ..
?

Thanks.
  #2 (permalink)  
Old 04-24-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
gnumake man page does show a -C option.

Does the software require you use gnumake? If so, then you can probably get it at www.sunfreeware.com (listed under make-xxx (xxx=version)
  #3 (permalink)  
Old 04-24-2006
yzhang yzhang is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 5
Thanks for your reply.

> gnumake man page does show a -C option.

Yes, in

http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?make

I saw from "OPTIONS"

-C dir
Change to directory dir before reading the makefiles or doing
anything else. If multiple -C options are specified, each is
interpreted relative to the previous one: -C / -C etc is equiva-
lent to -C /etc. This is typically used with recursive invoca-
tions of make.

From the description, I think my way to simulate this option (in my question 2) is OK.

> Does the software require you use gnumake?

Not actually. The project I use has a Makefile.common for linux as well as one for SunOS. However the Makefile which is shared by both contains "make -C". Thus I think probably it's because linux has -C support for make, which may come from GNU make.

Last edited by yzhang; 04-24-2006 at 10:43 AM..
  #4 (permalink)  
Old 04-24-2006
yzhang yzhang is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 5
[fx:later] When I try to use gmake, I got this problem:

>>> $ gmake clean
>>> gmake[1]: *** /xxx/yyy/currentdir: Is a directory. Stop.

The program does not seem to run at all. "/xxx/yyy/currentdir" is the current directory, and is defined in Makefile.common:

"BASE = /xxx/yyy/currentdir"

The only use of $(BASE) is

"BASE_DIR = $(BASE)/zzz"

I could not figure out why this makes gmake stop.
  #5 (permalink)  
Old 04-25-2006
yzhang yzhang is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 5
Conclusion

There are different versions of make. The version under SunOS is probably called sun make. The most popular one is gmake, GNU make. The version under BSD is still different.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0