diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-19 22:39:08 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-19 22:39:08 +0100 |
commit | c2257da4845de8ccfcccd4309c4a2c489addb14c (patch) | |
tree | 153f13b442eff6e87a63303aef1993073cd01f00 /mk/macos.mk | |
parent | Use c99 instead of cc -std=c99 (diff) | |
download | libskrift-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/macos.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/macos.mk b/mk/macos.mk new file mode 100644 index 0000000..d10e427 --- /dev/null +++ b/mk/macos.mk @@ -0,0 +1,7 @@ +LIBEXT = dylib +LIBFLAGS = -dynamiclib -Wl,-compatibility_version,$(LIB_MAJOR) -Wl,-current_version,$(LIB_VERSION) + +LIBMAJOREXT = $(LIB_MAJOR).$(LIBEXT) +LIBMINOREXT = $(LIB_MAJOR).$(LIB_MINOR).$(LIBEXT) + +FIX_INSTALL_NAME = install_name_tool -id "$(PREFIX)/lib/libskrift.$(LIBMAJOREXT)" |