Hello Jari,
Please keep the mailing list in Cc:. Thanks.
* Jari Strand wrote on Mon, Dec 04, 2006 at 02:09:10PM CET:
> >From: Ralf Wildenhues <[EMAIL PROTECTED]>
> >* Jari Strand wrote on Sun, Dec 03, 2006 at 08:08:04PM CET:
> >>
> >> ..asm.o:
> >
> >This line should be (minus the indentation):
> > .asm.o:
> >> nasm -o $@ -f elf -dLINUX $<
> >
> >If you do the effort of defining NASM_PATH above, then you should use it
> >here, no?
> > $(NASM_PATH) -o $@ -f elf -dLINUX $<
> >
>
> Are you saying that there should be no identation after the
> .asm.o: line?
No. The error you made was the doubled period. Instead of writing
this:
..asm.o:
$(NASM_PATH) -o $@ -f elf -dLINUX $<
You should be writing this:
.asm.o:
$(NASM_PATH) -o $@ -f elf -dLINUX $<
(I was merely trying to point out that my post contained indentation).
And it seems I forgot to add that you need to set the suffixes list.
In a plain Makefile, you'd do that with this line:
.SUFFIXES: .asm .o
In a Makefile.am, you instead write this:
SUFFIXES = .asm .o
This helps automake detect the list of suffixes; it will then set it
correctly for make.
Hope that helps.
Cheers,
Ralf