aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..87cd305
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+LEX = lex
+YACC = yacc
+CC = cc
+
+OBJ = properties-lexer.o
+
+LFLAGS = -ll
+
+
+all: properties
+# ${CC} properties-lexer.c properties-parser.c -o properties -ll -ly
+
+properties-lexer.o: properties.l
+ ${LEX} properties.l
+ @mv lex.yy.c properties-lexer.c
+ ${CC} -c properties-lexer.c
+
+properties: ${OBJ}
+ ${CC} ${OBJ} -o $@ ${LFLAGS}
+
+clean:
+ @rm -f ${OBJ} *.core a.out
+ @rm -f properties-lexer.c lex.*
+ @rm -f properties