help-make
[Top][All Lists]
Advanced

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

prerequisite variable confusion


From: Ron Peterson
Subject: prerequisite variable confusion
Date: Mon, 23 Apr 2007 15:08:48 -0400
User-agent: Mutt/1.5.9i

Hi,

I'm using gnu make 3.81beta4.

In the following snippet, the first time I run 'make session_module.so'
it will get as far as making session.o, and then stop with the error:

make: *** No rule to make target `soapServer.o', needed by `module'.  Stop.

Then, if I run the same 'make session_module.so' again, it will
dutifully make all the remaining object files and then make
session_module.so.

Why does this stop the first time, but work the second?

TIA.

-

OBJFILES := session.o soapServer.o soapC.o stdsoap2.o wslib.o

%.o: %.cpp soapH.h
    $(CXX) $*.cpp -c -o $@ $(YCFLAGS)

session_module.so: $(OBJFILES)
    $(CXX) -o $@ $(OBJFILES) $(YTFLAGS) $(YFLAGS) $(SFLAGS)

-- 
Ron Peterson
https://www.yellowbank.com/




reply via email to

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