summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChloe M <chloe@faracom.org>2026-07-27 20:24:14 -0400
committerChloe M <chloe@faracom.org>2026-07-27 20:24:14 -0400
commit9ba1fbb9b0c0ed5fd11398da7c895f900aff2d27 (patch)
treed1264231c8d0e271488f6230b9b6a92a89f5e17a /Makefile
initial commit
Signed-off-by: Chloe M <chloe@faracom.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4d83e8c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+#
+# Copyright (c) 2026, Chloe M.
+# Provided under the BSD-3 clause.``
+#
+
+CFILES = $(shell find . -name "*.c")
+OFILES = $(CFILES:.c=.o)
+DFILES = $(CFILES:.c=.d)
+
+CC = \
+ gcc
+
+CFLAGS = \
+ -Wall \
+ -pedantic \
+ -MMD
+
+.PHONY: all
+all: rdar
+
+.PHONY: rdar
+rdar: $(OFILES)
+ $(CC) $^ -o $@
+
+-include $(DFILES)
+%.o: %.c
+ $(CC) -c $(CFLAGS) $< -o $@
+