From c5f8f95059504748f07e0d3ca9d978669622428c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 23 May 2026 01:28:05 -0400 Subject: initial commit Signed-off-by: Ian Moffett --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 $@ -- cgit v1.2.3