The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: Shintaro on November 12, 2022, 06:00:07 PM

Title: make.exe 4.0 documentation?
Post by: 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?
Title: Re: make.exe 4.0 documentation?
Post by: daydreamer on November 12, 2022, 07:44:43 PM
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

Title: Re: make.exe 4.0 documentation?
Post by: Shintaro on November 13, 2022, 12:32:03 PM
All Good.
I wanted to use the MAKE utility in this instance, but thanks for the suggestion anyway.

P63 of Advanced MSDOS Programming, HERE (https://archive.org/details/Advanced_MS-DOS_Programming_2nd_Edition_Ray_Duncan), 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.