aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLion Kortlepel <[email protected]>2026-01-15 00:28:30 +0100
committerLion Kortlepel <[email protected]>2026-01-15 00:28:30 +0100
commit0b6d6b70f171b18cad86c0ac8d79a2c849175324 (patch)
tree33fa0f9291aa4c6b99b53fb437ef2af6164ea190 /Makefile
downloadvec-0b6d6b70f171b18cad86c0ac8d79a2c849175324.tar.zst
vec-0b6d6b70f171b18cad86c0ac8d79a2c849175324.zip
initial commit
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