From 6b4964727bffb379aca9601e1cf69051ccbf600c Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 30 Mar 2012 07:10:13 +0000 Subject: Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98 --- build/rules.mak | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build/rules.mak') diff --git a/build/rules.mak b/build/rules.mak index 660ed931..0d35c56f 100644 --- a/build/rules.mak +++ b/build/rules.mak @@ -10,6 +10,11 @@ endif # LIB = $($(APP)_LIB) +# +# The full path of output lib file (e.g. ../lib/libapp.a). +# +SHLIB = $($(APP)_SHLIB) + # # The full path of output executable file (e.g. ../bin/app.exe). # @@ -82,6 +87,11 @@ $(LIB): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP) $(AR) $(LIB) $(OBJS) $(RANLIB) $(LIB) +$(SHLIB): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP) + if test ! -d $(LIBDIR); then $(subst @@,$(subst /,$(HOST_PSEP),$(LIBDIR)),$(HOST_MKDIR)); fi + $(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$(SHLIB)) \ + $(subst /,$(HOST_PSEP),$(OBJS)) $($(APP)_LDFLAGS) + $(EXE): $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP) if test ! -d $(BINDIR); then $(subst @@,$(subst /,$(HOST_PSEP),$(BINDIR)),$(HOST_MKDIR)); fi $(LD) $(LDOUT)$(subst /,$(HOST_PSEP),$(EXE)) \ -- cgit v1.2.3