aboutsummaryrefslogtreecommitdiffstats
path: root/mk/linux.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-19 22:39:08 +0100
committerMattias Andrée <maandree@kth.se>2022-02-19 22:39:08 +0100
commitc2257da4845de8ccfcccd4309c4a2c489addb14c (patch)
tree153f13b442eff6e87a63303aef1993073cd01f00 /mk/linux.mk
parentUse c99 instead of cc -std=c99 (diff)
downloadlibskrift-c2257da4845de8ccfcccd4309c4a2c489addb14c.tar.gz
libskrift-c2257da4845de8ccfcccd4309c4a2c489addb14c.tar.bz2
libskrift-c2257da4845de8ccfcccd4309c4a2c489addb14c.tar.xz
Makefile: add support for shared library
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--mk/linux.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/linux.mk b/mk/linux.mk
new file mode 100644
index 0000000..10a9461
--- /dev/null
+++ b/mk/linux.mk
@@ -0,0 +1,7 @@
+LIBEXT = so
+LIBFLAGS = -shared -Wl,-soname,libskrift.$(LIBEXT).$(LIB_MAJOR)
+
+LIBMAJOREXT = $(LIBEXT).$(LIB_MAJOR)
+LIBMINOREXT = $(LIBEXT).$(LIB_MAJOR).$(LIB_MINOR)
+
+FIX_INSTALL_NAME = :