Hello

I learning make utility and need help!

I write a simple make file that contain static rule, but it doesnt work!
Coud you explain me what wrong and why?
-------------------------------
Sources:
I have 2 source files: file.c, main.c
I have 1 header file: file.h
-------------------------------
Makefile contain this:

objects = main.o first.o

$(objects): %.o: %.c
              $(CC) -c $(CFLAGS) $< -o $@
---------------------------------
I suppose that main.o and first.o objects file will be created by above
static rule, becouse i indicated them in object variable,but only
main.ocreated. Why?
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to