your makefile format still have very stupid error. Spend time to learn how to write a simple makefile first which don't include external library. regards, Gang On Tue, Apr 21, 2009 at 11:06 PM, senthil at gotouchpoint.com < senthil at gotouchpoint.com> wrote: > Dear Gang, > > Thanks for the note. I went through the Make documentation and modified my > Makefile. The previous error was fixed, but I'm receiving a different error > now, > > <Partial Output> > > Trying pattern rule with stem `all.sh'. > Trying implicit prerequisite `RCS/all.sh,v'. > Trying pattern rule with stem `all.sh'. > Trying implicit prerequisite `RCS/all.sh'. > Trying pattern rule with stem `all.sh'. > Trying implicit prerequisite `s.all.sh'. > Trying pattern rule with stem `all.sh'. > Trying implicit prerequisite `SCCS/s.all.sh'. > No implicit rule found for `all'. > Considering target file `myapp1.cpp'. > Finished prerequisites of target file `myapp1.cpp'. > No need to remake target `myapp1.cpp'. > Finished prerequisites of target file `all'. > Must remake target `all'. > Successfully remade target file `all'. > make: Entering directory `/usr/src/linux/myproject' > make: Nothing to be done for `all'. > make: Leaving directory `/usr/src/linux/myproject' > > I feel that there is a small change should be done in my Makefile to make > it work. I tried the maximum possible ways of writing the rules without > any luck, also I didn't get much info on the net regarding this issue. So I > request you to go through my Makefile and point out the error. > > Makefile attached. > > Thanks for your help. > > Regards, > - Senthil > > > > > Original Message: > ----------------- > From: Gang Liu gangban.lau@xxxxxxxxx > Date: Tue, 21 Apr 2009 11:42:01 +0800 > To: senthil at gotouchpoint.com, pjsip at lists.pjsip.org > Subject: Re: Need Makefile template > > > Take a look gnu make doc for Makefile format. Your makefile format is > error.. > > regards, > Gang > > On Mon, Apr 20, 2009 at 11:26 PM, senthil at gotouchpoint.com < > senthil at gotouchpoint.com> wrote: > > > Dear Gang Liu, > > > > First of all thanks for your template. > > > > I modified the Makefile as per my requirement sent by you, but results > the > > same. I ran the make command using '-w -d' options and received the > > following output: > > > > <Partial Output> > > > > Avoiding implicit rule recursion. > > Trying pattern rule with stem `gcc.sh'. > > Trying implicit prerequisite `gcc.sh,v'. > > Trying pattern rule with stem `gcc.sh'. > > Trying implicit prerequisite `RCS/gcc.sh,v'. > > Trying pattern rule with stem `gcc.sh'. > > Trying implicit prerequisite `RCS/gcc.sh'. > > Trying pattern rule with stem `gcc.sh'. > > Trying implicit prerequisite `s.gcc.sh'. > > Trying pattern rule with stem `gcc.sh'. > > Trying implicit prerequisite `SCCS/s.gcc.sh'. > > No implicit rule found for `gcc'. > > Finished prerequisites of target file `gcc'. > > Must remake target `gcc'. > > make: Entering directory `/usr/src/linux/myproject' > > make: *** No rule to make target `gcc', needed by `myapp1'. Stop. > > make: Leaving directory `/usr/src/linux/myproject' > > > > Under the myproject directory I have my application named myapp1.cpp and > > Makefile. Do I need to include any other file under myproject directory? > or > > do I need to include any implicit rule?? > > > > Also I attached the myapp1.cpp and Makefile. > > > > Please give me some input on this issue. > > > > Thanks & Regards, > > - Sen > > > > > > > > **************************************************************************** > > ************ > > > > my make file: > > > > PJSIP_SRC_PATH:=/pjproject > > include > > $(PJSIP_SRC_PATH)/build.mak > > include > > $(PJDIR)/build/common.mak > > RULES_MAK := > > $(PJDIR)/build/rules.mak > > include > > $(PJSIP_SRC_PATH)/build/common.mak > > > > > > > > ############################################################################ > > ### > > # Gather all flags. > > # > > export _CFLAGS := -DHAS_CALLREC_MUTEX=1 -DUSE_HS_HAS=0 -Wall -pipe > > $(PJ_CFLAGS) $(CFLAGS) > > export _CXXFLAGS:= -DHAS_CALLREC_MUTEX=1 -DUSE_HS_HAS=0 -DNDEBUG > > -D_REENTRANT -Wall -pipe -g -fomit-frame-pointer -fno-strict-aliasing > > -Wno-unused-label $(PJ_CXXFLAGS) > > #export _CXXFLAGS:= -Wall -pipe -g $(PJ_CXXFLAGS) > > export _LDFLAGS := $(PJ_LDFLAGS) $(PJ_LDLIBS) $(LDFLAGS) > > > > CC = gcc > > CXX = g++ > > > > TARGET = sipua-release > > > > %.o: %.c > > $(CC) $(_CFLAGS) -c $< -o $@ > > > > %.o: %.cpp > > $(CXX) $(_CXXFLAGS) -c $< -o $@ > > > > SOURCES = $(wildcard *.c *.cpp) > > OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCES))) > > > > $(TARGET) : $(OBJS) > > $(CXX) $(OBJS) -o $(TARGET) $(_LDFLAGS) > > chmod a+x $(TARGET) > > > > clean: > > rm -rf *.o $(TARGET) > > > > > > On Fri, Apr 17, 2009 at 8:16 PM, senthil at gotouchpoint.com < > > senthil at gotouchpoint.com> wrote: > > > > > Dear All, > > > > > > Can anybody please send me the template for the Makefile used to build > my > > > own application. The template given under the following link seems to > be > > > not working: > > > > > > http://trac.pjsip.org/repos/wiki/Getting_Started_Using > > > > > > Thanks in advance. > > > > > > Regards, > > > - Sen > > > > > > > > > > > > -------------------------------------------------------------------- > > > myhosting.com - Premium Microsoft? Windows? and Linux web and > > application > > > hosting - http://link.myhosting.com/myhosting > > > > > > > > > > > > _______________________________________________ > > > Visit our blog: http://blog.pjsip.org > > > > > > pjsip mailing list > > > pjsip at lists.pjsip.org > > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > > -------------------------------------------------------------------- > > myhosting.com - Premium Microsoft? Windows? and Linux web and > application > > hosting - http://link.myhosting.com/myhosting > > > > > > > -------------------------------------------------------------------- > mail2web LIVE ? Free email based on Microsoft? Exchange technology - > http://link.mail2web.com/LIVE > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090422/58fabeb4/attachment-0001.html>