help-make
[Top][All Lists]
Advanced

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

gnu make


From: jayant . kumar
Subject: gnu make
Date: Tue, 7 May 2002 10:12:32 +0200


hi,
  I have 2 file called tmp.mk and makefile.

>> cat makefile
include tmp.mk

%.o: %.c
  echo "Compiling"
  gcc -c  $< -o $@

SRCS = t.c

>> cat tmp.mk
OBJ = $(SRCS:.c=.o)

lib : $(OBJ)
  echo $(SRCS)

gmake version used is 3.77
If I give gmake lib it does not compile t.c file. Please let me know why it is not building t.c file

Regards
Jayant Kumar


reply via email to

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