aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-13 21:10:15 +0200
committerMattias Andrée <maandree@kth.se>2016-07-13 21:10:15 +0200
commitf7cbc8f9b5fe5debc38b460fd5e03645a9a392c5 (patch)
tree9d22c0387091b4c69e75c5623ce9b706c42daaa1
parentm (diff)
downloadlibclut-f7cbc8f9b5fe5debc38b460fd5e03645a9a392c5.tar.gz
libclut-f7cbc8f9b5fe5debc38b460fd5e03645a9a392c5.tar.bz2
libclut-f7cbc8f9b5fe5debc38b460fd5e03645a9a392c5.tar.xz
Update makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile.in7
-rw-r--r--mk/lang-c.mk2
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 64288e6..7462287 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -40,11 +40,16 @@ PKGNAME = libclut
# Package information.
_PROJECT = libclut
-_VERSION = 1.0
+_VERSION = 0.1
# Used by mk/lang-c.mk
_C_STD = c99
_H = libclut
+_HEADER_DIRLEVELS = 1
+_LIB = libclut
+_OBJ_libclut = libclut
+_SO_VERSION_libclut = $(_VERSION)
+_SO_MAJOR_libclut = $(shell echo $(_SO_VERSION_libclut) | cut -d . -f 1)
# Used by mk/texinfo.mk
_TEXINFO_DIRLEVELS = 2
diff --git a/mk/lang-c.mk b/mk/lang-c.mk
index 25d2a7f..e96c0b3 100644
--- a/mk/lang-c.mk
+++ b/mk/lang-c.mk
@@ -218,7 +218,7 @@ aux/%.pic.o: $(v)src/%.c $(foreach H,$(__H),$(v)$(H))
bin/%.so:
@$(PRINTF_INFO) '\e[00;01;31mLD\e[34m %s\e[00;32m$A\n' "$@"
@$(MKDIR) -p bin
- $(Q)$(__LD) -shared -Wl,-soname,$*.so.$(_SO_MAJOR_$($*)) -o $@ $^ $(__LD_POST) #$Z
+ $(Q)$(__LD) -shared -Wl,-soname,$*.so.$(_SO_MAJOR_$*) -o $@ $^ $(__LD_POST) #$Z
@$(ECHO_EMPTY)
# Link object files into a command.