]> gitweb.factorcode.org Git - factor.git/blobdiff - GNUmakefile
VM: Three new special objects added to keep track of the builds version number, git...
[factor.git] / GNUmakefile
index b4ccd5f7b71807fc7625942f02ef590f6077e195..a9fd8304f25bb9ac3de6f8945c68468020dc7110 100644 (file)
@@ -1,12 +1,16 @@
 ifdef CONFIG
        VERSION = 0.97
+       GIT_LABEL = $(shell git describe --all --long)
 
        BUNDLE = Factor.app
        LIBPATH = -L/usr/X11R6/lib
 
        include $(CONFIG)
 
-       CFLAGS = -Wall $(SITE_CFLAGS)
+       CFLAGS = -Wall \
+               -DFACTOR_VERSION="$(VERSION)" \
+               -DFACTOR_GIT_LABEL="$(GIT_LABEL)" \
+               $(SITE_CFLAGS)
 
        ifdef DEBUG
                CFLAGS += -g -DFACTOR_DEBUG