From d2a58207a17c6ab783b9d03261dcb570211a8263 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 8 Mar 2012 06:35:03 +0000 Subject: Closed #1462: Added support for building libresample as shared library for GNU targets git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3967 74dad513-b988-da41-8d7b-12977e46ad98 --- build/rules.mak | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build') diff --git a/build/rules.mak b/build/rules.mak index 35cea900..9e0cfb4f 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