Doh.  I don't know what I was thinking.  This one is easy.

Your rule is:

%$(EXE): %.c
        @echo EXE -$@- from -$<-
        @$(RM) $@
        $(COMPILE.c)  $<
        $(LINK.c)  $(subst ../,,$(basename $<))$(OBJ) $(LDLIBS)
        @echo end EXE

COMPILE.c is:

  COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c $(SOURCE_FLAG)

CC is:

  CC = $($(ANSI)_$(CMPLR))

ANSI and CMPLR are:

  ANSI = HPACC
  CMPLR = STRICT

So, this $($(ANSI)_$(CMPLR)) expands to $(HPACC_STRICT)... which isn't
defined anywhere.

In CONFIG_SITE you have this:

  #  Client ANSI C Compiler (for Host builds)
  #   GCC     (gcc -ansi) GNU
  #   ACC     (acc)       OS VENDOR
  #   HPACC   (cc -Aa)    OTHER VENDOR 
  ANSI=HPACC

But the compilers you define are actually GCC, ACC, and _HPCC_, not HPACC:

  CONFIG.Host.hp700:HPCC = cc 

I almost wrote this right when I first saw your error but kept getting
sidetracked by the C++ compilers for some reason :-/.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.ultranet.com/~pauld/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to