help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help: make static rules


From: Vad N
Subject: help: make static rules
Date: Thu, 28 Feb 2008 14:05:31 +0200

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.o created. Why?
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]