summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f18cd35
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC = clang
+CFLAGS = -Wall -Wextra -std=c99 -fsanitize=address -g -O0
+TARGET = tests
+
+all: $(TARGET)
+
+$(TARGET): tests.c nonstd.h minunit.h
+ $(CC) $(CFLAGS) -o $(TARGET) tests.c
+
+test: $(TARGET)
+ ./$(TARGET)
+
+clean:
+ rm -f $(TARGET)
+
+format:
+ clang-format -i nonstd.h tests.c examples/*.c
+
+.PHONY: all test clean format