aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-03-21 19:31:24 +0100
committerCamil Staps2016-03-21 19:42:59 +0100
commit58ea61a19cb9bd0f6c600ebbb643e209fdf9d7cb (patch)
tree864264245f5f1ec8d8af0162830afd9bb5a63473 /Makefile
parentInitial commit (diff)
Matching works
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4babffe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CFLAGS=-O0 -Wall -std=c99
+CLM=clm
+CLMFLAGS=-I /opt/clean/lib/StdLib/ -l -lpcre2-8
+
+all: test Clean\ System\ Files/regex.o
+
+Clean\ System\ Files/regex.o: regex.c regex.h
+ $(CC) $(CFLAGS) -c $< -o "$@"
+
+test: test.icl Regex.dcl Regex.icl Clean\ System\ Files/regex.o
+ $(CLM) $(CLMFLAGS) $@ -o $@
+
+run_test: test
+ ./test
+
+clean:
+ rm -frv Clean\ System\ Files test
+
+.PHONY: all clean run_test
+