summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 87cd305..85e0bb8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
+VER = 0.0.0-alpha.0
LEX = lex
YACC = yacc
CC = cc
OBJ = properties-lexer.o
+CFLAGS = -DVERSION=${VER}
LFLAGS = -ll
@@ -13,7 +15,7 @@ all: properties
properties-lexer.o: properties.l
${LEX} properties.l
@mv lex.yy.c properties-lexer.c
- ${CC} -c properties-lexer.c
+ ${CC} ${CFLAGS} -c properties-lexer.c
properties: ${OBJ}
${CC} ${OBJ} -o $@ ${LFLAGS}