[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

814.0. "Help with kernel makefiles" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Thu Jun 23 1994 16:04

Date Of Receipt: 	23-JUN-1994 08:27:57.73
From: 	FLAMBE::"[email protected]"
To: 	[email protected]
CC: 	
Subj: 	Help with kernel makefiles

Hi,

Can anyone point me at some docs/man pages for the kernel make utility?

It doesn't seem to be the one used for the standard system (at least some of
the more exotic syntax isn't documented in the standard man page).

I'm trying to do the following:

OFILES=a.o b.o c.o

then I want to generate a fairly automatic make target that says:

a.c: ${some_other_directory}/a.c 

b.c: ${some_other_directory}/a.c

c.c: ${some_other_directory}/c.c

looking at the kernel makefiles something along the lines of:

KERNEL_CCM_DIR          = ../../../../kernel/ccm
${OFILES:.o=.c}: $${@:${KERNEL_CCM_DIR}/$@}

may do it, but this isn't quite write as I'm not sure of the RHS syntax.

Thanx for any help.

-FredC

T.RTitleUserPersonal
Name
DateLines
814.1Re: Help with kernel makefilesSMURF::FILTERAutomatic Posting Software - mail to flume::puckMon Jul 11 1994 12:4255
Date Of Receipt: 	30-JUN-1994 13:04:00.81
From: 	FLAMBE::jmf "Joshua M. Friedman OSF/UNIX SDE  30-Jun-1994 1302"
To: 	Fred Cassirer <[email protected]>
CC: 	[email protected]
Subj: 	Re: Help with kernel makefiles

Fred, sorry for the delay...

Here are the only 'documents' that exist on this:

	/usr/sde/osf1/doc/kernel-build-rules
	<pool, eg goldos>/src/usr/lib/makefiles/template.mk
	odeman makefiles
	odeman make

-josh

----------
Date: Thu, 23 Jun 1994 08:26:53 -0400
From: Fred Cassirer <[email protected]>
Message-Id: <[email protected]>
To: [email protected]
Subject: Help with kernel makefiles


Hi,

Can anyone point me at some docs/man pages for the kernel make utility?

It doesn't seem to be the one used for the standard system (at least some of
the more exotic syntax isn't documented in the standard man page).

I'm trying to do the following:

OFILES=a.o b.o c.o

then I want to generate a fairly automatic make target that says:

a.c: ${some_other_directory}/a.c 

b.c: ${some_other_directory}/a.c

c.c: ${some_other_directory}/c.c

looking at the kernel makefiles something along the lines of:

KERNEL_CCM_DIR          = ../../../../kernel/ccm
${OFILES:.o=.c}: $${@:${KERNEL_CCM_DIR}/$@}

may do it, but this isn't quite write as I'm not sure of the RHS syntax.

Thanx for any help.

-FredC

814.2Re: Help with kernel makefilesSMURF::FILTERAutomatic Posting Software - mail to flume::puckMon Jul 11 1994 12:4571
Date Of Receipt: 	30-JUN-1994 13:55:36.80
From: 	FLAMBE::jmf "Joshua M. Friedman OSF/UNIX SDE  30-Jun-1994 1354"
To: 	[email protected]
CC: 	buildhelp@DEC:.zko.flambe
Subj: 	Re: Help with kernel makefiles

Fred, this is a similar problem to building shared and static versions
of the same libraries.  If you look at src/usr/ccs/lib and src/usr/shlib
for any libraries that are in both, you'll see the sources are in one
place, and VPATH is used from the other place in the Makefile to find them.

Hope this gives you a pointer to what you need.

If you get more specific questions, please send mail to buildhelp.  I may
answer, but others may too.  thanks...

-josh

----------
To: "Joshua Friedman, OSF/UNIX SDE 381-1548" <[email protected]>
Subject: Re: Help with kernel makefiles  
Date: Thu, 30 Jun 94 13:06:13 -0400
From: [email protected]
X-Mts: smtp


>
> Fred, sorry for the delay...
> 
> Here are the only 'documents' that exist on this:
> 
> 	/usr/sde/osf1/doc/kernel-build-rules
> 	<pool, eg goldos>/src/usr/lib/makefiles/template.mk
> 	odeman makefiles
> 	odeman make
> 
> -josh
> 

Thanx for the pointer, do you have any suggestions for how I should
go about building my sources that need to be compiled in both a
user library directory AND a kernel subdirectory?

Thanx for any input.
-FredC

> 
> I'm trying to do the following:
> 
> OFILES=a.o b.o c.o
> 
> then I want to generate a fairly automatic make target that says:
> 
> a.c: ${some_other_directory}/a.c 
> 
> b.c: ${some_other_directory}/a.c
> 
> c.c: ${some_other_directory}/c.c
> 
> looking at the kernel makefiles something along the lines of:
> 
> KERNEL_CCM_DIR          = ../../../../kernel/ccm
> ${OFILES:.o=.c}: $${@:${KERNEL_CCM_DIR}/$@}
> 
> may do it, but this isn't quite write as I'm not sure of the RHS syntax.
> 
> Thanx for any help.
> 
> -FredC