[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

1446.0. "Makefile question" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Fri Apr 28 1995 16:02

Date Of Receipt: 	28-APR-1995 14:10:12.66
From: 	SMURF::FLUME::daniele "Mike Daniele  28-Apr-1995 1408"
To: 	odeadmin@DEC:.zko.flume
CC: 	
Subj: 	Makefile question

Hi,

	Given that /usr/sbin/foo is executed when building
	/usr/sbin/bar...

	How do I reference foo in bar's Makefile so that
	it will use

		<sandbox>/obj/alpha/usr/sbin/foo/foo if that exists, 
	else
		<backing-tree>/obj/alpha/usr/sbin/foo/foo

	?

Thanks,
Mike

T.RTitleUserPersonal
Name
DateLines
1446.1Re: Makefile questionAOSG::FILTERAutomatic Posting Software - mail to flume::puckFri Apr 28 1995 16:0449
Date Of Receipt: 	28-APR-1995 14:24:39.09
From: 	SMURF::QUARRY::"[email protected]" "28-Apr-1995 1423"
To: 	Mike Daniele <[email protected]>
CC: 	[email protected]
Subj: 	Re: Makefile question

There are several implications of what you're suggesting here;

1) that <backing-tree>/obj/alpha/usr/sbin/foo/foo exists in the build
   BEFORE you try and build .../usr/sbin/bar - this is not a guarantee and is a
   dangerous dependency to introduce unless absolutely unavoidable.

2) If it must depend on it, then .../usr/sbin/foo/foo must be build 1st using  
     the host systems libs/includes/compiler to ensure that it will actually 
run 	    on whatever OS the build machine may be running (ie ptos shared 
objects may      not run on a 2.0/3.0/3.2 machine). Then you'd have to go back 
and rebuild foo    as a shared exe against the backingtree, since that is what 
must ship.

3) The paths in a workon will always refer to your sandbox first then the      
 	   backingtree - your main concern would be to ensure that this can build    
		   correctly in the nightly build and not break the build or ship an object  
   	   linked against the wrong libs.



	-Grant




| Hi,
| 
| 	Given that /usr/sbin/foo is executed when building
| 	/usr/sbin/bar...
| 
| 	How do I reference foo in bar's Makefile so that
| 	it will use
| 
| 		<sandbox>/obj/alpha/usr/sbin/foo/foo if that exists, 
| 	else
| 		<backing-tree>/obj/alpha/usr/sbin/foo/foo
| 
| 	?
| 
| Thanks,
| Mike