summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-22 17:13:44 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-22 17:13:44 +0200
commit2fd810be649548de92b7b34900205555250fab3b (patch)
tree7d25fbfa793bcbcf9f5741e91a0e3f3290f82633
parente79c6f67ff9276fc2f5a4ab79cd4678aaaa4eb17 (diff)
downloadproperties-0.0.0-alpha.0.tar.gz
properties-0.0.0-alpha.0.zip
libproperties 0.0.0-alpha.0v0.0.0-alpha.0
-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}