Re: [cc65] Makefiles?

From: Andre Majorel <>
Date: 2009-01-19 09:26:19
On 2009-01-19 09:35 +0200, Karri Kaksonen wrote:

> /MegaPak/Makefile:
> all:
>    "$(MAKE)" -C resident;
>    "$(MAKE)" -C intro;

What is the final semicolon for ?

> # Rule for making a *.o file out of a *.c file
> %.o: %.c
>    $(CC) $(CFLAGS) $(SEGMENTS) -o $(patsubst %c, %s, $(notdir $<)) $<
>    $(AS) -o $@ $(AFLAGS) $(*).s
>    $(RM) $*.s

To the OP : in a makefile, commands are supposed to be preceded by
a tab, not three (or even eight) spaces. Whatever flavour of make
Karri uses may accept spaces but you can't count on that as that
is not standard make syntax.

For reference, the standard :

André Majorel <URL:>
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jan 19 09:26:26 2009

This archive was generated by hypermail 2.1.8 : 2009-01-19 09:26:27 CET