aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-05-16 22:10:25 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-05-16 22:13:43 +0300
commita5f0d6ae9ace560b67c114af9071a268d8df2dc9 (patch)
treead8afa865b8f66f0ab1ee54032ac116139b54857 /Makefile
added dynarray implementation
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..6dbbfe7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+
+CC := gcc
+CFLAGS := -g -Wall -Wextra -Wpedantic -Werror
+
+
+tests: dynarray
+
+
+dynarray: tests/dynarray.c
+ $(CC) $(CFLAGS) -o $@ $^ -DTT_CHAR
+ ./dynarray
+ $(CC) $(CFLAGS) -o $@ $^ -DTT_SHORT
+ ./dynarray
+ $(CC) $(CFLAGS) -o $@ $^ -DTT_INT
+ ./dynarray
+ $(CC) $(CFLAGS) -o $@ $^ -DTT_LONG
+ ./dynarray
+
+ rm dynarray
+