aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..ce41926b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+CC := gcc
+LEX := flex
+
+CFLAGS = -Wall -ggdb
+#LFLAGS =
+#LDFLAGS =
+
+#%.yy.c : %.yy
+# $(LEX) -o $@ ${LFLAGS} $<
+
+%.o : %.c
+ $(CC) -c -o $@ $^ ${CFLAGS}
+
+parse: parse.o
+ $(CC) -o $@ $^ ${LDFLAGS}
+
+test: test.yy.o
+ $(CC) -o $@ $^ ${LDFLAGS}