aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:13:08 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:13:08 +0200
commit090009a8e107888fb9f1ab5a2997d65c8c121398 (patch)
treeebb909ccbc6f6d29af5469964953aac987b86960 /mk
parentwhitespace (diff)
downloadlibred-090009a8e107888fb9f1ab5a2997d65c8c121398.tar.gz
libred-090009a8e107888fb9f1ab5a2997d65c8c121398.tar.bz2
libred-090009a8e107888fb9f1ab5a2997d65c8c121398.tar.xz
Improve makefile + minor fixes and improvements1.0.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'mk')
-rw-r--r--mk/linux.mk4
-rw-r--r--mk/macos.mk4
-rw-r--r--mk/windows.mk4
3 files changed, 12 insertions, 0 deletions
diff --git a/mk/linux.mk b/mk/linux.mk
new file mode 100644
index 0000000..c180f9b
--- /dev/null
+++ b/mk/linux.mk
@@ -0,0 +1,4 @@
+LIBEXT = so
+LIBFLAGS = -shared -Wl,-soname,libred.$(LIBEXT).$(LIB_MAJOR)
+LIBMAJOREXT = $(LIBEXT).$(LIB_MAJOR)
+LIBMINOREXT = $(LIBEXT).$(LIB_VERSION)
diff --git a/mk/macos.mk b/mk/macos.mk
new file mode 100644
index 0000000..bd92de6
--- /dev/null
+++ b/mk/macos.mk
@@ -0,0 +1,4 @@
+LIBEXT = dylib
+LIBFLAGS = -dynamiclib
+LIBMAJOREXT = $(LIB_MAJOR).$(LIBEXT)
+LIBMINOREXT = $(LIB_VERSION).$(LIBEXT)
diff --git a/mk/windows.mk b/mk/windows.mk
new file mode 100644
index 0000000..e9602e1
--- /dev/null
+++ b/mk/windows.mk
@@ -0,0 +1,4 @@
+LIBEXT = dll
+LIBFLAGS = -mdll
+LIBMAJOREXT = $(LIB_MAJOR).$(LIBEXT)
+LIBMINOREXT = $(LIB_VERSION).$(LIBEXT)