summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3830946
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CLAGS=-Wextra -g -O2 -pipe
+LIBS=-lfl
+
+all: lex-c
+
+lex-c.yy.c: lex-c.l
+ flex -o $@ $^
+
+lex-c: lex-c.yy.o
+ $(CC) -o $@ $^ $(LIBS)
+
+clean:
+ rm -f *.o lex-c.yy.c lex-c
+
+.PHONY: all clean