AssembleNasm: add source dir to include path.

This makes it possible to %include local files. nasm doesn't allow this
otherwise (include paths are assumed relative to the working directory).

Fixes build of ape_reader.
This commit is contained in:
Adrien Destugues 2014-12-09 17:53:44 +01:00
parent 0fecd3e882
commit 2311bdf24f
1 changed files with 2 additions and 2 deletions

View File

@ -179,9 +179,9 @@ rule AssembleNasm
actions AssembleNasm
{
if test $(ASFLAGS) ; then
$(HAIKU_NASM) -d $(ASFLAGS) $(NASMFLAGS) -o $(1) $(2);
$(HAIKU_NASM) -d $(ASFLAGS) $(NASMFLAGS) -I$(2:D)/ -o $(1) $(2) ;
else
$(HAIKU_NASM) $(NASMFLAGS) -o $(1) $(2);
$(HAIKU_NASM) $(NASMFLAGS) -I$(2:D)/ -o $(1) $(2) ;
fi
}