News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

make.exe 4.0 documentation?

Started by Shintaro, November 12, 2022, 06:00:07 PM

Previous topic - Next topic

Shintaro

Hi,
Does anyone have any docs for make.exe (In masm 5.1)?
I thought something like this should work:

test.obj:    test.asm
          masm test.asm
test.exe:   test.obj
          link test.obj;


Then save it to test.mak.
Run it "make test.mak"
What am I messing up?
"Wyrd bið ful āræd. Fate is inexorable."

daydreamer

Quote from: Shintaro on November 12, 2022, 06:00:07 PM
Hi,
Does anyone have any docs for make.exe (In masm 5.1)?
I thought something like this should work:

test.obj:    test.asm
          masm test.asm
test.exe:   test.obj
          link test.obj;


Then save it to test.mak.
Run it "make test.mak"
What am I messing up?
Save the above as. Bat file
Since this is 16bit dos,use 16bit linker instead

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

Shintaro

All Good.
I wanted to use the MAKE utility in this instance, but thanks for the suggestion anyway.

P63 of Advanced MSDOS Programming, HERE, I did have it right.
It was that the utility on the first run was throwing "target does not exist" errors. Well of course it doesn't exist, it is the first time running. I thought it would be smart enough to suppress an error like that, perhaps not.
I understand it needs to look ahead to check if the code is up to date, but I still find it odd that it throw those errors.

So I ended up with just the following:

test.obj : test.asm
masm /ZI test;
test.exe : test.obj
link /MAP /CODEVIEW test;



I might see if I can add the "Clean" function to it. I know NMAKE supports it, but I don't know if MAKE does.

"Wyrd bið ful āræd. Fate is inexorable."