I'm loosing my mind here. I thought I knew how make files work. I've been
using them for years!!!!

Could anyone tell me why this compiles l3.o:-

>COMPILER=cx332
>
>%.o : %.c
>       $(COMPILER) $*.c
>
>l3.o:l3.c
>
>all: l3.o

and why this does not:-

>COMPILER=cx332
>
>%.o : %.c
>       $(COMPILER) $*.c
>
>all: l3.o

which exits with this error:-
>make: *** No rule to make target `l3.o', needed by `all'.  Stop.

I thought that once I have defined the .o -> .c rule, I shouldn't have to
explicitly define l3.o:l3.c relationship. I'm operating with a flat
directory structure, with source and makefile in the same directory.

I'm using Gnu Make v3.77 operating on a NT host. I dont know if this is a
newsgroup, if it is, I'm not currently subscribed so any reply will need to
be sent direct to me.

Many thanks


Gerwyn Davies

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to