aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-06-16 15:58:19 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-06-16 15:58:19 +0530
commit7d491fba56966311e09299a137dab90bb7ade124 (patch)
tree3f92d4682b8ace2ac625a880f33cf0e97ea117e6 /Makefile
parent840e0e406eea0b6397a33cdbd9a39474e5006a12 (diff)
(init): recursively search directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e11be89
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CC := clang
+CFLAGS := -std=c99
+CFLAGS += -Wall -Wextra -Wpedantic
+
+all: CFLAGS += -O3
+all: clean msg
+
+debug: CFLAGS += -Og -g3 -glldb
+debug: clean msg
+
+msg: msg.c
+ $(CC) $(CFLAGS) $^ -o $@
+
+clean:
+ rm -f msg