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