Miscellaneous > 16 bit DOS Programming

make.exe 4.0 documentation?

(1/1)

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

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

--- End code ---

Then save it to test.mak.
Run it "make test.mak"
What am I messing up?

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:

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

--- End code ---

Then save it to test.mak.
Run it "make test.mak"
What am I messing up?

--- End quote ---
Save the above as. Bat file
Since this is 16bit dos,use 16bit linker instead

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:

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


--- End code ---

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.

Navigation

[0] Message Index

Go to full version