Makefile: make it possible to avoid building static/shared library
diff --git a/config.mk b/config.mk
index 94bebe4..99d1a1e 100644
--- a/config.mk
+++ b/config.mk
@@ -54,3 +54,17 @@
 # thus supports complete X86 instructions.
 
 CAPSTONE_X86_REDUCE ?= no
+
+
+################################################################################
+# Change 'CAPSTONE_STATIC = yes' to 'CAPSTONE_STATIC = no' to avoid building
+# a static library.
+
+CAPSTONE_STATIC ?= yes
+
+
+################################################################################
+# Change 'CAPSTONE_SHARED = yes' to 'CAPSTONE_SHARED = no' to avoid building
+# a shared library.
+
+CAPSTONE_SHARED ?= yes