summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5d497f9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+#
+# Copyright (c) 2026, Chloe M.
+# Provided under the BSD-3 clause
+#
+
+CFILES = $(shell find core/ -name "*.c")
+OFILES = $(CFILES:.c=.o)
+DFILES = $(CFILES:.c=.d)
+CC = gcc
+
+CFLAGS = \
+ -Wall \
+ -pedantic \
+ -Iinclude
+
+.PHONY: all
+all: cescal
+
+.PHONY: cescal
+cescal: $(OFILES)
+ $(CC) $^ -o $@
+
+-include $(DFILES)
+%.o: %.c
+ $(CC) -c $< $(CFLAGS) -o $@