aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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..a983640
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CC = cc
+CFLAGS = -I . -Wall -Wextra -Wpedantic -pedantic
+C89FLAGS = -std=c89
+
+TARGET = examples/simple
+SOURCE = examples/simple.c
+
+all: tests/tests $(TARGET)
+
+$(TARGET): $(SOURCE) ls_vec.h
+ $(CC) -o $(TARGET) $(SOURCE) $(CFLAGS) $(C89FLAGS)
+
+tests/tests: ls_vec.h tests/tests.c tests/ls_test.h
+ $(CC) -o $@ tests/tests.c -Itests -I.
+
+clean:
+ rm -f $(TARGET)
+ rm -f tests/tests
+
+.PHONY: clean all