aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-15 22:45:59 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-15 22:45:59 +0100
commita96f4771294601a9b3a9b7719ae489b5f90ca15e (patch)
tree15a2fcbd174c1d7abac0c6167bce5b1cd98f566e /Makefile
downloadcalp-a96f4771294601a9b3a9b7719ae489b5f90ca15e.tar.gz
calp-a96f4771294601a9b3a9b7719ae489b5f90ca15e.tar.xz
Initial commit.
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}