diff options
| author | Ian Moffett <ian@mirocom.org> | 2026-05-23 01:28:05 -0400 |
|---|---|---|
| committer | Ian Moffett <ian@mirocom.org> | 2026-05-23 01:28:05 -0400 |
| commit | c5f8f95059504748f07e0d3ca9d978669622428c (patch) | |
| tree | cc64c48bb1e93c2df466f4fb007912628c319c91 /Makefile | |
initial commit
Signed-off-by: Ian Moffett <ian@mirocom.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
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 $@ |
