aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 12:33:06 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 12:33:06 +0200
commit4466ab96255e3b720a96cf6dd05cdaeef5119691 (patch)
tree354dc0290ae883fa147afda8e6ec4b9700d345ad /Makefile
parentd3f087278b3ed9e520c92947292c7e55df09f4d1 (diff)
downloadproperties-4466ab96255e3b720a96cf6dd05cdaeef5119691.tar.gz
properties-4466ab96255e3b720a96cf6dd05cdaeef5119691.zip
Add string utils
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index de0f79f..75a30d5 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ LEX = lex
YACC = yacc
CC = cc
-OBJ = properties-parser.o properties-lexer.o
+OBJ = utils/string.o properties-parser.o properties-lexer.o
CFLAGS = -DVERSION=${VER}
LFLAGS = -ll -ly
@@ -23,6 +23,9 @@ properties-parser.o properties-parser.h: properties.y
@mv y.tab.h properties-parser.h
${CC} ${CFLAGS} -c properties-parser.c
+utils/string.o: utils/string.c
+ ${CC} ${CFLAGS} -c $< -o $@
+
properties: ${OBJ}
${CC} ${OBJ} -o $@ ${LFLAGS}