diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-03-08 06:35:03 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-03-08 06:35:03 +0000 |
commit | d2a58207a17c6ab783b9d03261dcb570211a8263 (patch) | |
tree | c42139b3d87a868edb36ee3a39b935f5a6ec964b /build/rules.mak | |
parent | 064ca97fad7f636f404d3b1e031fbb7d61b8853c (diff) |
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
Diffstat (limited to 'build/rules.mak')
-rw-r--r-- | build/rules.mak | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/rules.mak b/build/rules.mak index 35cea900..9e0cfb4f 100644 --- a/build/rules.mak +++ b/build/rules.mak @@ -11,6 +11,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). # EXE = $($(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)) \ |