![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
|||||
|
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) |
|
||||
|
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.. |
|
||||
|
[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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|