[GRASS5] gmake problem

Justin Hickey jhickey at hpcc.nectec.or.th
Tue Jun 26 05:48:17 EDT 2001


Hi Somesh

Somesh Agarwal wrote:
> 
> hello all ,
>    I haveing a small gmake problem. I have 2 rules written my gmake 
> file but only the first one of them is getting executed. Here is the
> Gmakefile
> 
> $(OBJARCH)/ft.o: ft.c
>         $(CC) $(CFLAGS) -c ftstring.c -o $@ $(FTINC)
> 
> PGM=d.try
> OFILES = \
>         ftstring.o
> LIBES=$(DISPLAYLIB) $(RASTERLIB) $(GISLIB) $(FTLIB)
> FTINC=-I/home/somesh/freetype/include/freetype/
> $(BIN_CMD)/$(PGM): $(OFILES) $(LIBES)
>         $(CC) $(LDFLAGS) -o $@ $(FTINC) $(OFILES) $(LIBES) $(TERMLIB)
> $(MATHLIB) $(XDRLIB)
> 
> $(RASTERLIB): #
> $(DISPLAYLIB): #
> $(GISLIB): #
> 
> the second rule PGM .. is not getting executed .

The problem is that

PGM=d.try

is not a rule, but a variable assignment. You need to add the colon at
the end to make it a rule:

PGM=d.try:

Hope this helps

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================



More information about the grass-dev mailing list