NASM Forum > Using NASM
-M behaviour change in recent NASM versions ?
(1/1)
pahhur:
I have old projects (compiled with older NASM version) that I wanted to compile
on my up-to-date Arch installation with g++ 12.1 and nasm 2.15.05
Given an x.asm and a ../include/macros.h
--- Code: ---|->source->x.asm
|->include->macros.h
--- End code ---
the older nasm versions when called like
--- Code: ---nasm -M -felf64 -D__BITS__=64 -Ox -Dlinux -I../include x.asm
--- End code ---
inside the source directory, generated correct Makefile dependencies, i.e. something like
--- Code: ---x.o : x.asm ../include/macros.h
--- End code ---
The current version generates dependencies like
--- Code: ---x.o : x.asm macros.h
--- End code ---
which of course leads to the problem that a make in the source direcory claims about missing dependencies:
--- Code: ---make[1]: *** No rule to make target 'macros.h', needed by 'x.o'. Stop.
--- End code ---
Can anyone enlighten me, why this is the case, and what new command line options might be missing now?
Navigation
[0] Message Index
Go to full version