diff options
author | Jakob Odersky <jodersky@gmail.com> | 2014-04-08 11:15:23 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2014-04-08 11:15:23 +0200 |
commit | 0ad1de1dd3a8e1af0d5b2e3b531fb5ece170e565 (patch) | |
tree | ee0b7d67d30e2e8f566da1cb0d5da5bc873f0643 /flow-native/Makefile | |
parent | 4c7f77fb7f8ac27b557c6753c743c9f9148fabe8 (diff) | |
download | akka-serial-0ad1de1dd3a8e1af0d5b2e3b531fb5ece170e565.tar.gz akka-serial-0ad1de1dd3a8e1af0d5b2e3b531fb5ece170e565.tar.bz2 akka-serial-0ad1de1dd3a8e1af0d5b2e3b531fb5ece170e565.zip |
modify build to better conform to debian policies
Diffstat (limited to 'flow-native/Makefile')
-rw-r--r-- | flow-native/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/flow-native/Makefile b/flow-native/Makefile index a768bd3..8827b5e 100644 --- a/flow-native/Makefile +++ b/flow-native/Makefile @@ -5,11 +5,15 @@ # Include common settings include common.mk -# Name of library to build -LIB=lib$(NAME).so +# Canonical name of library +CNAME=lib$(NAME).so + +# Java library link, used to enable loading of +# semanticaly versioned librraies from java +JAVALIB=lib$(NAME)$(MAJOR).so # soname of library -SONAME=$(LIB).$(MAJOR) +SONAME=$(CNAME).$(MAJOR) # Actual file name of library TARGET=$(SONAME).$(MINOR).$(MICRO) @@ -19,8 +23,7 @@ LDFLAGS+=-shared -Wl,-soname,$(SONAME) INCLUDES+=$(JNI_INCLUDE) # All final products that should be installed -PRODUCTS=$(TARGET) $(SONAME) $(LIB) - +PRODUCTS=$(TARGET) $(SONAME) $(JAVALIB) # Build library and all appropriate links all: $(PRODUCTS) @@ -34,7 +37,7 @@ $(SONAME): $(TARGET) ln -s $< $@ # Create dev link -$(LIB): $(SONAME) +$(JAVALIB): $(SONAME) ln -s $< $@ # Compile objects |