aboutsummaryrefslogtreecommitdiffstats
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..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
+