Skip to content

Commit

Permalink
Merge pull request #24 from nalimilan/soversion
Browse files Browse the repository at this point in the history
Separate SOVERSION from release version
  • Loading branch information
ViralBShah committed Jul 27, 2014
2 parents 1b9edfb + 722223c commit f3036c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Make.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# -*- mode: makefile-gmake -*-

OS := $(shell uname)

# Do not forget to bump SOMINOR when changing VERSION,
# and SOMAJOR when changing API
VERSION = 0.4
VERSION_SPLIT = $(subst ., , $(VERSION))
SOMAJOR = 1
SOMINOR = 0

DESTDIR =
prefix = /usr/local
bindir = $(prefix)/bin
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ libopenspecfun.$(SHLIB_EXT): $(OBJS)
ifeq ($(OS),WINNT)
$(FC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenspecfun.$(SHLIB_EXT) -o libopenspecfun.$(SHLIB_EXT)
else
$(FC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenspecfun.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)) -o libopenspecfun.$(SHLIB_EXT).$(VERSION)
ln -sf libopenspecfun.$(SHLIB_EXT).$(VERSION) libopenspecfun.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT))
ln -sf libopenspecfun.$(SHLIB_EXT).$(VERSION) libopenspecfun.$(SHLIB_EXT)
$(FC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenspecfun.$(SHLIB_EXT).$(SOMAJOR) -o libopenspecfun.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR)
ln -sf libopenspecfun.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR) libopenspecfun.$(SHLIB_EXT).$(SOMAJOR)
ln -sf libopenspecfun.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR) libopenspecfun.$(SHLIB_EXT)
endif

install: all
Expand Down

0 comments on commit f3036c0

Please sign in to comment.