Operating System - OpenVMS
1753679 Members
5677 Online
108799 Solutions
New Discussion юеВ

Re: Makefile in VMS itanium

 
YE LIU_1
Frequent Advisor

Makefile in VMS itanium

Dear VMS Users,

I am trying to convert mms files to make files and to use make instead. I have problem in using symbol with "$". Look at this example:

"OBJ$" = "DEV_SRC:[YLIU.CFTS.ELX_003_023_007_023.OBJ]"

Here is the make file:
#test.mak
show:
show log OBJ$

And here is the result I got:

ylqamake -f test.mak
show log OBJ
%SHOW-S-NOTRAN, no translation for logical name OBJ



7 REPLIES 7
Hoff
Honored Contributor

Re: Makefile in VMS itanium

The $ character is often (part of) a make-level symbol.

Depending on which particular make utility is in use here, doubling the character may get you where you need to be.

Specifically:

show logical obj$$

If it's the gmake tool in use here, then reading the gmake documentation can often provide insight into how the tool works. In this case, here's the specific gmake section related to variable-name processing within the tool:

http://www.gnu.org/software/make/manual/make.html#Using-Variables

There are various make tools around. Here's one list:

http://en.wikipedia.org/wiki/Make_(software)

And the DECset MMS tool is available on OpenVMS I64, FWIW.
YE LIU_1
Frequent Advisor

Re: Makefile in VMS itanium

Thanks, Hoff. Double the money ($) will do it.

YE LIU

YE LIU_1
Frequent Advisor

Re: Makefile in VMS itanium

Hi, Hoff

Here is a bonus question: in vms makefile, if I want to use multiple line input as one line, shall I use "\" or "-"?

Thanks,

YE LIU
Jan van den Ende
Honored Contributor

Re: Makefile in VMS itanium

YE LIU,

>>>
Thanks, Hoff. Double the money ($) will do it.
<<<

... but in these forums, the currency is POINTS.
And the good thing about them, is you can make them (well, give away as reward) as much as you like.

Proost.

Have one on me.

jpe

Don't rust yours pelled jacker to fine doll missed aches.
Steven Schweda
Honored Contributor

Re: Makefile in VMS itanium

> I am trying to convert mms files to make
> files and to use make instead.

Why? Which "make"?

> [...] shall I use "\" or "-"?

MMS lets you use either. I normally use "\"
for dependencies, macros, and other
"make"-like things, and "-" for DCL action
lines.

"\" would be more UNIX-like, so I'd expect
most "make" programs to like it more.
Hoff
Honored Contributor

Re: Makefile in VMS itanium

I'd tend to expect backslashes.

Please run a quick search for "continuation" in the gmake documentation for some makefile examples involving the gmake backslash syntax:

http://www.gnu.org/software/make/manual/make.html

There are various makefiles available on the OpenVMS Freeware which can serve as examples, too. Look here:

http://digiater.nl/openvms/freeware/

Alternatively, a couple of small tests in your makefile should get you an answer around the particular gmake (\) or DCL (-) continuation in the particular command context you're looking at, and these tests can get you going quickly. You're setting out to write a makefile here; a task I've always found requires substantial testing and at least some time reading some arcane corner or another of the associated documentation.
YE LIU_1
Frequent Advisor

Re: Makefile in VMS itanium

Thanks, Steve and Hoff.

YE LIU