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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090421/2e113295/attachment.html>