aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 060ab3a..6f68ad5 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,8 @@ LIBS =
# get library version from meta file
LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
+CFLAGS += -DVERSION='"$(LIBRARY_VERSION)"'
+
# where Pd lives
PD_PATH = ../../pd
# where to install the library