aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLion Kortlepel <[email protected]>2026-01-14 22:08:55 +0100
committerLion Kortlepel <[email protected]>2026-01-14 22:08:55 +0100
commitf93efff02151e4a3affa4b2d0031e957fe7553aa (patch)
tree806c714926848a98447d4fbc190c76ba891c0fd3 /Makefile
downloadqueue-f93efff02151e4a3affa4b2d0031e957fe7553aa.tar.zst
queue-f93efff02151e4a3affa4b2d0031e957fe7553aa.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7dc331d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+tests/tests: queue.o tests/tests.c tests/ls_test.h
+ $(CC) -o $@ queue.o tests/tests.c -Itests -I.
+
+# Usually you wouldn't do this, but for tests we want this compiled with the
+# most pedantic settings.
+# Dont use this.
+queue.o: queue.h
+ $(CC) -c -x c -o $@ $^ -Wall -Wextra -Wpedantic -Werror -ansi \-std=c89 \
+ -DLS_QUEUE_IMPLEMENTATION \
+ -Wno-error=pragma-once-outside-header \
+ -Wno-pragma-once-outside-header
+
+.PHONY: clean
+
+clean:
+ rm -f tests/tests
+ rm -f queue.o